drm/radeon: Restrict offset for legacy display engine.
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 14 Mar 2012 16:12:42 +0000 (17:12 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Mar 2012 08:47:46 +0000 (08:47 +0000)
commit0349af70da5e590793986a0e03dbf2a435f75103
treec4104646049fcf3862397cac1b51284bbd48e1b9
parentc4353016dac10133fa5d8535af83f0c4845a2915
drm/radeon: Restrict offset for legacy display engine.

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

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_display.c
drivers/gpu/drm/radeon/radeon_fb.c
drivers/gpu/drm/radeon/radeon_legacy_crtc.c