[PATCH i-g-t v2 0/4] Validate VF accesses to VRAM via BAR

Lukasz Laguna lukasz.laguna at intel.com
Wed Aug 27 14:49:12 UTC 2025


Series includes a test to validate VF access to VRAM via BAR. The
following scenarios are covered:
- VF can access all provisioned memory via the VRAM BAR,
- VF cannot access memory beyond what's provisioned via the VRAM BAR,
- VF can access memory via the VRAM BAR after reprovisioning.

Additionally, it introduces a library for VRAM accesses and helper to
iterate over enabled VFs.

v2:
- apply changes in intel_vram lib based on Marcin's review,
- apply changes in xe_sriov_vram based on Piotr's and Marcin's review.

Detailed changelogs can be found in updated patches.

Lukasz Laguna (4):
  lib/igt_sriov_device: Add helper to iterate over enabled VFs
  lib/intel_vram: Add library for VRAM accesses
  tests/intel/xe_sriov_flr: Use VRAM access helpers from intel_vram
    library
  tests/intel/xe_sriov_vram: Add test checking VF access to VRAM

 lib/igt_sriov_device.h      |  12 ++
 lib/intel_vram.c            | 189 ++++++++++++++++++++++
 lib/intel_vram.h            |  22 +++
 lib/meson.build             |   1 +
 tests/intel/xe_sriov_flr.c  | 104 +++---------
 tests/intel/xe_sriov_vram.c | 312 ++++++++++++++++++++++++++++++++++++
 tests/meson.build           |   1 +
 7 files changed, 555 insertions(+), 86 deletions(-)
 create mode 100644 lib/intel_vram.c
 create mode 100644 lib/intel_vram.h
 create mode 100644 tests/intel/xe_sriov_vram.c

-- 
2.40.0



More information about the igt-dev mailing list