linux_dsm_epyc7002/drivers/gpu/drm/amd/display
Yogesh Mohan Marimuthu f1e5e91302 drm/amdgpu: sort probed modes before adding common modes
[Why]
There are monitors which can have more than one preferred mode
set. There are chances in these monitors that if common modes are
added in function amdgpu_dm_connector_add_common_modes(), these
common modes can be calculated with different preferred mode than
the one used in function decide_crtc_timing_for_drm_display_mode().
The preferred mode can be different because after common modes
are added, the mode list is sorted and this changes the order of
preferred modes in the list. The first mode in the list with
preferred flag set is selected as preferred mode. Due to this the
preferred mode selected varies.
If same preferred mode is not selected in common mode calculation
and crtc timing, then during mode set instead of setting preferred
timing, common mode timing will be applied which can cause "out of
range" message in the monitor with monitor blanking out.

[How]
Sort the modes before adding common modes. The same sorting function
is called during common mode addition and deciding crtc timing.

Signed-off-by: Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-05-24 12:46:38 -05:00
..
amdgpu_dm drm/amdgpu: sort probed modes before adding common modes 2019-05-24 12:46:38 -05:00
dc gpu: fix typos in code comments 2019-05-24 12:21:01 -05:00
include drm/amd/display: Drop DCN1_01 guards 2019-05-24 12:20:59 -05:00
modules drm/amd/display: Use VCP for extended colorimetry 2019-05-24 12:21:00 -05:00
Kconfig drm/amd/display: Drop DCN1_01 guards 2019-05-24 12:20:59 -05:00
Makefile drm/amd/display: Load DMCU IRAM 2018-11-26 15:47:53 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00