]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Fix build_pt_update_batch_sram for non-4K PAGE_SIZE
authorMatthew Brost <matthew.brost@intel.com>
Mon, 13 Oct 2025 03:45:54 +0000 (20:45 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Mon, 13 Oct 2025 19:31:21 +0000 (12:31 -0700)
commit55991d854f65d58cfe2c7d5219ffbd83d07c2577
treec5b0a5da0a8ecd203c0a042771a8ea829171036d
parent604be9dad8f6a25a7afa898e29c6b6b4f9243200
drm/xe: Fix build_pt_update_batch_sram for non-4K PAGE_SIZE

The build_pt_update_batch_sram function in the Xe migrate layer assumes
PAGE_SIZE == XE_PAGE_SIZE (4K), which is not a valid assumption on
non-x86 platforms. This patch updates build_pt_update_batch_sram to
correctly handle PAGE_SIZE > 4K by programming multiple 4K GPU pages per
CPU page.

v5:
 - Mask off non-address bits during compare

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Tested-by: Simon Richter <Simon.Richter@hogyros.de>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Link: https://lore.kernel.org/r/20251013034555.4121168-2-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_migrate.c