From: "Laguna, Lukasz" <lukasz.laguna@intel.com>
To: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>,
<igt-dev@lists.freedesktop.org>
Cc: <adam.miszczak@linux.intel.com>, <jakub1.kolakowski@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>
Subject: Re: [PATCH v2 i-g-t 0/6] Introduce xe_sriov_flr test
Date: Mon, 28 Oct 2024 15:29:24 +0100 [thread overview]
Message-ID: <2bd8cb26-45e6-40de-946e-fec2f6d989d7@intel.com> (raw)
In-Reply-To: <20241021200737.941384-1-marcin.bernatowicz@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 2944 bytes --]
On 10/21/2024 22:07, Marcin Bernatowicz wrote:
> Introduce VF (Virtual Function) FLR (Function Level Reset) tests to
> validate shared resource cleanup and ensure isolation across VFs (confirm
> that one VF's FLR does not affect another VF's resources). To reduce
> runtime perform a single FLR and verify all subchecks (clear-lmem,
> clear-ggtt, clear-scratch-regs, clear-media-scratch-regs) in one go.
> The proposed skeleton ensures that while one subcheck may stop due
> to failure or a skip condition, other subchecks can continue execution.
>
> The series includes:
>
> lib/igt_sriov_device: Add helper for opening SR-IOV device sysfs
> lib/igt_sriov_device: Add helper for resetting SR-IOV device
>
> tests/intel/xe_sriov_flr: Add skeleton for clear and isolation tests
> Introduce a skeleton and verify_flr method to orchestrate FLRs across VFs.
>
> tests/intel/xe_sriov_flr: Implement clear-ggtt subcheck
> Add GGTT subcheck to verify address resets post-FLR.
>
> tests/intel/xe_sriov_flr: Implement clear-lmem subcheck
> Add LMEM subcheck to validate VF memory clearing post-FLR.
>
> tests/intel/xe_sriov_flr: Implement clear-scratch-regs and
> clear-media-scratch-regs subchecks
> Add subchecks to verify clearing of scratch and media scratch registers
> post-FLR.
>
> Example test output:
>
> ATSM:~# xe_sriov_flr
> IGT-Version: 1.29-gf1c71392e (x86_64) (Linux: 6.11.0-rc5-xe+ x86_64)
> Using IGT_SRANDOM=1728461543 for randomisation
> Opened device: /dev/dri/card1
> Starting subtest: flr-vf1-clear
> clear-ggtt: SUCCESS
> clear-lmem: SUCCESS
> clear-scratch-regs: SUCCESS
> clear-media-scratch-regs: SKIP : No media GT
> Subtest flr-vf1-clear: SUCCESS (7.506s)
> Starting subtest: flr-each-isolation
> clear-ggtt: SUCCESS
> clear-lmem: SUCCESS
> clear-scratch-regs: SUCCESS
> clear-media-scratch-regs: SKIP : No media GT
> Subtest flr-each-isolation: SUCCESS (11.797s)
>
> v2: Correct subtest run type, use uppercase for GT.
> Adjust pte_offsets, vf_lmem_size, mmio arrays to align VF index
> with array index.
> Add set_skip_reason, set_fail_reason helpers for readability.
>
> Marcin Bernatowicz (6):
> lib/igt_sriov_device: add helper for opening SR-IOV device sysfs
> lib/igt_sriov_device: add helper for resetting SR-IOV device
> tests/intel/xe_sriov_flr: Add skeleton for clear and isolation tests
> tests/intel/xe_sriov_flr: Implement clear-ggtt subcheck
> tests/intel/xe_sriov_flr: Implement clear-lmem subcheck
> tests/intel/xe_sriov_flr: Implement clear-scratch-regs and
> clear-media-scratch-regs subchecks
>
> lib/igt_sriov_device.c | 83 ++++
> lib/igt_sriov_device.h | 3 +
> tests/intel/xe_sriov_flr.c | 936 +++++++++++++++++++++++++++++++++++++
> tests/meson.build | 1 +
> 4 files changed, 1023 insertions(+)
> create mode 100644 tests/intel/xe_sriov_flr.c
LGTM,
Reviewed-by: Lukasz Laguna <lukasz.laguna@intel.com>
[-- Attachment #2: Type: text/html, Size: 3328 bytes --]
prev parent reply other threads:[~2024-10-28 14:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-21 20:07 [PATCH v2 i-g-t 0/6] Introduce xe_sriov_flr test Marcin Bernatowicz
2024-10-21 20:07 ` [PATCH v2 i-g-t 1/6] lib/igt_sriov_device: add helper for opening SR-IOV device sysfs Marcin Bernatowicz
2024-10-21 20:07 ` [PATCH v2 i-g-t 2/6] lib/igt_sriov_device: add helper for resetting SR-IOV device Marcin Bernatowicz
2024-10-22 10:10 ` Michal Wajdeczko
2024-10-23 14:23 ` Bernatowicz, Marcin
2024-10-21 20:07 ` [PATCH v2 i-g-t 3/6] tests/intel/xe_sriov_flr: Add skeleton for clear and isolation tests Marcin Bernatowicz
2024-10-21 20:07 ` [PATCH v2 i-g-t 4/6] tests/intel/xe_sriov_flr: Implement clear-ggtt subcheck Marcin Bernatowicz
2024-10-21 20:07 ` [PATCH v2 i-g-t 5/6] tests/intel/xe_sriov_flr: Implement clear-lmem subcheck Marcin Bernatowicz
2024-10-21 20:07 ` [PATCH v2 i-g-t 6/6] tests/intel/xe_sriov_flr: Implement clear-scratch-regs and clear-media-scratch-regs subchecks Marcin Bernatowicz
2024-10-21 21:41 ` ✓ Fi.CI.BAT: success for Introduce xe_sriov_flr test (rev2) Patchwork
2024-10-21 21:51 ` ✓ CI.xeBAT: " Patchwork
2024-10-22 3:56 ` ✗ CI.xeFULL: failure " Patchwork
2024-10-22 5:07 ` ✗ Fi.CI.IGT: " Patchwork
2024-10-28 14:29 ` Laguna, Lukasz [this message]
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=2bd8cb26-45e6-40de-946e-fec2f6d989d7@intel.com \
--to=lukasz.laguna@intel.com \
--cc=adam.miszczak@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jakub1.kolakowski@intel.com \
--cc=marcin.bernatowicz@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox