diff options
author | Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com> | 2025-08-14 16:59:50 +0200 |
---|---|---|
committer | Michał Winiarski <michal.winiarski@intel.com> | 2025-08-28 13:21:20 +0200 |
commit | 12267f831fa6fe679019d09c48089941908b7cf3 (patch) | |
tree | 56124244760221b408db70de6250ccca7a90c87e /rust/helpers/helpers.c | |
parent | 81a45cb7ea31a59777af294de590eea66ab80691 (diff) |
drm/xe/tests: Make cross-device dma-buf BOs CPU-visible on small BAR
Small-BAR systems (e.g., SR-IOV VFs in VMs) expose only a subset of
VRAM via PCI/BAR. Exporting a BO outside that window fails, and the
selftests also do CPU fill/verify.
Set XE_BO_FLAG_NEEDS_CPU_ACCESS for cross-device variants to force
CPU-mappable placement and keep tests reliable. Large-BAR/P2P setups
are unaffected.
Suggested-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://lore.kernel.org/r/20250814145950.430231-1-marcin.bernatowicz@linux.intel.com
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions