OSDN Git Service

drm/radeon: Hide the HW cursor while it's out of bounds
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 27 Oct 2016 05:54:31 +0000 (14:54 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:32:20 +0000 (08:32 +0100)
commit126f676b087d091e714fcae1ebe87182062d138b
tree6d947724ada197d99af384f8dc73ffb969be9895
parent45ec673dfe0f8b1564289067a35f4abde3bd8472
drm/radeon: Hide the HW cursor while it's out of bounds

commit 6b16cf7785a4200b1bddf4f70c9dda2efc49e278 upstream.

Fixes hangs in that case under some circumstances.

v2:
* Only use non-0 x/yorigin if the cursor is (partially) outside of the
  top/left edge of the total surface with AVIVO/DCE

Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1000433
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_cursor.c
drivers/gpu/drm/radeon/radeon_mode.h