]> Gentwo Git Trees - linux/.git/commit
drm/xe: Enable 2M pages in xe_migrate_vram
authorMatthew Brost <matthew.brost@intel.com>
Mon, 13 Oct 2025 03:45:55 +0000 (20:45 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Mon, 13 Oct 2025 19:31:22 +0000 (12:31 -0700)
commitdd83b101a4a65c212bacc52dea3b0b7131a2e88a
tree4d86cb88d5879c79c3b23905e1386134a5a05e42
parent55991d854f65d58cfe2c7d5219ffbd83d07c2577
drm/xe: Enable 2M pages in xe_migrate_vram

Using 2M pages in xe_migrate_vram has two benefits: we issue fewer
instructions per 2M copy (1 vs. 512), and the cache hit rate should be
higher. This results in increased copy engine bandwidth, as shown by
benchmark IGTs.

Enable 2M pages by reserving PDEs in the migrate VM and using 2M pages
in xe_migrate_vram if the DMA address order matches 2M.

v2:
 - Reuse build_pt_update_batch_sram (Stuart)
 - Fix build_pt_update_batch_sram for PAGE_SIZE > 4K
v3:
 - More fixes for PAGE_SIZE > 4K, align chunk, decrement chunk as needed
 - Use stack incr var in xe_migrate_vram_use_pde (Stuart)
v4:
 - Split PAGE_SIZE > 4K fix out in different patch (Stuart)

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