Home
last modified time | relevance | path

Searched full:migrate (Results 1 – 25 of 236) sorted by relevance

12345678910

/linux/mm/
H A Dmigrate_device.c9 #include <linux/migrate.h>
25 struct migrate_vma *migrate = walk->private; in migrate_vma_collect_skip() local
29 migrate->dst[migrate->npages] = 0; in migrate_vma_collect_skip()
30 migrate->src[migrate->npages++] = 0; in migrate_vma_collect_skip()
41 struct migrate_vma *migrate = walk->private; in migrate_vma_collect_hole() local
49 (migrate->flags & MIGRATE_VMA_SELECT_COMPOUND) && in migrate_vma_collect_hole()
52 migrate->src[migrate->npages] = MIGRATE_PFN_MIGRATE | in migrate_vma_collect_hole()
54 migrate->dst[migrate->npages] = 0; in migrate_vma_collect_hole()
55 migrate->npages++; in migrate_vma_collect_hole()
56 migrate->cpages++; in migrate_vma_collect_hole()
[all …]
H A Dmigrate.c3 * Memory Migration functionality - linux/mm/migrate.c
16 #include <linux/migrate.h>
49 #include <trace/events/migrate.h>
211 * migrate_movable_ops_page - migrate an isolated movable_ops page
216 * Migrate an isolated movable_ops page.
804 * For memory tiering mode, when migrate between slow and fast in folio_migrate_flags()
885 * @dst: The folio to migrate the data to.
887 * @mode: How to migrate the page.
889 * Common logic to directly migrate a single LRU folio suitable for
1010 * @dst: The folio to migrate to.
[all …]
/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_migrate.c36 static int copy(struct intel_migrate *migrate, in copy() argument
37 int (*fn)(struct intel_migrate *migrate, in copy() argument
44 struct drm_i915_private *i915 = migrate->context->engine->i915; in copy()
90 err = fn(migrate, &ww, src, dst, &rq); in copy()
151 GEM_BUG_ON(ce->vm != ce->engine->gt->migrate.context->vm); in intel_context_copy_ccs()
255 static int clear(struct intel_migrate *migrate, in clear() argument
256 int (*fn)(struct intel_migrate *migrate, in clear() argument
263 struct drm_i915_private *i915 = migrate->context->engine->i915; in clear()
301 err = intel_migrate_ccs_copy(migrate, &ww, NULL, in clear()
318 err = fn(migrate, &ww, obj, val, &rq); in clear()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_pagemap.c8 #include <linux/migrate.h>
21 * to migrate memory back and forth between device memory and system RAM and
30 * population requests and after that migrate all device pages to system ram.
42 * and it can evict the range to system before trying to migrate. Ideally an
43 * implementation would just try to migrate the missing part of the range and
56 * migrate to / from device memory.
171 * @migrate_pfn: Array of migrate page frame numbers
304 * @migrate_pfn: Array of migrate pfns set up for the mapped pages. Used to
494 * drm_pagemap_migrate_to_devmem() - Migrate a struct mm_struct range to device memory
495 * @devmem_allocation: The device memory allocation to migrate to.
[all …]
/linux/tools/testing/selftests/mm/
H A Dmigration.c67 int migrate(uint64_t *ptr, int n1, int n2) in migrate()
91 printf("Didn't migrate %d pages\n", ret); in migrate()
94 perror("Couldn't migrate pages"); in migrate()
142 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
177 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
207 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
249 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
274 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
309 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
66 int migrate(uint64_t *ptr, int n1, int n2) migrate() function
H A Drmap.c154 FIXTURE(migrate) in FIXTURE() argument
159 FIXTURE_SETUP(migrate) in FIXTURE_SETUP() argument
195 FIXTURE_TEARDOWN(migrate) in FIXTURE_TEARDOWN() argument
257 /* migrate successfully */ in try_to_move_page()
311 TEST_F(migrate, anon) in TEST_F() argument
328 TEST_F(migrate, shm) in TEST_F() argument
353 TEST_F(migrate, file) in TEST_F() argument
410 TEST_F(migrate, ksm) in TEST_F() argument
H A Dhmm-tests.c548 int ret, use_thp, migrate; in TEST_F() local
550 for (migrate = 0; migrate < 2; ++migrate) { in TEST_F()
587 if (migrate) { in TEST_F()
613 if (!migrate) { in TEST_F()
629 if (!migrate) { in TEST_F()
943 * Migrate anonymous memory to device private memory.
945 TEST_F(hmm, migrate) in TEST_F() argument
976 /* Migrate memory to device. */ in TEST_F()
989 * Migrate private file memory to device private memory.
1026 /* Migrate memory to device. */ in TEST_F()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dmigrate_reuseport.c3 * Check if we can migrate child sockets.
8 * 4. update a map to migrate all child sockets
13 * and migrate the requests in the accept queue
19 * and migrate the requests in the accept queue
23 * and migrate the requests in the accept queue
380 /* Migrate TCP_ESTABLISHED and TCP_SYN_RECV requests in migrate_dance()
389 /* No dance for TCP_NEW_SYN_RECV to migrate based on eBPF */ in migrate_dance()
420 /* Migrate from the last listener to the second one. in count_requests()
434 /* Migrate back to the last one from the second one */ in count_requests()
539 /* Migrate th in run_test()
[all...]
/linux/include/linux/
H A Dmigrate.h31 * If the driver cannot migrate the page at the moment, it can return
118 return -EAGAIN; /* can't migrate now */ in migrate_misplaced_folio_prepare()
122 return -EAGAIN; /* can't migrate now */ in migrate_misplaced_folio()
187 * Set to vmf->page if this is being called to migrate a page as part of
194 void migrate_vma_pages(struct migrate_vma *migrate);
195 void migrate_vma_finalize(struct migrate_vma *migrate);
H A Dpsci.h29 int (*migrate)(unsigned long cpuid); member
41 u32 migrate; member
/linux/drivers/gpu/drm/xe/
H A Dxe_migrate.c48 * struct xe_migrate - migrate context.
131 * migrate offset in xe_migrate_vram_ofs()
387 * migrate jobs servicing the faults gets stuck behind the job that faulted.
412 * xe_migrate_alloc - Allocate a migrate struct for a given &xe_tile
457 * xe_migrate_init() - Initialize a migrate context
532 drm_dbg(&xe->drm, "Migrate min chunk size is 0x%08llx\n", in xe_migrate_init()
1089 * @m: The migrate context
1106 * xe_migrate_lrc() - Get the LRC from migrate context.
1107 * @migrate: Migrate context.
1111 struct xe_lrc *xe_migrate_lrc(struct xe_migrate *migrate) in xe_migrate_lrc() argument
[all …]
H A Dxe_bo.c173 return tile->migrate; in mem_type_to_migrate()
967 struct xe_migrate *migrate = NULL; in xe_bo_move() local
1091 migrate = bo->tile->migrate; in xe_bo_move()
1093 migrate = mem_type_to_migrate(xe, new_mem->mem_type); in xe_bo_move()
1095 migrate = mem_type_to_migrate(xe, old_mem_type); in xe_bo_move()
1097 migrate = xe->tiles[0].migrate; in xe_bo_move()
1099 xe_assert(xe, migrate); in xe_bo_move()
1120 fence = xe_migrate_clear(migrate, bo, new_mem, flags); in xe_bo_move()
1122 fence = xe_migrate_copy(migrate, bo, bo, old_mem, new_mem, in xe_bo_move()
1404 struct xe_migrate *migrate; in xe_bo_evict_pinned_copy() local
[all …]
/linux/tools/testing/selftests/net/tcp_ao/
H A Drestore.c94 try_server_run("TCP-AO migrate to another socket (server)", port++, in server_fn()
128 test_fail("pre-migrate verify failed"); in test_get_sk_checkpoint()
169 test_ok("%s: post-migrate connection is broken", tst_name); in test_sk_restore()
171 test_fail("%s: post-migrate connection is working", tst_name); in test_sk_restore()
174 test_fail("%s: post-migrate connection is working", tst_name); in test_sk_restore()
176 test_ok("%s: post-migrate connection is alive", tst_name); in test_sk_restore()
205 test_sk_restore("TCP-AO migrate to another socket (client)", port++, in client_fn()
H A Dseq-ext.c195 test_fail("pre-migrate verify failed"); in client_fn()
220 test_fail("post-migrate verify failed"); in client_fn()
222 test_ok("post-migrate connection alive"); in client_fn()
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_dmem.c42 #include <linux/migrate.h>
83 struct nouveau_dmem_migrate migrate; member
171 if (drm->dmem->migrate.copy_func(drm, folio_nr_pages(sfolio), in nouveau_dmem_copy_folio()
232 * FIXME what we really want is to find some heuristic to migrate more in nouveau_dmem_migrate_to_ram()
267 nouveau_fence_new(&fence, dmem->migrate.chan); in nouveau_dmem_migrate_to_ram()
517 nouveau_fence_new(&fence, chunk->drm->dmem->migrate.chan); in nouveau_dmem_evict_chunk()
558 struct nvif_push *push = &drm->dmem->migrate.chan->chan.push; in nvc0b5_migrate_copy()
631 struct nvif_push *push = &drm->dmem->migrate.chan->chan.push; in nvc0b5_migrate_clear()
691 drm->dmem->migrate.copy_func = nvc0b5_migrate_copy; in nouveau_dmem_migrate_init()
692 drm->dmem->migrate.clear_func = nvc0b5_migrate_clear; in nouveau_dmem_migrate_init()
[all …]
/linux/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/
H A Duncore-hha.json148 "EventName": "sdir-home-migrate",
149 "BriefDescription": "Count of the number of HHA S-Dir read home migrate operations",
154 "EventName": "edir-home-migrate",
155 "BriefDescription": "Count of the number of HHA E-Dir read home migrate operations",
/linux/Documentation/gpu/rfc/
H A Dgpusvm.rst21 migrate can actually migrate, with only the faulting page guaranteed
22 to migrate).
110 migrate device layer are a performance bottleneck, having compound
/linux/Documentation/gpu/xe/
H A Dxe_migrate.rst4 Migrate Layer
8 :doc: Migrate Layer
/linux/drivers/firmware/psci/
H A Dpsci.c46 * calls to its resident CPU, so we must avoid issuing those. We never migrate
245 return __psci_migrate(psci_0_1_function_ids.migrate, cpuid); in psci_0_1_migrate()
250 return __psci_migrate(PSCI_FN_NATIVE(0_2, MIGRATE), cpuid); in psci_0_2_migrate()
385 PSCI_ID_NATIVE(0_2, MIGRATE),
677 .migrate = psci_0_2_migrate, in psci_0_2_set_functions()
775 if (!of_property_read_u32(np, "migrate", &id)) { in psci_0_1_init()
776 psci_0_1_function_ids.migrate = id; in psci_0_1_init()
777 psci_ops.migrate = psci_0_1_migrate; in psci_0_1_init()
/linux/scripts/
H A Dgenerate_rust_analyzer.py185 # > 0e071c2c6a58 ("Migrate core to Rust 2024")
186 # > f505d4e8e380 ("Migrate alloc to Rust 2024")
187 # > 0b2489c226c3 ("Migrate proc_macro to Rust 2024")
188 # > 993359e70112 ("Migrate std to Rust 2024")
/linux/tools/testing/selftests/kvm/x86/
H A Dxapic_ipi_test.c306 * migrate_pages with PID=0 will migrate all pages of this in do_migrations()
359 bool *migrate, int *delay_usecs) in get_cmdline_args() argument
371 *migrate = true; in get_cmdline_args()
397 bool migrate = false; in main() local
403 get_cmdline_args(argc, argv, &run_secs, &migrate, &delay_usecs); in main()
457 if (!migrate) in main()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_migrate_reuseport.c3 * Check if we can migrate child sockets.
97 SEC("sk_reuseport/migrate")
/linux/arch/arm/kernel/
H A Dpsci_smp.c37 * migrate Migrate the context to a different CPU
/linux/tools/testing/selftests/kvm/
H A Darch_timer.c17 * even more, an option to migrate the vCPUs across pCPUs (-m), at a
109 "Failed to migrate the vCPU:%u to pCPU: %u; ret: %d", in test_migrate_vcpu()
186 …pr_info("\t-m: Frequency (in ms) of vCPUs to migrate to different pCPU. 0 to turn off (default: %u… in test_print_help()
/linux/tools/perf/scripts/python/
H A Dsched-migration.py191 def migrate(self, ts_list, new, old_cpu, new_cpu): member in TimeSlice
351 def migrate(self, headers, pid, prio, orig_cpu, dest_cpu): member in SchedEventProxy
353 ts.migrate(self.timeslices, pid, orig_cpu, dest_cpu)
418 parser.migrate(headers, pid, prio, orig_cpu, dest_cpu)

12345678910