mirror_ubuntu-kernels/drivers/gpu/drm/amd/display
Leo (Sunpeng) Li 20fa2ff044 drm/amd/display: Fix BUG_ON during CRTC atomic check update
For cases where the CRTC is inactive (DPMS off), where a modeset is not
required, yet the CRTC is still in the atomic state, we should not
attempt to update anything on it.

Previously, we were relying on the modereset_required() helper to check
the above condition. However, the function returns false immediately if
a modeset is not required, ignoring the CRTC's enable/active state
flags. The correct way to filter is by looking at these flags instead.

Fixes: e277adc5a0 "drm/amd/display: Hookup color management functions"
Bugzilla: https://bugs.freedesktop.org/106194

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-05-29 14:22:28 -05:00
..
amdgpu_dm drm/amd/display: Fix BUG_ON during CRTC atomic check update 2018-05-29 14:22:28 -05:00
dc drm/amd/display: Use kvzalloc for potentially large allocations 2018-05-09 15:16:13 -05:00
include drm/amd/display: Add VG12 ASIC IDs 2018-05-09 15:15:16 -05:00
modules drm/amd/display: Use kvzalloc for potentially large allocations 2018-05-09 15:16:13 -05:00
Kconfig amdgpu/dm: Default PRE_VEGA ASIC support to 'y' 2018-03-16 16:16:50 -05:00
Makefile drm/amd: Remove inclusion of non-existing include directories 2018-02-26 23:09:38 -05:00
TODO drm/amd/display: Add TODO item to remove vector.c 2017-12-14 11:01:13 -05:00