All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] kms_content_protection: Disable authentication when failed
@ 2019-04-11 11:23 Ramalingam C
  2019-04-11 14:52 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ramalingam C @ 2019-04-11 11:23 UTC (permalink / raw)
  To: igt-dev, daniel.vetter

When content protection authentication is failed in kernel after all
requried retries, before declaring the test failure, set the content
protection to UNDESIRED state.

This will avoid the HDCP authentication attempts in subsequent modesets
from other tests.

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
---
 tests/kms_content_protection.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index 7fc8542e769a..ae6ab497ea21 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -212,6 +212,10 @@ static void test_cp_enable_with_retry(igt_output_t *output,
 		if (!ret && --retry)
 			igt_debug("Retry (%d/2) ...\n", 3 - retry);
 	} while (retry && !ret);
+
+	if (!ret)
+		test_cp_disable(output, s);
+
 	igt_assert_f(ret, "Content Protection not enabled\n");
 }
 
-- 
2.19.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2019-04-16 10:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-11 11:23 [igt-dev] [PATCH i-g-t] kms_content_protection: Disable authentication when failed Ramalingam C
2019-04-11 14:52 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-04-11 18:56 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-04-16  8:12 ` [igt-dev] [PATCH i-g-t] " Martin Peres
2019-04-16  8:54   ` Daniel Vetter
2019-04-16 10:06     ` Ramalingam C

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.