[PATCH i-g-t v2 0/2] tests/xe: Use NEEDS_VISIBLE_VRAM flag
Lukasz Laguna
lukasz.laguna at intel.com
Mon Jun 16 08:54:15 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)
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_exec_atomic.c | 2 +-
tests/intel/xe_pat.c | 3 ++-
tests/intel/xe_spin_batch.c | 3 ++-
3 files changed, 5 insertions(+), 3 deletions(-)
--
2.40.0
More information about the igt-dev
mailing list