linux/drivers/gpu/drm/amd
Shirish S 36cc549d59 drm/amd/display: disable CRTCs with NULL FB on their primary plane (V2)
The below commit

"drm/atomic: Try to preserve the crtc enabled state in drm_atomic_remove_fb, v2"

introduces a slight behavioral change to rmfb. Instead of disabling a crtc
when the primary plane is disabled, it now preserves it.

This change leads to BUG hit while performing atomic commit on amd driver.

As a fix this patch ensures that we disable the CRTC's with NULL FB by returning
-EINVAL and hence triggering fall back to the old behavior and turning off the
crtc in atomic_remove_fb().

V2: Added error check for plane_state and removed sanity check for crtc.

Signed-off-by: Shirish S <shirish.s@amd.com>
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-03-07 16:27:03 -05:00
..
acp drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00
amdgpu drm/amdgpu/dce6: Use DRM_DEBUG instead of DRM_INFO for HPD IRQ info 2018-03-07 16:27:03 -05:00
amdkfd drm/amdkfd: Fix potential NULL pointer dereferences 2018-01-10 17:15:09 -06:00
display drm/amd/display: disable CRTCs with NULL FB on their primary plane (V2) 2018-03-07 16:27:03 -05:00
include drm/amdgpu: remove some old gc 9.x registers 2017-12-13 17:28:08 -05:00
lib drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00
powerplay drm/amd/powerplay: fix power over limit on Fiji 2018-02-28 15:17:11 -05:00