diff options
author | Shirish S | 2018-02-28 07:44:58 +0100 |
---|---|---|
committer | Alex Deucher | 2018-03-05 21:37:56 +0100 |
commit | b58f0c81e9ab40ebed723ac71c34d87769540ad2 (patch) | |
tree | 14c78963965fbcec5eb5bfbb1a6300b775145647 /drivers/gpu/drm/amd/include/cgs_common.h | |
parent | drm/amd/pp: Fix incorrect return value in smu7_check_clk_voltage_valid (diff) | |
download | kernel-qcow2-linux-b58f0c81e9ab40ebed723ac71c34d87769540ad2.tar.gz kernel-qcow2-linux-b58f0c81e9ab40ebed723ac71c34d87769540ad2.tar.xz kernel-qcow2-linux-b58f0c81e9ab40ebed723ac71c34d87769540ad2.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/include/cgs_common.h')
0 files changed, 0 insertions, 0 deletions