public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v1] tests/kms_content_protection: check sink capability after modeset
@ 2026-02-26 16:47 Santhosh Reddy Guddati
  2026-02-27  0:23 ` ✓ i915.CI.BAT: success for " Patchwork
                   ` (21 more replies)
  0 siblings, 22 replies; 31+ messages in thread
From: Santhosh Reddy Guddati @ 2026-02-26 16:47 UTC (permalink / raw)
  To: igt-dev
  Cc: karthik.b.s, suraj.kandpal, mohammed.thasleem,
	Santhosh Reddy Guddati

The loop checks HDCP sink capability too early, this makes test skips
on multi display panels with "Sink has no HDCP support"
on valid connectors.

Fix this by validating output/crtc combo, do modeset and then check for
sink capability.

Fixes: a85208a45759 ("tests/kms: Use igt_crtc_t instead of enum pipe, part 4")
Signed-off-by: Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com>
---
 tests/kms_content_protection.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index 2c2ffa150..1f1f45fe6 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -725,21 +725,22 @@ test_content_protection(enum igt_commit_style commit_style, int content_type)
 
 	for_each_connected_output(display, output) {
 		for_each_crtc(display, crtc) {
-			if (!output_hdcp_capable(output, content_type))
+			igt_display_reset(display);
+			igt_output_set_crtc(output, crtc);
+			if (!intel_pipe_output_combo_valid(display))
 				continue;
+
+			modeset_with_fb(output, commit_style);
+
 			if (is_output_hdcp_test_exempt(output)) {
 				igt_info("Skipping HDCP test on %s, as the panel is blocklisted\n",
 					  output->name);
 				continue;
 			}
 
-			igt_display_reset(display);
-			igt_output_set_crtc(output,
-				            crtc);
-			if (!intel_pipe_output_combo_valid(display))
+			if (!output_hdcp_capable(output, content_type))
 				continue;
 
-			modeset_with_fb(output, commit_style);
 			if (data.is_force_hdcp14)
 				set_i915_force_hdcp14(output);
 
-- 
2.34.1


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

end of thread, other threads:[~2026-03-23  2:58 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-26 16:47 [PATCH i-g-t v1] tests/kms_content_protection: check sink capability after modeset Santhosh Reddy Guddati
2026-02-27  0:23 ` ✓ i915.CI.BAT: success for " Patchwork
2026-02-27  1:02 ` ✓ Xe.CI.BAT: " Patchwork
2026-02-27  7:39 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-03-02  2:54 ` [PATCH i-g-t v1] " Kandpal, Suraj
2026-03-09  6:07   ` Reddy Guddati, Santhosh
2026-03-16  4:04 ` [PATCH i-g-t v2] tests/kms_content_protection: Get hdcp capable outputs before modeset Santhosh Reddy Guddati
2026-03-16  4:26   ` Kandpal, Suraj
2026-03-16  5:13 ` [PATCH i-g-t v3] tests/kms_content_protection: Get HDCP " Santhosh Reddy Guddati
2026-03-16 14:24   ` S, Sowmiya
2026-03-16  5:43 ` ✓ Xe.CI.BAT: success for tests/kms_content_protection: check sink capability after modeset (rev2) Patchwork
2026-03-16  5:56 ` ✓ i915.CI.BAT: " Patchwork
2026-03-16  6:42 ` ✓ Xe.CI.BAT: success for tests/kms_content_protection: check sink capability after modeset (rev3) Patchwork
2026-03-16  6:45 ` ✓ i915.CI.BAT: " Patchwork
2026-03-16  8:59 ` ✗ Xe.CI.FULL: failure for tests/kms_content_protection: check sink capability after modeset (rev2) Patchwork
2026-03-16 12:31 ` ✗ i915.CI.Full: " Patchwork
2026-03-17  3:42 ` [PATCH i-g-t v4] tests/kms_content_protection: Get HDCP capable outputs before modeset Santhosh Reddy Guddati
2026-03-17  3:54   ` S, Sowmiya
2026-03-17 13:53 ` ✓ Xe.CI.BAT: success for tests/kms_content_protection: check sink capability after modeset (rev4) Patchwork
2026-03-17 15:05 ` ✓ i915.CI.BAT: " Patchwork
2026-03-18 16:56 ` ✗ i915.CI.Full: failure " Patchwork
2026-03-18 22:13 ` ✗ Xe.CI.FULL: " Patchwork
2026-03-19  6:41 ` [PATCH i-g-t v5 0/2] Get HDCP capable outputs before modeset Santhosh Reddy Guddati
2026-03-19  6:41   ` [PATCH i-g-t v5 1/2] tests/kms_content_protection: " Santhosh Reddy Guddati
2026-03-19  6:41   ` [PATCH i-g-t v5 2/2] tests/kms_content_protection: Handle EDID lookup failures Santhosh Reddy Guddati
2026-03-19 10:50     ` Kandpal, Suraj
2026-03-23  2:57       ` Reddy Guddati, Santhosh
2026-03-19  8:55 ` ✓ Xe.CI.BAT: success for tests/kms_content_protection: check sink capability after modeset (rev5) Patchwork
2026-03-19  9:13 ` ✓ i915.CI.BAT: " Patchwork
2026-03-20  2:01 ` ✗ i915.CI.Full: failure " Patchwork
2026-03-20 10:01 ` ✗ 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