]> git.karo-electronics.de Git - karo-tx-linux.git/commit
DRM: armada: fix corruption while loading cursors
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 7 Apr 2014 11:00:17 +0000 (12:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:59:29 +0000 (07:59 -0700)
commit5a8662c721425479147eb22de81d42e1f3bfc551
treeb175b37b93f0ebc9203b2e9d6c1f71532ec3c963
parent0fe2736f2ceed378f4b6d94eb337914fdec7611e
DRM: armada: fix corruption while loading cursors

commit c39b06951f1dc2e384650288676c5b7dcc0ec92c upstream.

Loading cursors to the LCD controller's SRAM can be corrupted when the
configured pixel clock is relatively slow.  This seems to be caused
when we write back-to-back to the SRAM registers.

There doesn't appear to be any status register we can read to check
when an access has completed.

Inserting a dummy read between the writes appears to fix the problem.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/armada/armada_crtc.c