Home
last modified time | relevance | path

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

1234567891011

/linux/mm/
H A Dmigrate_device.c9 #include <linux/migrate.h>
24 struct migrate_vma *migrate = walk->private; in migrate_vma_collect_skip() local
28 migrate->dst[migrate->npages] = 0; in migrate_vma_collect_skip()
29 migrate->src[migrate->npages++] = 0; in migrate_vma_collect_skip()
40 struct migrate_vma *migrate = walk->private; in migrate_vma_collect_hole() local
48 migrate->src[migrate->npages] = MIGRATE_PFN_MIGRATE; in migrate_vma_collect_hole()
49 migrate->dst[migrate->npages] = 0; in migrate_vma_collect_hole()
50 migrate->npages++; in migrate_vma_collect_hole()
51 migrate->cpages++; in migrate_vma_collect_hole()
62 struct migrate_vma *migrate = walk->private; in migrate_vma_collect_pmd() local
[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.
792 * For memory tiering mode, when migrate between slow and fast in folio_migrate_flags()
873 * @dst: The folio to migrate the data to.
875 * @mode: How to migrate the page.
877 * Common logic to directly migrate a single LRU folio suitable for
998 * @dst: The folio to migrate to.
[all …]
H A Dpage_isolation.c12 #include <linux/migrate.h>
168 * We assume the caller intended to SET migrate type to isolate. in set_migratetype_isolate()
394 * to migrate it out of the way. in isolate_single_pageblock()
447 * future will not be allocated again. If specified range includes migrate types
H A Dcompaction.c13 #include <linux/migrate.h>
346 * should be skipped for page isolation when the migrate and free page scanner
374 /* Update the migrate PFN */ in __reset_isolation_suitable()
820 * isolate_migratepages_block() - isolate all migrate-able pages within
891 * to failure. We should migrate the pages now and in isolate_migratepages_block()
1048 * It's possible to migrate LRU and non-lru movable pages. in isolate_migratepages_block()
1088 * Only allow to migrate anonymous pages in GFP_NOFS context in isolate_migratepages_block()
1107 * it will be able to migrate without blocking - clean pages in isolate_migratepages_block()
1122 * a ->migrate_folio callback are possible to migrate in isolate_migratepages_block()
1311 * isolate_migratepages_range() - isolate migrate-able pages in a PFN range
[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/xe/
H A Dxe_migrate_doc.h10 * DOC: Migrate Layer
12 * The XE migrate layer is used generate jobs which can copy memory (eviction),
14 * a migrate engine, and uses a special VM for all generated jobs.
35 * A bind job consist of two batches and runs either on the migrate engine
37 * VM of the engine is the migrate VM.
60 * A copy or clear job consist of two batches and runs on the migrate engine.
H A Dxe_bo.c167 return tile->migrate; in mem_type_to_migrate()
802 struct xe_migrate *migrate = NULL; in xe_bo_move() local
912 migrate = bo->tile->migrate; in xe_bo_move()
914 migrate = mem_type_to_migrate(xe, new_mem->mem_type); in xe_bo_move()
916 migrate = mem_type_to_migrate(xe, old_mem_type); in xe_bo_move()
918 migrate = xe->tiles[0].migrate; in xe_bo_move()
920 xe_assert(xe, migrate); in xe_bo_move()
941 fence = xe_migrate_clear(migrate, bo, new_mem, flags); in xe_bo_move()
943 fence = xe_migrate_copy(migrate, bo, bo, old_mem, new_mem, in xe_bo_move()
1217 struct xe_migrate *migrate; in xe_bo_evict_pinned_copy() local
[all …]
/linux/tools/testing/selftests/mm/
H A Dmigration.c66 int migrate(uint64_t *ptr, int n1, int n2) in migrate() function
90 printf("Didn't migrate %d pages\n", ret); in migrate()
93 perror("Couldn't migrate pages"); in migrate()
141 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
176 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
206 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
248 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
273 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
308 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
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.c956 * Migrate anonymous memory to device private memory.
958 TEST_F(hmm, migrate) in TEST_F() argument
989 /* Migrate memory to device. */ in TEST_F()
1002 * Migrate anonymous memory to device private memory and fault some of it back
1037 /* Migrate memory to device. */ in TEST_F()
1050 /* Migrate memory to the device again. */ in TEST_F()
1091 /* Migrate memory to device. */ in TEST_F()
1112 * Migrate anonymous shared memory to device private memory.
1139 /* Migrate memory to device. */ in TEST_F()
1147 * Try to migrate various memory types to device private memory.
[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
11 * and migrate the requests in the accept queue
15 * and migrate the requests in the accept queue
19 * and migrate the requests in the accept queue
355 /* Migrate TCP_ESTABLISHED and TCP_SYN_RECV requests in migrate_dance()
364 /* No dance for TCP_NEW_SYN_RECV to migrate based on eBPF */ in migrate_dance()
385 /* Migrate from the last listener to the second one. in migrate_dance()
399 /* Migrate back to the last one from the second one */ in migrate_dance()
504 /* Migrate the requests in the accept queue only. in run_test()
[all …]
/linux/include/linux/
H A Dmigrate.h31 * If the driver cannot migrate the page at the moment, it can return
110 return -EAGAIN; /* can't migrate now */ in migrate_misplaced_folio_prepare()
114 return -EAGAIN; /* can't migrate now */ in migrate_misplaced_folio()
177 * Set to vmf->page if this is being called to migrate a page as part of
184 void migrate_vma_pages(struct migrate_vma *migrate);
185 void migrate_vma_finalize(struct migrate_vma *migrate);
H A Dpsci.h29 int (*migrate)(unsigned long cpuid); member
41 u32 migrate; member
/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()
/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/include/uapi/linux/
H A Dmempolicy.h52 #define MPOL_MF_LAZY (1<<3) /* UNSUPPORTED FLAG: Lazy migrate on fault */
65 #define MPOL_F_MOF (1 << 3) /* this policy wants migrate on fault */
66 #define MPOL_F_MORON (1 << 4) /* Migrate On protnone Reference On Node */
/linux/Documentation/gpu/xe/
H A Dxe_migrate.rst4 Migrate Layer
8 :doc: Migrate Layer
/linux/fs/ocfs2/dlm/
H A Ddlmmaster.c824 * of the MIGRATION mle: either the migrate finished or in dlm_get_lock_resource()
1506 mlog(0, "node %u is master, but trying to migrate to " in dlm_master_request_handler()
1510 "node is trying to migrate it to %u?!\n", in dlm_master_request_handler()
2594 mlog(ML_ERROR, "tried to migrate %.*s to %u, but " in dlm_migrate_lockres()
2766 /* Wheee! Migrate lockres here! Will sleep so drop spinlock. */ in dlm_empty_lockres()
2771 mlog(0, "%s: res %.*s, Migrate to node %u failed with %d\n", in dlm_empty_lockres()
2961 * Pick a node to migrate the lock resource to. This function selects a
3016 struct dlm_migrate_request migrate; in dlm_do_migrate_request() local
3020 memset(&migrate, 0, sizeof(migrate)); in dlm_do_migrate_request()
3021 migrate.namelen = res->lockname.len; in dlm_do_migrate_request()
[all …]
/linux/Documentation/devicetree/bindings/arm/
H A Dpsci.yaml85 migrate:
87 description: Function ID for MIGRATE operation
154 migrate = <0x95c10003>;
/linux/kernel/irq/
H A Dcpuhotplug.c68 pr_debug("IRQ %u: Unable to migrate away\n", d->irq); in migrate_one_irq()
162 * irq_migrate_all_off_this_cpu - Migrate irqs away from offline cpu
164 * The current CPU has been marked offline. Migrate IRQs off this CPU.
/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)

1234567891011