drm/amd/display: Explicitly disable cursor when disabling CRTC
authorVictor Lu <victorchengchi.lu@amd.com>
Fri, 23 Oct 2020 17:38:58 +0000 (13:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2020 19:25:45 +0000 (14:25 -0500)
commit5c68c65295de0bc7856580e8b16d8fa0782ae2d3
tree1ddb5e56ba51157542f215a03b79f6f665ec51cf
parentc07cbc1f04ecba00f99e313de3190db5e7438e81
drm/amd/display: Explicitly disable cursor when disabling CRTC

[why]
On DCE, the cursor is not being disabled on commits where there is no
CRTC or FB enabled.

[how]
Explicitly disable the cursor in the commit tail only if the pending
commit disables the CRTC.

Signed-off-by: Victor Lu <victorchengchi.lu@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c