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
..
2014-02-20 12:46:24 -08:00
2014-02-17 12:42:45 -08:00
2014-02-14 16:13:00 -08:00
2014-02-14 10:40:47 +01:00
2014-02-21 23:57:33 +01:00
2014-02-14 12:48:16 -08:00
2014-02-21 09:55:32 -08:00
2014-02-20 12:46:24 -08:00
2014-01-12 23:48:18 +01:00
2014-02-14 10:32:28 -08:00
2014-01-15 14:51:22 -08:00
2014-01-27 08:15:51 -08:00
2014-02-23 10:39:21 -08:00
2014-01-22 22:24:35 -08:00
2014-02-12 12:28:05 -08:00