]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/migrate: rework size restrictions for sram pte emit
authorMatthew Auld <matthew.auld@intel.com>
Wed, 22 Oct 2025 16:38:31 +0000 (17:38 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 23 Oct 2025 09:48:34 +0000 (10:48 +0100)
commitaaeef7a9c8b9206039a588a23e4dc11dddbefe2d
treedc0be6f6fd7d1399345bcff83cea247c0aac3fbd
parent3c767f762be973711421876d9e05e4dfd93f74ce
drm/xe/migrate: rework size restrictions for sram pte emit

We allow the input size to not be aligned to PAGE_SIZE, which leads to
various bugs in build_pt_update_batch_sram() for PAGE_SIZE > 4K systems.
For example if ptes is exactly one gpu_page_size then the chunk size is
rounded down to zero.  The simplest fix looks to be forcing PAGE_SIZE
aligned inputs.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20251022163836.191405-3-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_migrate.c