Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 i-g-t 0/5] Add debugfs SR-IOV helpers; Improve clear-lmem check
@ 2024-11-13 11:59 Marcin Bernatowicz
  2024-11-13 11:59 ` [PATCH v2 i-g-t 1/5] lib/xe_sriov_debugfs: Add helper for opening attributes Marcin Bernatowicz
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Marcin Bernatowicz @ 2024-11-13 11:59 UTC (permalink / raw)
  To: igt-dev
  Cc: kamil.konieczny, adam.miszczak, jakub1.kolakowski, lukasz.laguna,
	michal.wajdeczko, michal.winiarski, narasimha.c.v,
	piotr.piorkowski, satyanarayana.k.v.p, tomasz.lis,
	Marcin Bernatowicz

This patch series introduces SR-IOV debugfs and provisioning helpers
to allow enhance test coverage.

The following changes are included:

1. Add helper for opening SR-IOV debugfs attributes:
   Helper allows to open SR-IOV debugfs attributes corresponding to
   specified PF device, VF number, and GT number.

2. Define shared resource types and provisioned range structure:
   Add shared resource enumeration, provisioned range structure definition,
   and provide a function to convert shared resource enums to their string
   representation.

3. Add function to read provisioned ranges from debugfs:
   Implement xe_sriov_pf_debugfs_read_provisioned_ranges() to read and
   parse VFs provisioned shared resource ranges from the debug filesystem.
   Introduce xe_sriov_debugfs_provisioned_attr_name() to get the debugfs
   attribute name for a given shared resource type.

4. Improved clear-lmem subcheck in xe_sriov_flr test:
   Read and verify full LMEM ranges using the lmem_provisioned debugfs
   attribute in the clear-lmem subcheck.

5. Extract the function to search for GGTT provisioned PTE ranges for each
   VF from test/xe_sriov_flr to a library file lib/xe/xe_sriov_provisioning.
   This refactoring improves code reusability and will allow to prepare a
   test comparing debugfs exposed ggtt_provisioned attribute.

v2: Remove unnecessary include (Kamil)
    Correct function descriptions (Adam)

Lukasz Laguna (1):
  lib/xe_sriov_debugfs: Add helper for opening attributes

Marcin Bernatowicz (4):
  lib/xe/xe_sriov_provisioning: Define resource types and provisioned
    range structure
  lib/xe/xe_sriov_debugfs: Add function to read provisioned ranges
  tests/intel/xe_sriov_flr: Verify full LMEM range
  lib/xe/xe_sriov_provisioning: Extract function to search provisioned
    PTE ranges

 lib/meson.build                |   2 +
 lib/xe/xe_sriov_debugfs.c      | 206 +++++++++++++++++++++++++++++++++
 lib/xe/xe_sriov_debugfs.h      |  20 ++++
 lib/xe/xe_sriov_provisioning.c | 124 ++++++++++++++++++++
 lib/xe/xe_sriov_provisioning.h |  50 ++++++++
 tests/intel/xe_sriov_flr.c     | 189 ++++++++++++++----------------
 6 files changed, 488 insertions(+), 103 deletions(-)
 create mode 100644 lib/xe/xe_sriov_debugfs.c
 create mode 100644 lib/xe/xe_sriov_debugfs.h
 create mode 100644 lib/xe/xe_sriov_provisioning.c
 create mode 100644 lib/xe/xe_sriov_provisioning.h

-- 
2.31.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-11-13 22:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13 11:59 [PATCH v2 i-g-t 0/5] Add debugfs SR-IOV helpers; Improve clear-lmem check Marcin Bernatowicz
2024-11-13 11:59 ` [PATCH v2 i-g-t 1/5] lib/xe_sriov_debugfs: Add helper for opening attributes Marcin Bernatowicz
2024-11-13 11:59 ` [PATCH v2 i-g-t 2/5] lib/xe/xe_sriov_provisioning: Define resource types and provisioned range structure Marcin Bernatowicz
2024-11-13 11:59 ` [PATCH v2 i-g-t 3/5] lib/xe/xe_sriov_debugfs: Add function to read provisioned ranges Marcin Bernatowicz
2024-11-13 11:59 ` [PATCH v2 i-g-t 4/5] tests/intel/xe_sriov_flr: Verify full LMEM range Marcin Bernatowicz
2024-11-13 11:59 ` [PATCH v2 i-g-t 5/5] lib/xe/xe_sriov_provisioning: Extract function to search provisioned PTE ranges Marcin Bernatowicz
2024-11-13 15:27 ` ✓ Fi.CI.BAT: success for Add debugfs SR-IOV helpers; Improve clear-lmem check (rev2) Patchwork
2024-11-13 15:32 ` ✓ CI.xeBAT: " Patchwork
2024-11-13 18:08 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-11-13 22:13 ` ✗ CI.xeFULL: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox