linux-uconsole/drivers/gpu/drm/amd
Nicholas Kazlauskas 8e3a1c5002 drm/amd/display: Fix unintialized max_bpc state values
commit 49f1c44b58 upstream.

[Why]
If the "max bpc" isn't explicitly set in the atomic state then it
have a value of 0. This has the correct behavior of limiting a panel
to 8bpc in the case where the panel supports 8bpc. In the case of eDP
panels this isn't a true assumption - there are panels that can only
do 6bpc.

Banding occurs for these displays.

[How]
Initialize the max_bpc when the connector resets to 8bpc. Also carry
over the value when the state is duplicated.

Bugzilla: https://bugs.freedesktop.org/108825
Fixes: 307638884f72 ("drm/amd/display: Support amdgpu "max bpc" connector property")

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-13 09:51:11 +01:00
..
acp drm/amdgpu: Remove wrapper layer of cgs irq handling 2018-03-21 14:36:58 -05:00
amdgpu drm/amdgpu: Fix DEBUG_LOCKS_WARN_ON(depth <= 0) in amdgpu_ctx.lock 2019-01-13 09:50:57 +01:00
amdkfd drm/amdkfd: add new vega10 pci ids 2018-12-19 19:19:53 +01:00
display drm/amd/display: Fix unintialized max_bpc state values 2019-01-13 09:51:11 +01:00
include drm/amdkfd: Change the control stack MTYPE from UC to NC on GFX9 2018-09-20 10:25:17 -05:00
lib drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00
powerplay drm/amd/powerplay: issue pre-display settings for display change event 2018-12-21 14:15:19 +01:00