From: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>,
Lukasz Laguna <lukasz.laguna@intel.com>,
Michal Wajdeczko <michal.wajdeczko@intel.com>,
Adam Miszczak <adam.miszczak@linux.intel.com>,
Jakub Kolakowski <jakub1.kolakowski@intel.com>,
Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Subject: [PATCH i-g-t 2/2] tests/intel/xe_sriov_flr: Skip non-MAIN GTs when reading provisioning data
Date: Fri, 29 Aug 2025 12:40:37 +0200 [thread overview]
Message-ID: <20250829104037.649426-3-marcin.bernatowicz@linux.intel.com> (raw)
In-Reply-To: <20250829104037.649426-1-marcin.bernatowicz@linux.intel.com>
Provisioning (GGTT and LMEM) is exposed only on MAIN GTs.
Non-MAIN GTs (e.g., MEDIA) do not provide provisioning data,
so attempting to read it there previously caused skips.
Restrict the GGTT and LMEM subtests to MAIN GTs only.
Suggested-by: Lukasz Laguna <lukasz.laguna@intel.com>
Suggested-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Cc: Adam Miszczak <adam.miszczak@linux.intel.com>
Cc: Jakub Kolakowski <jakub1.kolakowski@intel.com>
Cc: Lukasz Laguna <lukasz.laguna@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
---
tests/intel/xe_sriov_flr.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/intel/xe_sriov_flr.c b/tests/intel/xe_sriov_flr.c
index fc08703c0..448b63521 100644
--- a/tests/intel/xe_sriov_flr.c
+++ b/tests/intel/xe_sriov_flr.c
@@ -596,8 +596,9 @@ static void ggtt_subcheck_init(struct subcheck_data *data)
{
struct ggtt_data *gdata = (struct ggtt_data *)data;
- if (xe_is_media_gt(data->pf_fd, data->gt)) {
- set_skip_reason(data, "GGTT unavailable on media GT\n");
+ if (!xe_is_main_gt(data->pf_fd, data->gt)) {
+ set_skip_reason(data, "GGTT provisioning not exposed on GT%d (non-MAIN)\n",
+ data->gt);
return;
}
@@ -813,6 +814,9 @@ static int populate_vf_lmem_sizes(struct subcheck_data *data)
igt_assert(ldata->vf_lmem_size);
xe_for_each_gt(data->pf_fd, gt) {
+ if (!xe_is_main_gt(data->pf_fd, gt))
+ continue;
+
ret = xe_sriov_pf_debugfs_read_provisioned_ranges(data->pf_fd,
XE_SRIOV_SHARED_RES_LMEM,
gt, &ranges, &nr_ranges);
--
2.31.1
next prev parent reply other threads:[~2025-08-29 10:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-29 10:40 [PATCH i-g-t 0/2] xe_sriov_flr: Skip non-MAIN GTs when reading provisioning data Marcin Bernatowicz
2025-08-29 10:40 ` [PATCH i-g-t 1/2] lib/xe/xe_query: Add xe_gt_type() and xe_is_main_gt() helpers Marcin Bernatowicz
2025-09-01 11:12 ` Kamil Konieczny
2025-08-29 10:40 ` Marcin Bernatowicz [this message]
2025-09-01 11:14 ` [PATCH i-g-t 2/2] tests/intel/xe_sriov_flr: Skip non-MAIN GTs when reading provisioning data Kamil Konieczny
2025-08-29 11:51 ` ✓ Xe.CI.BAT: success for xe_sriov_flr: " Patchwork
2025-08-29 12:14 ` ✓ i915.CI.BAT: " Patchwork
2025-08-29 19:48 ` ✗ i915.CI.Full: failure " Patchwork
2025-09-01 10:23 ` Bernatowicz, Marcin
2025-08-29 20:36 ` ✗ Xe.CI.Full: " Patchwork
2025-09-01 10:22 ` Bernatowicz, Marcin
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=20250829104037.649426-3-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=lukasz.laguna@intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=satyanarayana.k.v.p@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.