diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2012-02-01 12:09:55 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-01 15:42:54 +0000 |
commit | 1b61925061660009f5b8047f93c5297e04541273 (patch) | |
tree | 8f4c6d5815762e7d1df885cef1d2b6a32e5f8a1b /drivers/gpu/drm/radeon/radeon_i2c.c | |
parent | 86698c20f71d488b32c49ed4687fb3cf8a88a5ca (diff) | |
download | talos-obmc-linux-1b61925061660009f5b8047f93c5297e04541273.tar.gz talos-obmc-linux-1b61925061660009f5b8047f93c5297e04541273.zip |
drm/radeon: Set DESKTOP_HEIGHT register to the framebuffer (not mode) height.
The value of this register is transferred to the V_COUNTER register at the
beginning of vertical blank. V_COUNTER is the reference for VLINE waits and
goes from VIEWPORT_Y_START to VIEWPORT_Y_START+VIEWPORT_HEIGHT during scanout,
so if VIEWPORT_Y_START is not 0, V_COUNTER actually went backwards at the
beginning of vertical blank, and VLINE waits excluding the whole scanout area
could never finish (possibly only if VIEWPORT_Y_START is larger than the length
of vertical blank in scanlines). Setting DESKTOP_HEIGHT to the framebuffer
height should prevent this for any kind of VLINE wait.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=45329 .
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_i2c.c')
0 files changed, 0 insertions, 0 deletions