drm/amd/display: fix cursor disappearing after resume
authorArindam Nath <arindam.nath@amd.com>
Mon, 9 Jan 2017 06:20:27 +0000 (11:50 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:09:06 +0000 (17:09 -0400)
commitcf388c0da8e978ed766b975ceccbf699e98bd476
treec83799326c0260ea87c0d21b2fb28a648c1b83bb
parent2555039d129e4e637cbc6a1048d1005dd9c78b7a
drm/amd/display: fix cursor disappearing after resume

Since during suspend, the cursor registers are cleared,
once the system resumes back, the cursor remains disabled.
cursor_set_attributes() only sets the cursor attributes
along with cursor size and surface address, but does not
enable the cursor back on.

We need to save the current cursor location so that
we can resume back to the same location. This is done
in dm_crtc_cursor_move(), where we save the current
cursor location into cursor_x and cursor_y. Later during
resume we use these same values to set the cursor
position along with cursor attributes.

Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c