linux-stable/drivers/gpu/drm/arm
Russell King 7a79279e71 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>
2016-11-22 14:09:06 +00:00
..
hdlcd_crtc.c drm/arm: hdlcd: fix plane base address update 2016-11-22 14:09:06 +00:00
hdlcd_drv.c drm: Don't swallow error codes in drm_dev_alloc() 2016-09-22 04:03:48 -07:00
hdlcd_drv.h drm: hdlcd: Cleanup the atomic plane operations 2016-06-02 17:45:29 +01:00
hdlcd_regs.h
Kconfig drm/arm: make fbdev support really optional 2016-07-18 09:11:42 +02:00
Makefile drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00
malidp_crtc.c drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00
malidp_drv.c drm: Don't swallow error codes in drm_dev_alloc() 2016-09-22 04:03:48 -07:00
malidp_drv.h drm: BIT(DRM_ROTATE_?) -> DRM_ROTATE_? 2016-08-08 14:17:56 -04:00
malidp_hw.c drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00
malidp_hw.h drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00
malidp_planes.c drm: BIT(DRM_ROTATE_?) -> DRM_ROTATE_? 2016-08-08 14:17:56 -04:00
malidp_regs.h drm/arm: Add support for Mali Display Processors 2016-06-15 17:29:22 +01:00