aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorNicholas Kazlauskas <[email protected]>2019-04-08 14:37:44 +0000
committerAlex Deucher <[email protected]>2019-04-29 19:58:16 +0000
commit8ad278062de4eae53f68ec835c20147efcec81a8 (patch)
tree8cc37da67b0c0cfd1ac532c4ed1b215f47c4c075 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/amd/display: Refactor CRTC interrupt toggling logic (diff)
downloadkernel-8ad278062de4eae53f68ec835c20147efcec81a8.tar.gz
kernel-8ad278062de4eae53f68ec835c20147efcec81a8.zip
drm/amd/display: Disable cursors before disabling planes
[Why] We can't do cursor programming after the planes have been disabled since there won't be any pipes - leading to lock warnings and the wrong cursor state being left in the registers. When we re-enable the planes after the previous cursor state will also remain if we don't have a cursor plane. [How] If we're disabling the planes then do the cursor programming first. If we're not disabling the planes then do the cursor programming after. Introduce the amdgpu_dm_commit_cursors helper to avoid code duplication for both of these cases. Signed-off-by: Nicholas Kazlauskas <[email protected]> Reviewed-by: David Francis <[email protected]> Acked-by: Leo Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions