[PATCH i-g-t v3 0/2] tests/xe: Use NEEDS_VISIBLE_VRAM flag

Lukasz Laguna lukasz.laguna at intel.com
Mon Jun 16 14:22:57 UTC 2025


Set DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM flag when creating BOs
that will be CPU-mapped, to ensure that the corresponding VRAM
allocation will use the CPU accessible part of VRAM.

This is essential for small-bar systems, where omitting the flag may
cause failures or SIGBUS crashes due to the CPU accessing non-visible
VRAM.

Additionally, in xe_exec_atomic test, replace
I915_GEM_CREATE_EXT_FLAG_NEEDS_CPU_ACCESS with the correct
DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM.

v2: Split patches (Kamil)
v3: Fix few additional tests (Lukasz) 

Lukasz Laguna (2):
  tests/intel/xe_*: Use NEEDS_VISIBLE_VRAM flag where it's missing
  tests/intel/xe_exec_atomic: Fix incorrect GEM create flag

 tests/intel/xe_ccs.c                      |  6 +++---
 tests/intel/xe_copy_basic.c               | 10 ++++++----
 tests/intel/xe_exec_atomic.c              |  2 +-
 tests/intel/xe_exercise_blt.c             |  4 ++--
 tests/intel/xe_pat.c                      |  3 ++-
 tests/intel/xe_spin_batch.c               |  3 ++-
 tests/intel/xe_sysfs_timeslice_duration.c |  6 ++++--
 tests/intel/xe_vm.c                       |  6 ++++--
 8 files changed, 24 insertions(+), 16 deletions(-)

-- 
2.40.0



More information about the igt-dev mailing list