Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/5] Add debugfs SR-IOV helpers; Improve clear-lmem check
@ 2024-10-30 19:36 Marcin Bernatowicz
  2024-10-30 19:36 ` [PATCH i-g-t 1/5] lib/xe_sriov_debugfs: add helper for opening attributes Marcin Bernatowicz
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Marcin Bernatowicz @ 2024-10-30 19:36 UTC (permalink / raw)
  To: igt-dev
  Cc: 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.

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] 17+ messages in thread

end of thread, other threads:[~2024-11-06  9:17 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30 19:36 [PATCH i-g-t 0/5] Add debugfs SR-IOV helpers; Improve clear-lmem check Marcin Bernatowicz
2024-10-30 19:36 ` [PATCH i-g-t 1/5] lib/xe_sriov_debugfs: add helper for opening attributes Marcin Bernatowicz
2024-10-31 10:28   ` Kamil Konieczny
2024-11-05  8:45   ` Adam Miszczak
2024-10-30 19:36 ` [PATCH i-g-t 2/5] lib/xe/xe_sriov_provisioning: Define resource types and provisioned range structure Marcin Bernatowicz
2024-11-05 11:21   ` Adam Miszczak
2024-11-06  9:09     ` Bernatowicz, Marcin
2024-10-30 19:36 ` [PATCH i-g-t 3/5] lib/xe/xe_sriov_debugfs: Add function to read provisioned ranges Marcin Bernatowicz
2024-11-05 11:39   ` Adam Miszczak
2024-10-30 19:36 ` [PATCH i-g-t 4/5] tests/intel/xe_sriov_flr: Verify full LMEM range Marcin Bernatowicz
2024-11-06  8:31   ` Adam Miszczak
2024-10-30 19:36 ` [PATCH i-g-t 5/5] lib/xe/xe_sriov_provisioning: Extract function to search provisioned PTE ranges Marcin Bernatowicz
2024-11-06  8:08   ` Adam Miszczak
2024-10-30 21:41 ` ✓ Fi.CI.BAT: success for Add debugfs SR-IOV helpers; Improve clear-lmem check Patchwork
2024-10-30 21:42 ` ✓ CI.xeBAT: " Patchwork
2024-10-30 23:20 ` ✗ CI.xeFULL: failure " Patchwork
2024-10-31  7:15 ` ✗ Fi.CI.IGT: " Patchwork

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