/linux-6.15/mm/ |
D | migrate_device.c | 9 #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 …]
|
D | migrate.c | 3 * Memory Migration functionality - linux/mm/migrate.c 16 #include <linux/migrate.h> 50 #include <trace/events/migrate.h> 695 * For memory tiering mode, when migrate between slow and fast in folio_migrate_flags() 776 * @dst: The folio to migrate the data to. 778 * @mode: How to migrate the page. 780 * Common logic to directly migrate a single LRU folio suitable for 901 * @dst: The folio to migrate to. 902 * @src: The folio to migrate from. 903 * @mode: How to migrate the folio. [all …]
|
D | page_isolation.c | 12 #include <linux/migrate.h> 168 * We assume the caller intended to SET migrate type to isolate. in set_migratetype_isolate() 299 * @migratetype: migrate type to set in error recovery. 395 * to migrate it out of the way. in isolate_single_pageblock() 444 * @migratetype: Migrate type to set in error recovery. 455 * future will not be allocated again. If specified range includes migrate types 532 * @migratetype: New migrate type to set on the range
|
/linux-6.15/drivers/gpu/drm/i915/gt/ |
D | selftest_migrate.c | 36 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-6.15/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_migrate.c | 27 #include <linux/migrate.h> 181 * @mfence: migrate fence 263 static unsigned long svm_migrate_unsuccessful_pages(struct migrate_vma *migrate) in svm_migrate_unsuccessful_pages() argument 268 for (i = 0; i < migrate->npages; i++) { in svm_migrate_unsuccessful_pages() 269 if (migrate->src[i] & MIGRATE_PFN_VALID && in svm_migrate_unsuccessful_pages() 270 !(migrate->src[i] & MIGRATE_PFN_MIGRATE)) in svm_migrate_unsuccessful_pages() 278 struct migrate_vma *migrate, struct dma_fence **mfence, in svm_migrate_copy_to_vram() argument 281 uint64_t npages = migrate->npages; in svm_migrate_copy_to_vram() 299 for (i = j = 0; (i < npages) && (mpages < migrate->cpages); i++) { in svm_migrate_copy_to_vram() 302 if (migrate->src[i] & MIGRATE_PFN_MIGRATE) { in svm_migrate_copy_to_vram() [all …]
|
/linux-6.15/drivers/gpu/drm/ |
D | drm_gpusvm.c | 12 #include <linux/migrate.h> 56 * Embedded structure containing enough information for GPU SVM to migrate 74 * optionally migrate the range to device memory, and create GPU bindings. 139 * has device memory as its backing, the driver is also expected to migrate any 231 * // Partial unmap, migrate any remaining device memory pages back to RAM 786 * @migrate_devmem: Flag indicating whether to migrate device memory 948 * drm_gpusvm_migrate_to_devmem with 'migrate.cpages != npages' in drm_gpusvm_range_chunk_size() 1562 * @migrate_pfn: Array of migrate page frame numbers 1602 * @migrate_pfn: Array of migrate page frame numbers to map 1665 * drm_gpusvm_migrate_to_devmem() - Migrate GPU SVM range to device memory [all …]
|
/linux-6.15/drivers/gpu/drm/xe/ |
D | xe_migrate_doc.h | 10 * 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.
|
D | xe_migrate.c | 39 * struct xe_migrate - migrate context. 88 * xe_tile_migrate_exec_queue() - Get this tile's migrate exec queue. 91 * Returns the default migrate exec queue of this tile. 93 * Return: The default migrate exec queue 97 return tile->migrate->q; in xe_tile_migrate_exec_queue() 128 * migrate offset in xe_migrate_vram_ofs() 366 * migrate jobs servicing the faults gets stuck behind the job that faulted. 391 * xe_migrate_init() - Initialize a migrate context 394 * Return: Pointer to a migrate context on success. Error pointer on error. 471 drm_dbg(&xe->drm, "Migrate min chunk size is 0x%08llx\n", in xe_migrate_init() [all …]
|
/linux-6.15/net/xfrm/ |
D | Kconfig | 62 bool "Transformation migrate database" 123 bool "PF_KEY MIGRATE" 127 Add a PF_KEY MIGRATE message to PF_KEYv2 socket family. 128 The PF_KEY MIGRATE message is used to dynamically update 134 <draft-sugimoto-mip6-pfkey-migrate>.
|
/linux-6.15/tools/testing/selftests/mm/ |
D | migration.c | 63 int migrate(uint64_t *ptr, int n1, int n2) in migrate() function 87 printf("Didn't migrate %d pages\n", ret); in migrate() 90 perror("Couldn't migrate pages"); in migrate() 140 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0); 175 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0); 202 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0); 241 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0); 266 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0); 301 ASSERT_EQ(migrate(ptr, self->n1, self->n2), 0);
|
D | hmm-tests.c | 956 * 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-6.15/drivers/gpu/drm/nouveau/ |
D | nouveau_dmem.c | 42 #include <linux/migrate.h> 82 struct nouveau_dmem_migrate migrate; member 153 if (drm->dmem->migrate.copy_func(drm, 1, NOUVEAU_APER_HOST, *dma_addr, in nouveau_dmem_copy_one() 184 * FIXME what we really want is to find some heuristic to migrate more in nouveau_dmem_migrate_to_ram() 213 nouveau_fence_new(&fence, dmem->migrate.chan); in nouveau_dmem_migrate_to_ram() 406 nouveau_fence_new(&fence, chunk->drm->dmem->migrate.chan); in nouveau_dmem_evict_chunk() 447 struct nvif_push *push = &drm->dmem->migrate.chan->chan.push; in nvc0b5_migrate_copy() 520 struct nvif_push *push = &drm->dmem->migrate.chan->chan.push; in nvc0b5_migrate_clear() 580 drm->dmem->migrate.copy_func = nvc0b5_migrate_copy; in nouveau_dmem_migrate_init() 581 drm->dmem->migrate.clear_func = nvc0b5_migrate_clear; in nouveau_dmem_migrate_init() [all …]
|
/linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
D | migrate_reuseport.c | 3 * 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-6.15/tools/testing/selftests/net/tcp_ao/ |
D | restore.c | 94 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-6.15/include/linux/ |
D | migrate.h | 40 * If the driver cannot migrate the page at the moment, it can return 152 return -EAGAIN; /* can't migrate now */ in migrate_misplaced_folio_prepare() 156 return -EAGAIN; /* can't migrate now */ in migrate_misplaced_folio() 219 * Set to vmf->page if this is being called to migrate a page as part of 226 void migrate_vma_pages(struct migrate_vma *migrate); 227 void migrate_vma_finalize(struct migrate_vma *migrate);
|
D | psci.h | 29 int (*migrate)(unsigned long cpuid); member 41 u32 migrate; member
|
/linux-6.15/arch/um/drivers/ |
D | Kconfig | 168 migrate to UML_NET_VECTOR. 185 migrate to UML_NET_VECTOR. 206 migrate to UML_NET_VECTOR. 227 migrate to UML_NET_VECTOR. 273 migrate to UML_NET_VECTOR. 296 migrate to UML_NET_VECTOR. 322 migrate to UML_NET_VECTOR.
|
/linux-6.15/drivers/gpu/drm/i915/gem/ |
D | i915_gem_object.c | 669 * @obj: The object to migrate 670 * @id: The region intended to migrate to 673 * given region. Note that pinning may affect the ability to migrate as 677 * possibility to migrate objects and might be slightly less permissive 707 if (!obj->ops->migrate) in i915_gem_object_can_migrate() 725 * i915_gem_object_migrate - Migrate an object to the desired region id 726 * @obj: The object to migrate. 729 * @id: The region id to migrate to. 731 * Attempt to migrate the object to the desired memory region. The 757 * __i915_gem_object_migrate - Migrate an object to the desired region id, with [all …]
|
/linux-6.15/include/uapi/linux/ |
D | mempolicy.h | 52 #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-6.15/Documentation/gpu/rfc/ |
D | gpusvm.rst | 21 migrate can actually migrate, with only the faulting page guaranteed 22 to migrate). 104 migrate device layer are a performance bottleneck, having compound
|
/linux-6.15/Documentation/gpu/xe/ |
D | xe_migrate.rst | 4 Migrate Layer 8 :doc: Migrate Layer
|
/linux-6.15/drivers/firmware/psci/ |
D | psci.c | 46 * 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), 667 .migrate = psci_0_2_migrate, in psci_0_2_set_functions() 765 if (!of_property_read_u32(np, "migrate", &id)) { in psci_0_1_init() 766 psci_0_1_function_ids.migrate = id; in psci_0_1_init() 767 psci_ops.migrate = psci_0_1_migrate; in psci_0_1_init()
|
/linux-6.15/tools/testing/selftests/kvm/x86/ |
D | xapic_ipi_test.c | 307 * migrate_pages with PID=0 will migrate all pages of this in do_migrations() 360 bool *migrate, int *delay_usecs) in get_cmdline_args() argument 372 *migrate = true; in get_cmdline_args() 398 bool migrate = false; in main() local 404 get_cmdline_args(argc, argv, &run_secs, &migrate, &delay_usecs); in main() 458 if (!migrate) in main()
|
/linux-6.15/fs/ocfs2/dlm/ |
D | dlmmaster.c | 824 * of the MIGRATION mle: either the migrate finished or in dlm_get_lock_resource() 1510 mlog(0, "node %u is master, but trying to migrate to " in dlm_master_request_handler() 1514 "node is trying to migrate it to %u?!\n", in dlm_master_request_handler() 2605 mlog(ML_ERROR, "tried to migrate %.*s to %u, but " in dlm_migrate_lockres() 2777 /* Wheee! Migrate lockres here! Will sleep so drop spinlock. */ in dlm_empty_lockres() 2782 mlog(0, "%s: res %.*s, Migrate to node %u failed with %d\n", in dlm_empty_lockres() 2972 * Pick a node to migrate the lock resource to. This function selects a 3027 struct dlm_migrate_request migrate; in dlm_do_migrate_request() local 3031 memset(&migrate, 0, sizeof(migrate)); in dlm_do_migrate_request() 3032 migrate.namelen = res->lockname.len; in dlm_do_migrate_request() [all …]
|
/linux-6.15/Documentation/devicetree/bindings/arm/ |
D | psci.yaml | 85 migrate: 87 description: Function ID for MIGRATE operation 154 migrate = <0x95c10003>;
|