diff options
| author | Leo (Sunpeng) Li <[email protected]> | 2018-05-29 13:51:51 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-05-29 19:01:49 +0000 |
| commit | 20d4ac659c76034586a3ab79489b0940631a65de (patch) | |
| tree | 3c19374ef317b72bc01e15210408f0c24702c3d0 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/amd/display: Read DP_SINK_COUNT_ESI range on HPD for DP 1.4 (diff) | |
| download | kernel-20d4ac659c76034586a3ab79489b0940631a65de.tar.gz kernel-20d4ac659c76034586a3ab79489b0940631a65de.zip | |
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: e277adc5a06c "drm/amd/display: Hookup color management functions"
Bugzilla: https://bugs.freedesktop.org/106194
Signed-off-by: Leo (Sunpeng) Li <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Tested-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
