1
0
Fork 0
alistair23-linux/drivers/gpu/drm/qxl
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
..
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 drm: add register and unregister functions for connectors 2014-06-19 08:55:28 +02: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/<drivers>: don't set driver->dev_priv_size to 0 2014-04-23 10:32:54 +02: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 drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +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: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE() 2014-06-10 09:36:17 +10:00
qxl_irq.c drm: pass the irq explicitly to drm_irq_install 2014-04-23 10:32:50 +02: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: init TTM dev_mapping in ttm_bo_device_init() 2014-03-16 12:23:42 +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/ttm: Hide the implementation details of reservation 2014-04-04 08:00:59 +02:00
qxl_ttm.c drm: qxl: Remove unused device pointer 2014-05-01 09:30:34 +10:00