]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix BUG_ON during CRTC atomic check update
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Tue, 29 May 2018 13:51:51 +0000 (09:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 May 2018 19:01:49 +0000 (14:01 -0500)
commit9d8ecd55cd4682e3c39b7062a0e29bcbc2b9d6ec
tree3c19374ef317b72bc01e15210408f0c24702c3d0
parent752132c35eca50e93ef346c3b5a4108787252780
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: 5def01db2ecb "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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c