Skip to content
Snippets Groups Projects
Commit 4134194b authored by surajk8's avatar surajk8 Committed by KunalJoshi95
Browse files

test/kms_content_protection: Account for reauthetication in LIC

During LIC the link may fail due to a variety of reasons but this
does not reflect a problem with HDCP. It becomes a problem only when
we are not able to recover from the Link Integrity Failure.
Add a check to see if CP property is CP_DESIRED and if so give it time
to reauthenticate and fail only if this reauthentication does not
happen.

--v2
-Add debug statement [Santhosh]
-Add closes tag [Santhosh]

Closes: drm/xe/kernel#3508


Signed-off-by: default avatarSuraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: default avatarSanthosh Reddy Guddati <santhosh.reddy.guddati@intel.com>
parent 9ecc5cad
No related branches found
No related tags found
Loading
......@@ -376,9 +376,17 @@ static bool igt_pipe_is_free(igt_display_t *display, enum pipe pipe)
static void test_cp_lic(igt_output_t *output)
{
bool ret;
uint64_t val;
/* Wait for 4Secs (min 2 cycles of Link Integrity Check) */
ret = wait_for_prop_value(output, CP_DESIRED, LIC_PERIOD_MSEC);
val = igt_output_get_prop(output,
IGT_CONNECTOR_CONTENT_PROTECTION);
if (val == CP_DESIRED) {
igt_debug("Link Integrity Check failed, waiting for reauthentication\n");
ret = wait_for_prop_value(output, CP_DESIRED, LIC_PERIOD_MSEC);
}
igt_assert_f(!ret, "Content Protection LIC Failed\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment