diff options
| author | Matthew Brost <matthew.brost@intel.com> | 2026-04-10 13:59:26 -0700 |
|---|---|---|
| committer | Matthew Brost <matthew.brost@intel.com> | 2026-04-12 20:51:11 -0700 |
| commit | 667e95ce2816631fc196c8136122819f5b630a67 (patch) | |
| tree | 202e68f1c7414b802cdd23329b83b0deaa683a3d /include | |
| parent | 37ad039fb3674a36dbf082fa5c864af1b791eccd (diff) | |
| download | linux-667e95ce2816631fc196c8136122819f5b630a67.tar.gz linux-667e95ce2816631fc196c8136122819f5b630a67.zip | |
drm/pagemap: Drop source_peer_migrates flag and assume true
All current users of DRM pagemap set source_peer_migrates to true during
migration, and it is unclear whether any user would ever want to disable
this for performance reasons or for features such as compression. It is
also questionable whether this flag could be made to work with
high-speed fabric mapping APIs.
Drop the flag and make DRM pagemap unconditionally assume that
source_peer_migrates is true.
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Link: https://patch.msgid.link/20260410205929.3914474-3-matthew.brost@intel.com
Diffstat (limited to 'include')
| -rw-r--r-- | include/drm/drm_pagemap.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/drm/drm_pagemap.h b/include/drm/drm_pagemap.h index 75e6ca58922d..95eb4b66b057 100644 --- a/include/drm/drm_pagemap.h +++ b/include/drm/drm_pagemap.h @@ -329,17 +329,12 @@ struct drm_pagemap_devmem { * struct drm_pagemap_migrate_details - Details to govern migration. * @timeslice_ms: The time requested for the migrated pagemap pages to * be present in @mm before being allowed to be migrated back. - * @can_migrate_same_pagemap: Whether the copy function as indicated by - * the @source_peer_migrates flag, can migrate device pages within a - * single drm_pagemap. - * @source_peer_migrates: Whether on p2p migration, The source drm_pagemap - * should use the copy_to_ram() callback rather than the destination - * drm_pagemap should use the copy_to_devmem() callback. + * @can_migrate_same_pagemap: Whether the copy function can migrate + * device pages within a single drm_pagemap. */ struct drm_pagemap_migrate_details { unsigned long timeslice_ms; u32 can_migrate_same_pagemap : 1; - u32 source_peer_migrates : 1; }; #if IS_ENABLED(CONFIG_ZONE_DEVICE) |
