diff options
author | Ramalingam C <ramalingam.c@intel.com> | 2019-04-11 16:47:44 +0530 |
---|---|---|
committer | Ramalingam C <ramalingam.c@intel.com> | 2019-04-16 15:28:01 +0530 |
commit | d5ee5c6b4f978e1345df8a462af4843909661974 (patch) | |
tree | 01e7088a88ec24a973ecae19805aa330f1a97522 /tests | |
parent | 6e196707c1363391d0d38be14e532272612439e0 (diff) |
kms_content_protection: Disable authentication when failed
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>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110376
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110224
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kms_content_protection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c index 7fc8542e..ae6ab497 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"); } |