]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: cache additional dpcd caps for HDR capability check
authorHarmanprit Tatla <Harmanprit.Tatla@amd.com>
Fri, 1 Mar 2019 16:47:35 +0000 (11:47 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Mar 2019 04:39:48 +0000 (23:39 -0500)
commit5842be8d749c7343525cbe12dafcb333111897f8
tree296e8b40f4f81c41b471c3a0555dbb0e17f84244
parent2e1f651e18f2880a61580b19cc6c9973afd36350
drm/amd/display: cache additional dpcd caps for HDR capability check

[Why]
Currently we are missing a few checks to see if HDR10 is allowed.
In particular we never check for the extended colorimetry bit (whether its
present or set to 1). Further we don't read in the dpcd block in DC that
would provide these bits.

[How]
- Added in DC code to read in the block containing the extended colorimetry
bit.

Signed-off-by: Harmanprit Tatla <Harmanprit.Tatla@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dc_dp_types.h