]> asedeno.scripts.mit.edu Git - linux.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)
commit3c7dd2cbc8e135fded5844060c815fec262dffd2
tree296e8b40f4f81c41b471c3a0555dbb0e17f84244
parentb05e2c5e81f9a0be4a145e0926b1dfe62f6347d4
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