]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/radeon: Restrict offset for legacy hardware cursor.
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 14 Mar 2012 16:12:41 +0000 (17:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 17:31:56 +0000 (10:31 -0700)
commit094599e150bde9b5c9bc69a31132753a32d0cafe
treea1c7bcf69f6ebe7b891e99feb1d163febb2fdf5b
parente1eea76bbbab9389903aeb04dcb852ab15a3d6ae
drm/radeon: Restrict offset for legacy hardware cursor.

commit c4353016dac10133fa5d8535af83f0c4845a2915 upstream.

The hardware only takes 27 bits for the offset, so larger offsets are
truncated, and the hardware cursor shows random bits other than the intended
ones.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46796

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_cursor.c
drivers/gpu/drm/radeon/radeon_object.c
drivers/gpu/drm/radeon/radeon_object.h