linux_dsm_epyc7002/drivers/gpu/drm
David Herrmann 1616c525b9 drm: add minor-lookup/release helpers
Instead of accessing drm_minors_idr directly, this adds a small helper to
hide the internals. This will help us later to remove the drm_global_mutex
requirement for minor-lookup.

Furthermore, this also makes sure that minor->dev is always valid and
takes a reference-count to the device as long as the minor is used in an
open-file. This way, "struct file*"->private_data->dev is guaranteed to be
valid (which it has to, as we cannot reset it).

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-16 12:25:17 +01:00
..
armada
ast drm/mgag200,ast,cirrus: fix regression with drm_can_sleep conversion 2014-02-06 11:39:03 +10:00
bochs
cirrus drm/mgag200,ast,cirrus: fix regression with drm_can_sleep conversion 2014-02-06 11:39:03 +10:00
exynos drm/exynos: Convert to use the standard hdmi.h header 2014-02-07 10:48:12 +09:00
gma500
i2c drm/i2c: tda998x: always use the same device for all kernel messages 2014-02-14 20:11:12 +00:00
i810
i915 Merge tag 'drm-intel-next-2014-02-14' of ssh://git.freedesktop.org/git/drm-intel into drm-next 2014-03-04 07:51:41 +10:00
mga
mgag200 drm/mgag200,ast,cirrus: fix regression with drm_can_sleep conversion 2014-02-06 11:39:03 +10:00
msm Merge branch 'msm-next' of git://people.freedesktop.org/~robclark/linux into drm-next 2014-02-11 12:56:17 +10:00
nouveau ACPI and power management fixes for 3.14-rc4 2014-02-21 10:01:17 -08:00
omapdrm
panel
qxl
r128
radeon drm/radeon: remove struct radeon_bo_list 2014-03-04 14:34:34 +01:00
rcar-du
savage
shmobile
sis
tdfx
tegra drm: provide device-refcount 2014-03-16 12:25:17 +01:00
tilcdc
ttm drm/ttm: Fix memory leak in ttm_agp_backend.c 2014-02-18 14:03:32 +01:00
udl
via
vmwgfx drm/vmwgfx: Fix command defines and checks 2014-02-12 19:31:45 +01:00
ati_pcigart.c
drm_agpsupport.c
drm_auth.c
drm_buffer.c
drm_bufs.c
drm_cache.c
drm_context.c
drm_crtc_helper.c
drm_crtc.c drm: expose subpixel order name routine v3 2014-02-12 18:53:04 +01:00
drm_debugfs.c
drm_dma.c
drm_dp_helper.c drm/dp: Allow registering AUX channels as I2C busses 2014-02-26 17:21:34 +01:00
drm_drv.c
drm_edid_load.c
drm_edid.c
drm_encoder_slave.c
drm_fb_cma_helper.c
drm_fb_helper.c drm: export cmdline and preferred mode functions from fb helper 2014-02-12 23:42:16 +01:00
drm_flip_work.c
drm_fops.c drm: add minor-lookup/release helpers 2014-03-16 12:25:17 +01:00
drm_gem_cma_helper.c
drm_gem.c
drm_global.c
drm_hashtab.c
drm_info.c
drm_ioc32.c
drm_ioctl.c drm: add DRM_CAPs for cursor size 2014-02-18 13:41:01 -05:00
drm_irq.c
drm_lock.c
drm_memory.c
drm_mipi_dsi.c
drm_mm.c
drm_modes.c
drm_panel.c
drm_pci.c drm: provide device-refcount 2014-03-16 12:25:17 +01:00
drm_platform.c drm: provide device-refcount 2014-03-16 12:25:17 +01:00
drm_prime.c
drm_rect.c
drm_scatter.c
drm_stub.c drm: add minor-lookup/release helpers 2014-03-16 12:25:17 +01:00
drm_sysfs.c
drm_trace_points.c
drm_trace.h
drm_usb.c drm: provide device-refcount 2014-03-16 12:25:17 +01:00
drm_vm.c
drm_vma_manager.c
Kconfig
Makefile
README.drm

************************************************************
* For the very latest on DRI development, please see:      *
*     http://dri.freedesktop.org/                          *
************************************************************

The Direct Rendering Manager (drm) is a device-independent kernel-level
device driver that provides support for the XFree86 Direct Rendering
Infrastructure (DRI).

The DRM supports the Direct Rendering Infrastructure (DRI) in four major
ways:

    1. The DRM provides synchronized access to the graphics hardware via
       the use of an optimized two-tiered lock.

    2. The DRM enforces the DRI security policy for access to the graphics
       hardware by only allowing authenticated X11 clients access to
       restricted regions of memory.

    3. The DRM provides a generic DMA engine, complete with multiple
       queues and the ability to detect the need for an OpenGL context
       switch.

    4. The DRM is extensible via the use of small device-specific modules
       that rely extensively on the API exported by the DRM module.


Documentation on the DRI is available from:
    http://dri.freedesktop.org/wiki/Documentation
    http://sourceforge.net/project/showfiles.php?group_id=387
    http://dri.sourceforge.net/doc/

For specific information about kernel-level support, see:

    The Direct Rendering Manager, Kernel Support for the Direct Rendering
    Infrastructure
    http://dri.sourceforge.net/doc/drm_low_level.html

    Hardware Locking for the Direct Rendering Infrastructure
    http://dri.sourceforge.net/doc/hardware_locking_low_level.html

    A Security Analysis of the Direct Rendering Infrastructure
    http://dri.sourceforge.net/doc/security_low_level.html