Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] lib/intel_pat: skip UC compression when FlatCCS unavailable
@ 2026-05-12  3:35 nishit.sharma
  2026-05-12  6:35 ` Goyal, Nakshtra
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: nishit.sharma @ 2026-05-12  3:35 UTC (permalink / raw)
  To: igt-dev, stuart.summers

From: Nishit Sharma <nishit.sharma@intel.com>

Use igt_require in place of igt_assert to avoid treating unsupported
platform conditions as test errors in CI. Since UC compression is
supported only on FlatCCS platforms, skip the test on platforms without
FlatCCS.

Signed-off-by: Nishit Sharma <nishit.sharma@intel.com>
---
 lib/intel_pat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/intel_pat.c b/lib/intel_pat.c
index 2f35bb772..bcf31b4b2 100644
--- a/lib/intel_pat.c
+++ b/lib/intel_pat.c
@@ -276,7 +276,7 @@ uint8_t intel_get_pat_idx_uc_comp(int fd)
 	uint16_t dev_id = intel_get_drm_devid(fd);
 
 	igt_assert(intel_gen(dev_id) >= 20);
-	igt_assert(HAS_FLATCCS(dev_id));
+	igt_require_f(HAS_FLATCCS(dev_id), "FlatCCS not available on platform, skipping");
 
 	intel_get_pat_idx(fd, &pat);
 	igt_assert_f(pat.uc_comp != XE_PAT_IDX_INVALID,
-- 
2.43.0


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

end of thread, other threads:[~2026-05-13  0:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12  3:35 [PATCH i-g-t] lib/intel_pat: skip UC compression when FlatCCS unavailable nishit.sharma
2026-05-12  6:35 ` Goyal, Nakshtra
2026-05-12  7:01 ` ✓ i915.CI.BAT: success for " Patchwork
2026-05-12  8:06 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-12 15:50 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-05-12 15:52   ` Sharma, Nishit
2026-05-12 22:44 ` ✗ i915.CI.Full: " Patchwork
2026-05-13  0:13 ` [PATCH i-g-t] " Wang, X

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