Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v2 1/2] tests/kms_bw: Check is_atomic, not its address
@ 2026-12-02 10:16 Lin Tzu Yang
  2026-12-02 10:16 ` [PATCH i-g-t v2 2/2] tests/kms_bw: Skip when pipe CRCs aren't supported Lin Tzu Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Lin Tzu Yang @ 2026-12-02 10:16 UTC (permalink / raw)
  To: igt-dev; +Cc: Kamil Konieczny, Swati Sharma, Karthik B S

The fixture has igt_require(&data.display.is_atomic), which is always
true, so the test also runs on drivers without atomic modesetting
support. Test the value instead.

Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Signed-off-by: Lin Tzu Yang <rongh7426@gmail.com>
---
v2:
- Move the note about AI use below the --- line, and use my full name
  in the author and Signed-off-by (Kamil).
- Add Kamil's Reviewed-by.

This change was written with the help of an AI coding assistant
(Claude).

 tests/kms_bw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_bw.c b/tests/kms_bw.c
index ea7cf7b..10bb520 100644
--- a/tests/kms_bw.c
+++ b/tests/kms_bw.c
@@ -334,7 +334,7 @@ int igt_main()
 		kmstest_set_vt_graphics_mode();
 
 		igt_display_require(&data.display, data.fd);
-		igt_require(&data.display.is_atomic);
+		igt_require(data.display.is_atomic);
 		igt_display_require_output(&data.display);
 
 	}
-- 
2.51.1.windows.1


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

* [PATCH i-g-t v2 2/2] tests/kms_bw: Skip when pipe CRCs aren't supported
  2026-12-02 10:16 [PATCH i-g-t v2 1/2] tests/kms_bw: Check is_atomic, not its address Lin Tzu Yang
@ 2026-12-02 10:16 ` Lin Tzu Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Lin Tzu Yang @ 2026-12-02 10:16 UTC (permalink / raw)
  To: igt-dev; +Cc: Kamil Konieczny, Swati Sharma, Karthik B S

Every subtest collects pipe CRCs, but the test never checks that the
driver supports them. On a driver without CRC support each subtest that
gets past the mode checks fails in pipe_crc_new() instead of skipping.
On a Raspberry Pi 5 (vc4) that is 32 failures:

  (kms_bw) igt_pipe_crc-CRITICAL: Failed assertion: pipe_crc->ctl_fd != -1
  (kms_bw) igt_pipe_crc-CRITICAL: Last errno: 2, No such file or directory
  Subtest linear-tiling-1-displays-target-1920x1080p: FAIL

Add igt_require_pipe_crc() to the fixture, as other CRC-based tests do.

Tested on a Raspberry Pi 5 (Raspberry Pi OS kernel 6.18.39): 32 fail and
96 skip before, all 128 subtests skip after with "crtc-0/crc/control"
missing.

Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Signed-off-by: Lin Tzu Yang <rongh7426@gmail.com>
---
v2:
- Move the note about AI use below the --- line, and use my full name
  in the author and Signed-off-by (Kamil).
- Add Kamil's Reviewed-by.

This change was written with the help of an AI coding assistant
(Claude); the test runs were done on real hardware.

 tests/kms_bw.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/kms_bw.c b/tests/kms_bw.c
index 10bb520..a56b4ee 100644
--- a/tests/kms_bw.c
+++ b/tests/kms_bw.c
@@ -336,6 +336,7 @@ int igt_main()
 		igt_display_require(&data.display, data.fd);
 		igt_require(data.display.is_atomic);
 		igt_display_require_output(&data.display);
+		igt_require_pipe_crc(data.fd);
 
 	}
 
-- 
2.51.1.windows.1


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

end of thread, other threads:[~2026-12-02 10:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 10:16 [PATCH i-g-t v2 1/2] tests/kms_bw: Check is_atomic, not its address Lin Tzu Yang
2026-12-02 10:16 ` [PATCH i-g-t v2 2/2] tests/kms_bw: Skip when pipe CRCs aren't supported Lin Tzu Yang

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