[PATCH i-g-t 2/2] tests/intel/xe_sriov_flr: Skip non-MAIN GTs when reading provisioning data

Marcin Bernatowicz marcin.bernatowicz at linux.intel.com
Fri Aug 29 10:40:37 UTC 2025


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 at intel.com>
Suggested-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz at linux.intel.com>
Cc: Adam Miszczak <adam.miszczak at linux.intel.com>
Cc: Jakub Kolakowski <jakub1.kolakowski at intel.com>
Cc: Lukasz Laguna <lukasz.laguna at intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko at intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p at 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



More information about the igt-dev mailing list