kernel-ark/drivers/gpu/drm
Thierry Reding 10a2310265 drm: Introduce drm_fb_helper_prepare()
To implement hotplug detection in a race-free manner, drivers must call
drm_kms_helper_poll_init() before hotplug events can be triggered. Such
events can be triggered right after any of the encoders or connectors
are initialized. At the same time, if the drm_fb_helper_hotplug_event()
helper is used by a driver, then the poll helper requires some parts of
the FB helper to be initialized to prevent a crash.

At the same time, drm_fb_helper_init() requires information that is not
necessarily available at such an early stage (number of CRTCs and
connectors), so it cannot be used yet.

Add a new helper, drm_fb_helper_prepare(), that initializes the bare
minimum needed to allow drm_kms_helper_poll_init() to execute and any
subsequent hotplug events to be processed properly.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-07-08 11:31:28 +10:00
..
armada drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
ast drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
bochs drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
bridge drm: add register and unregister functions for connectors 2014-06-19 08:55:28 +02:00
cirrus drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
exynos drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
gma500 drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
i2c Merge branch 'tda998x-fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-cubox 2014-07-06 07:48:26 +10:00
i810 drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE() 2014-06-10 09:36:17 +10:00
i915 drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
mga drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE() 2014-06-10 09:36:17 +10:00
mgag200 drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
msm drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
nouveau drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
omapdrm drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
panel drm/panel: simple - Add AUO B133XTN01 panel support 2014-06-09 12:17:21 +02:00
qxl drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
r128 drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE() 2014-06-10 09:36:17 +10:00
radeon drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
rcar-du drm: add register and unregister functions for connectors 2014-06-19 08:55:28 +02:00
savage drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE() 2014-06-10 09:36:17 +10:00
shmobile drm: add register and unregister functions for connectors 2014-06-19 08:55:28 +02:00
sis drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE() 2014-06-10 09:36:17 +10:00
tdfx
tegra drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
tilcdc drm/tilcdc: replace late_initcall with module_init 2014-07-08 11:25:37 +10:00
ttm ttm: use NULL instead of 0 for ttm_bo_reserve()'s pointer arg. 2014-07-08 11:28:28 +10:00
udl drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
via drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE() 2014-06-10 09:36:17 +10:00
vmwgfx drm/ttm: fix handling of TTM_PL_FLAG_TOPDOWN v2 2014-07-08 11:15:58 +10:00
ati_pcigart.c
drm_agpsupport.c
drm_auth.c
drm_buffer.c
drm_bufs.c Merge tag 'topic/core-stuff-2014-05-05' of git://anongit.freedesktop.org/drm-intel into drm-next 2014-05-16 11:47:13 +10:00
drm_cache.c drm: Missed clflushopt in drm_clflush_virt_range 2014-06-02 09:57:31 +02:00
drm_context.c
drm_crtc_helper.c drm/crtc-helper: use drm_framebuffer flags 2014-07-08 11:18:47 +10:00
drm_crtc_internal.h
drm_crtc.c drm/debugfs: add an "edid_override" file per connector 2014-06-19 08:56:28 +02:00
drm_debugfs.c drm/debugfs: add an "edid_override" file per connector 2014-06-19 08:56:28 +02:00
drm_dma.c
drm_dp_helper.c drm/dp: add a hw mutex around the transfer functions. (v2) 2014-06-05 09:54:29 +10:00
drm_drv.c drm: fix permissions on drm_drv.c 2014-07-03 07:54:26 +10:00
drm_edid_load.c drm: replace drm_get_connector_name() with direct name field use 2014-06-04 13:17:41 +10:00
drm_edid.c drm/edid: Store all supported hdmi deep color modes in drm_display_info 2014-06-09 22:06:49 -04:00
drm_encoder_slave.c
drm_fb_cma_helper.c drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
drm_fb_helper.c drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
drm_flip_work.c
drm_fops.c
drm_gem_cma_helper.c
drm_gem.c drm/gem: remove misleading gfp parameter to get_pages() 2014-07-08 00:29:53 +02:00
drm_global.c
drm_hashtab.c
drm_info.c
drm_ioc32.c
drm_ioctl.c drm: Introduce drm_dev_set_unique() 2014-06-05 23:14:32 +02:00
drm_irq.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-06-12 11:32:30 -07:00
drm_lock.c
drm_memory.c
drm_mipi_dsi.c drm/dsi: Support device shutdown 2014-06-05 16:42:19 +02:00
drm_mm.c
drm_modes.c
drm_modeset_lock.c drm: fix uninitialized acquire_ctx fields (v2) 2014-06-19 10:30:36 +10:00
drm_panel.c
drm_pci.c drm: Add device registration documentation 2014-06-05 23:14:38 +02:00
drm_plane_helper.c drm/plane-helper: Add drm_plane_helper_check_update() (v3) 2014-06-05 08:52:43 +02:00
drm_platform.c drm: Add device registration documentation 2014-06-05 23:14:38 +02:00
drm_prime.c
drm_probe_helper.c drm/debugfs: add an "edid_override" file per connector 2014-06-19 08:56:28 +02:00
drm_rect.c
drm_scatter.c
drm_stub.c Merge branch 'drm-next' of git://people.freedesktop.org/~dvdhrm/linux into drm-next 2014-07-08 11:08:31 +10:00
drm_sysfs.c drm: add register and unregister functions for connectors 2014-06-19 08:55:28 +02:00
drm_trace_points.c
drm_trace.h
drm_usb.c drm: Add device registration documentation 2014-06-05 23:14:38 +02:00
drm_vm.c
drm_vma_manager.c
Kconfig drm/exynos: Fix PTN3460 dependency 2014-06-02 02:07:10 +09:00
Makefile drm: convert crtc and connection_mutex to ww_mutex (v5) 2014-06-05 09:54:33 +10:00
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