Skip to content

Validate VF accesses to VRAM via BAR

Lukasz Laguna igt-dev 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v34 patches 0 repliesSuperseded
  3. v24 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches7 repliesSuperseded

Changes in v4 from the cover letter

- log the failing ranges (Marcin),
- print detailed debug data when using verbose flag,
- change subtest name from vf-access-basic to vf-access-provisioned.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4lib/igt_sriov_device: Add helper to iterate over enabled VFslib/igt_sriov_device.h+12 -00 replies
2/4lib/intel_vram: Add library for VRAM accesseslib/intel_vram.c lib/intel_vram.h lib/meson.build+212 -00 replies
3/4tests/intel/xe_sriov_flr: Use VRAM access helpers from intel_vram librarytests/intel/xe_sriov_flr.c+18 -860 replies
4/4tests/intel/xe_sriov_vram: Add test checking VF access to VRAMtests/intel/xe_sriov_vram.c tests/meson.build+389 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchPiotr PiórkowskiMarcin Bernatowicz
1/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

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

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.

v4:
- log the failing ranges (Marcin),
- print detailed debug data when using verbose flag,
- change subtest name from vf-access-basic to vf-access-provisioned.

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 | 388 ++++++++++++++++++++++++++++++++++++
 tests/meson.build           |   1 +
 7 files changed, 631 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
Signature · 1 line
2.40.0