Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/xe_sriov_flr: Handle missing provisioning data per-GT
@ 2025-08-22  9:39 Marcin Bernatowicz
  2025-08-22  9:47 ` K V P, Satyanarayana
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Marcin Bernatowicz @ 2025-08-22  9:39 UTC (permalink / raw)
  To: igt-dev
  Cc: Marcin Bernatowicz, Adam Miszczak, Jakub Kolakowski,
	Lukasz Laguna, Satyanarayana K V P

When reading provisioned LMEM ranges from debugfs, some GTs may not
expose provisioning data at all. Previously, this caused the test to
skip entirely with a "Failed read" reason.

Relax the check to treat -ENOENT as a valid case and simply continue
to the next GT. This ensures the test is not skipped unnecessarily
when provisioning data is absent on some GTs.

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: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
---
 tests/intel/xe_sriov_flr.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/intel/xe_sriov_flr.c b/tests/intel/xe_sriov_flr.c
index fc08703c0..9eebe5f71 100644
--- a/tests/intel/xe_sriov_flr.c
+++ b/tests/intel/xe_sriov_flr.c
@@ -816,7 +816,9 @@ static int populate_vf_lmem_sizes(struct subcheck_data *data)
 		ret = xe_sriov_pf_debugfs_read_provisioned_ranges(data->pf_fd,
 								  XE_SRIOV_SHARED_RES_LMEM,
 								  gt, &ranges, &nr_ranges);
-		if (ret) {
+		if (ret == -ENOENT) {
+			continue;
+		} else if (ret) {
 			set_skip_reason(data, "Failed read %s on gt%u (%d)\n",
 					xe_sriov_debugfs_provisioned_attr_name(XE_SRIOV_SHARED_RES_LMEM),
 					gt, ret);
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-08-25  7:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-22  9:39 [PATCH i-g-t] tests/intel/xe_sriov_flr: Handle missing provisioning data per-GT Marcin Bernatowicz
2025-08-22  9:47 ` K V P, Satyanarayana
2025-08-22 10:21   ` Bernatowicz, Marcin
2025-08-22 12:48     ` K V P, Satyanarayana
2025-08-22 13:00       ` Michal Wajdeczko
2025-08-25  7:11         ` Bernatowicz, Marcin
2025-08-22 10:36 ` ✗ Xe.CI.BAT: failure for " Patchwork
2025-08-22 10:38 ` ✓ i915.CI.BAT: success " Patchwork
2025-08-22 11:55 ` ✗ i915.CI.Full: failure " Patchwork
2025-08-23  2:51 ` ✗ Xe.CI.Full: " Patchwork

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