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)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Mar 2012 08:47:41 +0000 (08:47 +0000)
commitc4353016dac10133fa5d8535af83f0c4845a2915
treefce6312c5ae82648d08b651511d0be2408f21eb8
parent11fe1266253a96c4d4ac9c07918372a98248c62e
drm/radeon: Restrict offset for legacy hardware cursor.

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

Cc: stable@vger.kernel.org
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