linux/drivers/gpu/drm/cirrus
David Herrmann 6796cb16c0 drm: use anon-inode instead of relying on cdevs
DRM drivers share a common address_space across all character-devices of a
single DRM device. This allows simple buffer eviction and mapping-control.
However, DRM core currently waits for the first ->open() on any char-dev
to mark the underlying inode as backing inode of the device. This delayed
initialization causes ugly conditions all over the place:
  if (dev->dev_mapping)
    do_sth();

To avoid delayed initialization and to stop reusing the inode of the
char-dev, we allocate an anonymous inode for each DRM device and reset
filp->f_mapping to it on ->open().

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2014-03-16 12:23:33 +01:00
..
cirrus_drv.c drm: kill ->gem_init_object() and friends 2013-10-09 14:38:02 +10:00
cirrus_drv.h drm: Kill DRM_IRQ_ARGS 2013-12-18 11:33:46 +10:00
cirrus_fbdev.c drm/mgag200,ast,cirrus: fix regression with drm_can_sleep conversion 2014-02-06 11:39:03 +10:00
cirrus_main.c drivers: gpu: Mark function as static in cirrus_main.c 2014-01-14 12:59:17 +10:00
cirrus_mode.c drm/cirrus: correct register values for 16bpp 2014-01-23 11:01:40 +10:00
cirrus_ttm.c drm: use anon-inode instead of relying on cdevs 2014-03-16 12:23:33 +01:00
Kconfig drm: Add separate Kconfig option for fbdev helpers 2013-10-11 23:36:58 +02:00
Makefile