From: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: kamil.konieczny@linux.intel.com, adam.miszczak@linux.intel.com,
jakub1.kolakowski@intel.com, lukasz.laguna@intel.com,
michal.wajdeczko@intel.com, michal.winiarski@intel.com,
narasimha.c.v@intel.com, piotr.piorkowski@intel.com,
satyanarayana.k.v.p@intel.com, tomasz.lis@intel.com,
Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Subject: [PATCH v2 i-g-t 0/5] Add debugfs SR-IOV helpers; Improve clear-lmem check
Date: Wed, 13 Nov 2024 12:59:43 +0100 [thread overview]
Message-ID: <20241113115948.287709-1-marcin.bernatowicz@linux.intel.com> (raw)
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
next reply other threads:[~2024-11-13 11:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-13 11:59 Marcin Bernatowicz [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241113115948.287709-1-marcin.bernatowicz@linux.intel.com \
--to=marcin.bernatowicz@linux.intel.com \
--cc=adam.miszczak@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jakub1.kolakowski@intel.com \
--cc=kamil.konieczny@linux.intel.com \
--cc=lukasz.laguna@intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=michal.winiarski@intel.com \
--cc=narasimha.c.v@intel.com \
--cc=piotr.piorkowski@intel.com \
--cc=satyanarayana.k.v.p@intel.com \
--cc=tomasz.lis@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.