drm/amd/display: Load srm before enabling HDCP
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Wed, 4 Dec 2019 16:54:24 +0000 (11:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Feb 2020 20:04:36 +0000 (15:04 -0500)
commitf4406d6fb23c72eb8ccf071db00fb06d9586bb5f
tree98b66ea3adf53a0e1300c508ded3cd5e679304fa
parent9037246bb2da58d7b990ec9133f69c0b7d86f7a0
drm/amd/display: Load srm before enabling HDCP

[Why]
we need to load SRM before we start HDCP. Because for S3 case the sysfs call will be
after we have already enabled HDCP, so we might not be using the latest SRM

[How]
Set srm before starting HDCP.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c