alistair23-linux/drivers/gpu/drm/fsl-dcu
Stefan Agner ce492b3b8f drm/fsl-dcu: use flat regmap cache
Using flat regmap cache instead of RB-tree to avoid the following
lockdep warning on driver load:
WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2755 lockdep_trace_alloc+0x15c/0x160()
DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))

The RB-tree regmap cache needs to allocate new space on first
writes. However, allocations in an atomic context (e.g. when a
spinlock is held) are not allowed. The function regmap_write
calls map->lock, which acquires a spinlock in the fast_io case.
Since the FSL DCU driver uses MMIO, the regmap bus of type
regmap_mmio is being used which has fast_io set to true.

Use flat regmap cache and specify max register to be large
enouth to cover all registers available in LS1021a and Vybrids
register space.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Cc: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
2016-06-08 15:12:01 -07:00
..
fsl_dcu_drm_crtc.c drm/fsl-dcu: use bus_flags for pixel clock polarity 2016-05-05 10:09:06 -07:00
fsl_dcu_drm_crtc.h drm/layerscape: Add Freescale DCU DRM driver 2015-08-19 22:23:04 -04:00
fsl_dcu_drm_drv.c drm/fsl-dcu: use flat regmap cache 2016-06-08 15:12:01 -07:00
fsl_dcu_drm_drv.h drm/fsl-dcu: use bus_flags for pixel clock polarity 2016-05-05 10:09:06 -07:00
fsl_dcu_drm_fbdev.c drm/layerscape: Add Freescale DCU DRM driver 2015-08-19 22:23:04 -04:00
fsl_dcu_drm_kms.c drm/fsl-dcu: handle initialization errors properly 2016-02-25 16:13:16 -08:00
fsl_dcu_drm_output.h drm/layerscape: Add Freescale DCU DRM driver 2015-08-19 22:23:04 -04:00
fsl_dcu_drm_plane.c drm/fsl-dcu: fix alpha blending 2016-02-25 16:13:16 -08:00
fsl_dcu_drm_plane.h drm/layerscape: Add Freescale DCU DRM driver 2015-08-19 22:23:04 -04:00
fsl_dcu_drm_rgb.c drm/fsl-dcu: handle missing panel gracefully 2016-04-25 20:45:32 -07:00
fsl_tcon.c drm/fsl-dcu: add TCON driver 2016-04-25 20:27:18 -07:00
fsl_tcon.h drm/fsl-dcu: add TCON driver 2016-04-25 20:27:18 -07:00
Kconfig drm/fsl-dcu: add COMMON_CLK dependency 2016-05-03 10:17:37 +02:00
Makefile drm/fsl-dcu: add TCON driver 2016-04-25 20:27:18 -07:00