drm/amd/display: Workaround wrong HDR colorimetry with some receivers
authorIlya Bakoulin <Ilya.Bakoulin@amd.com>
Fri, 14 Apr 2023 16:46:48 +0000 (12:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:27:26 +0000 (09:27 -0400)
commit5b7bee5b445785a47b781e889e51219ec35d4407
tree7643659cd5ea98b29d3767c6002de70d4c576cd2
parent9ab367f838a692843aa21b2ff43ebfc3bafa7175
drm/amd/display: Workaround wrong HDR colorimetry with some receivers

[Why]
Some scalers do not pick up color space updates unless the DP link
is disabled/re-enabled which can result in incorrect/washed out
HDR colors in some cases.

[How]
Call set_dpms_on to disable the link, re-train and re-enable with the
updated output color space.

Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Ilya Bakoulin <Ilya.Bakoulin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h