linux_dsm_epyc7002/drivers/gpu/drm/qxl
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
..
Kconfig Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2014-01-22 21:21:55 -08:00
Makefile drm: add new QXL driver. (v1.4) 2013-04-12 13:51:07 +10:00
qxl_cmd.c qxl: convert qxl driver to proper use for reservations 2013-07-24 11:58:10 +10:00
qxl_debugfs.c drivers, drm: fix qxl build error when debugfs is disabled 2013-04-30 10:00:27 +10:00
qxl_dev.h drm: add new QXL driver. (v1.4) 2013-04-12 13:51:07 +10:00
qxl_display.c gpu: fix qxl missing crc32_le 2014-01-14 13:08:37 +10:00
qxl_draw.c qxl: convert qxl driver to proper use for reservations 2013-07-24 11:58:10 +10:00
qxl_drv.c drm: kill ->gem_init_object() and friends 2013-10-09 14:38:02 +10:00
qxl_drv.h drm: Kill DRM_IRQ_ARGS 2013-12-18 11:33:46 +10:00
qxl_dumb.c drm/gem: create drm_gem_dumb_destroy 2013-08-07 09:59:24 +10:00
qxl_fb.c qxl: avoid an oops in the deferred io code. 2013-11-04 16:48:43 +10:00
qxl_fence.c qxl: convert qxl driver to proper use for reservations 2013-07-24 11:58:10 +10:00
qxl_gem.c drm: kill ->gem_init_object() and friends 2013-10-09 14:38:02 +10:00
qxl_image.c qxl: convert qxl driver to proper use for reservations 2013-07-24 11:58:10 +10:00
qxl_ioctl.c drm: Kill DRM_COPY_(TO|FROM)_USER 2013-12-18 11:35:01 +10:00
qxl_irq.c drm: Kill DRM_IRQ_ARGS 2013-12-18 11:33:46 +10:00
qxl_kms.c drivers: gpu: Mark function as static in qxl_kms.c 2014-01-14 12:59:25 +10:00
qxl_object.c drm: use anon-inode instead of relying on cdevs 2014-03-16 12:23:33 +01:00
qxl_object.h Merge remote-tracking branch 'pfdo/drm-rcar-for-v3.12' into drm-next 2013-08-19 09:24:13 +10:00
qxl_release.c drm/qxl: fix memory leak in release list handling 2013-11-29 08:36:15 +10:00
qxl_ttm.c drm: use anon-inode instead of relying on cdevs 2014-03-16 12:23:33 +01:00