Bug 108550 - [CI][BAT] igt@* - dmesg-warn / dmesg-fail - *ERROR* HDCP key Load is not possible
Summary: [CI][BAT] igt@* - dmesg-warn / dmesg-fail - *ERROR* HDCP key Load is not poss...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: Other All
: highest normal
Assignee: Ramalingam C
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-25 11:07 UTC by Martin Peres
Modified: 2018-11-15 09:57 UTC (History)
1 user (show)

See Also:
i915 platform: KBL, SKL
i915 features: display/HDCP


Attachments

Description Martin Peres 2018-10-25 11:07:38 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/IGT_4692/shard-kbl1/igt@kms_chv_cursor_fail@pipe-c-256x256-right-edge.html

https://intel-gfx-ci.01.org/tree/drm-tip/IGT_4692/shard-kbl1/igt@kms_flip@basic-flip-vs-modeset.html

https://intel-gfx-ci.01.org/tree/drm-tip/IGT_4692/shard-kbl3/igt@kms_flip@plain-flip-interruptible.html

<3> [299.574169] [drm:_intel_hdcp_enable [i915]] *ERROR* HDCP key Load is not possible
<3> [303.098699] [drm:_intel_hdcp_enable [i915]] *ERROR* HDCP key Load is not possible
<3> [306.589383] [drm:_intel_hdcp_enable [i915]] *ERROR* HDCP key Load is not possible
<3> [310.095507] [drm:_intel_hdcp_enable [i915]] *ERROR* HDCP key Load is not possible
Comment 1 Martin Peres 2018-10-25 11:11:33 UTC
Seems like these get triggered after executing: igt@kms_content_protection@*
Comment 2 Ramalingam C 2018-10-25 14:01:50 UTC
This is the first time we have the kms_content_protection run on CI effectively. And catching a bug at IGT.

As per the HDCP design at kernel if content protection property is left at DESIRED, then on subsequent modesets HDCP authentication will be attempted by kernel on its own.

In Our IGT when we set "content protection" to DESIRED and wait for ENABLED state, on error case assert take us out of kms_content_protection, leaving the "content protection" at DESIRED state.

To avoid HDCP authentication and related logs in sugsequent tests we need to fix this.

And another point is even within kms_content_protection, we dont want dmesg errors incase of failure in authentication. So we need to cleanup all errors the authentication flow by converting them into debug/info logs.

Will work on these solutions immediatly. Thanks
Comment 3 Ramalingam C 2018-10-25 14:15:35 UTC

*** This bug has been marked as a duplicate of bug 108549 ***
Comment 4 Martin Peres 2018-10-29 09:31:04 UTC
Also seen a lot on SKL: https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_135/fi-skl-6770hq/igt@kms_cursor_crc@cursor-64x64-sliding.html

<3> [233.896257] [drm:_intel_hdcp_enable [i915]] *ERROR* HDCP key Load is not possible
<3> [248.789614] [drm:_intel_hdcp_enable [i915]] *ERROR* HDCP key Load is not possible
<3> [263.759868] [drm:_intel_hdcp_enable [i915]] *ERROR* HDCP key Load is not possible
Comment 5 Ramalingam C 2018-10-29 09:39:11 UTC
Possible only if SKL_DISP_PW_1 is not enabled when HDCP is requested.

I prefer to wait till danvet's changehttps://patchwork.freedesktop.org/series/51604/ to land first in IGT. So that HDCP is executed at kms_content_protection alone.
Comment 6 Martin Peres 2018-11-13 15:47:08 UTC
https://bugs.freedesktop.org/show_bug.cgi?id=108549 is indeed fixed but this bug keeps happening. Re-opening!
Comment 7 Martin Peres 2018-11-13 15:47:47 UTC
Some examples: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_5131/shard-kbl6/igt@kms_content_protection@legacy.html

https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_5131/shard-kbl2/igt@kms_content_protection@atomic.html

Starting subtest: atomic
(kms_content_protection:1369) CRITICAL: Test assertion failure function test_cp_enable_disable, file ../tests/kms_content_protection.c:181:
(kms_content_protection:1369) CRITICAL: Failed assertion: ret
(kms_content_protection:1369) CRITICAL: Last errno: 25, Inappropriate ioctl for device
(kms_content_protection:1369) CRITICAL: Content Protection not enabled
Subtest atomic failed.

<3> [437.262963] [drm:_intel_hdcp_enable [i915]] *ERROR* HDCP key Load is not possible
<3> [461.365150] [drm:_intel_hdcp_enable [i915]] *ERROR* HDCP key Load is not possible
<3> [485.503782] [drm:_intel_hdcp_enable [i915]] *ERROR* HDCP key Load is not possible
Comment 8 Imre Deak 2018-11-14 13:30:05 UTC
Assuming fixed by

commit 36dc998c9734a5aaa944a53b591cd50af51e6e55
Author: Imre Deak <imre.deak@intel.com>
Date:   Mon Nov 5 20:27:39 2018 +0200

    drm/i915/gen9_bc: Work around DMC bug zeroing power well requests
Comment 9 Martin Peres 2018-11-15 09:57:42 UTC
(In reply to Imre Deak from comment #8)
> Assuming fixed by
> 
> commit 36dc998c9734a5aaa944a53b591cd50af51e6e55
> Author: Imre Deak <imre.deak@intel.com>
> Date:   Mon Nov 5 20:27:39 2018 +0200
> 
>     drm/i915/gen9_bc: Work around DMC bug zeroing power well requests

Looks good! Will wait a little longer, but it looks good!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.