summaryrefslogtreecommitdiff
path: root/tests/kms_content_protection.c
diff options
context:
space:
mode:
authorRamalingam C <ramalingam.c@intel.com>2019-02-07 21:04:30 +0530
committerRamalingam C <ramalingam.c@intel.com>2019-02-14 17:12:33 +0530
commitfd5b0534a6d75615f447c4474f93a3fa79c5efd3 (patch)
tree7b30f3a1ebd95b321d727c5702b0ce33042de019 /tests/kms_content_protection.c
parentd4c40ff002bdc4b599634f20d5676f81c8647cdf (diff)
kms_content_protection: Confirm that LIC is passed
Once the HDCP is enabled, kernel will run the link integrity check(LIC) atleast once in 2Secs based on the HDCP versions. So to confirm the link integrity check is passed, we oberve that HDCP state remains ENABLED for next 4Secs. v2: Rebased. Signed-off-by: Ramalingam C <ramalingam.c@intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/kms_content_protection.c')
-rw-r--r--tests/kms_content_protection.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index 7d82c733..c43e08b7 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -214,6 +214,14 @@ static bool igt_pipe_is_free(igt_display_t *display, enum pipe pipe)
return true;
}
+static void test_cp_lic(igt_output_t *output)
+{
+ bool ret;
+
+ /* Wait for 4Secs (min 2 cycles of Link Integrity Check) */
+ ret = wait_for_prop_value(output, 1, 4 * 1000);
+ igt_assert_f(!ret, "Content Protection LIC Failed\n");
+}
static void test_content_protection_on_output(igt_output_t *output,
enum igt_commit_style s,
@@ -239,6 +247,7 @@ static void test_content_protection_on_output(igt_output_t *output,
modeset_with_fb(pipe, output, s);
test_cp_enable_with_retry(output, s, 3);
+ test_cp_lic(output);
if (dpms_test) {
igt_pipe_set_prop_value(display, pipe,