]> git.baikalelectronics.ru Git - kernel.git/commit
drm/arm: hdlcd: fix plane base address update
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 22 Nov 2016 13:56:54 +0000 (13:56 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 22 Nov 2016 14:09:06 +0000 (14:09 +0000)
commit89f9f6472c6bde95ca30591b4200ff9453d0011d
tree07246483935eb187767dd61ad24b254ca4c459c1
parent20bd97d8040074f137a8e3c94b1b119fc1476d62
drm/arm: hdlcd: fix plane base address update

While testing HDMI with Xorg on the Juno board, I find that when Xorg
starts up or shuts down, the display is shifted significantly to the
right and wrapped in the active region.  (No sync bars are visible.)
The timings are correct, it behaves as if the start address has been
shifted many pixels _into_ the framebuffer.

This occurs whenever the display mode size is changed - using xrandr
in Xorg shows that changing the resolution triggers the problem
almost every time, but changing the refresh rate does not.

Using devmem2 to disable and re-enable the HDLCD resolves the issue,
and repeated disable/enable cycles do not make the issue re-appear.
Further debugging shows that we try to update the controller
configuration while enabled.

Alwys ensure that the HDLCD is disabled prior to updating the
controller timings, and use drm_crtc_vblank_off()/drm_crtc_vblank_on()
so that DRM knows whether it can expect vblank interrupts.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/arm/hdlcd_crtc.c