]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix incorrectly pruned modes with deep color
authorStylon Wang <stylon.wang@amd.com>
Thu, 30 Apr 2020 08:40:09 +0000 (16:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 May 2020 16:48:43 +0000 (12:48 -0400)
commit395dcfb5e575b1908e315195a7accc3813a9eedd
treee06bac62011fda2a2cf65d27f6e51ec5fe2f4edb
parent094a1114c10f82a22dc7bd126d64b8ebefb30973
drm/amd/display: Fix incorrectly pruned modes with deep color

[Why]
When "max bpc" is set to enable deep color, some modes are removed from
the list if they fail validation on max bpc. These modes should be kept
if they validates fine with lower bpc.

[How]
- Retry with lower bpc in mode validation.
- Same in atomic commit to apply working bpc, not necessarily max bpc.

Signed-off-by: Stylon Wang <stylon.wang@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c