1
0
Fork 0
alistair23-linux/drivers/gpu/drm/amd/display/amdgpu_dm
Nicholas Kazlauskas ec6e491353 drm/amd/display: Calculate bpc based on max_requested_bpc
[Why]
The only place where state->max_bpc is updated on the connector is
at the start of atomic check during drm_atomic_connector_check. It
isn't updated when adding the connectors to the atomic state after
the fact. It also doesn't necessarily reflect the right value when
called in amdgpu during mode validation outside of atomic check.

This can cause the wrong bpc to be used even if the max_requested_bpc
is the correct value.

[How]
Don't rely on state->max_bpc reflecting the real bpc value and just
do the min(...) based on display info bpc and max_requested_bpc.

Fixes: 01933ba42d ("drm/amd/display: Use current connector state if NULL when checking bpc")
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-08-21 17:33:32 -05:00
..
Makefile drm/amd/display: Moving powerplay functions to a separate class 2018-07-05 16:38:41 -05:00
amdgpu_dm.c drm/amd/display: Calculate bpc based on max_requested_bpc 2019-08-21 17:33:32 -05:00
amdgpu_dm.h drm/amd/display: Add drm_audio_component support to amdgpu_dm 2019-07-11 14:37:24 -05:00
amdgpu_dm_color.c drm/amd/display: Rework CRTC color management 2019-06-22 09:34:13 -05:00
amdgpu_dm_crc.c drm/amd: drop use of drmP.h in amdgpu.h 2019-06-10 22:59:53 +02:00
amdgpu_dm_debugfs.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
amdgpu_dm_debugfs.h amdgpu_dm: no need to check return value of debugfs_create functions 2019-06-13 13:59:49 -05:00
amdgpu_dm_helpers.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
amdgpu_dm_irq.c Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
amdgpu_dm_irq.h
amdgpu_dm_mst_types.c drm/amd/display: Respect aux return values 2019-03-19 15:04:02 -05:00
amdgpu_dm_mst_types.h drm/amd/display: Cleanup MST non-atomic code workaround 2018-11-07 18:20:49 -05:00
amdgpu_dm_pp_smu.c drm/amd/display: Force uclk to max for every state 2019-07-18 14:11:47 -05:00
amdgpu_dm_services.c drm/amd: drop use of drmP.h in display/ 2019-06-10 23:00:20 +02:00
amdgpu_dm_trace.h drm/amd/display: Add tracing to dc 2018-12-05 17:49:49 -05:00