]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Dec 2016 23:08:30 +0000 (18:08 -0500)
commit811f9a936fbc9f9f37f521eab6983af5a2c2f10c
tree49583bd779933e6a2774e021da8520e75f1f8a91
parentcdd228d2dbd3f12d78603400e07fe30e92b44f9f
drm/radeon: Hide the HW cursor while it's out of bounds

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
Cc: stable@vger.kernel.org
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>
drivers/gpu/drm/radeon/radeon_cursor.c
drivers/gpu/drm/radeon/radeon_mode.h