linux_dsm_epyc7002/drivers/gpu/drm/bochs
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
..
bochs_drv.c drm: bochs: add power management support 2014-04-18 13:31:49 +10:00
bochs_fbdev.c drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
bochs_hw.c
bochs_kms.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
bochs_mm.c drm/bochs: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN 2014-07-08 00:34:19 +02:00
bochs.h drm: bochs: drop unused struct fields 2014-04-18 13:31:50 +10:00
Kconfig drm: fix bochs kconfig dependencies 2014-03-07 09:05:10 +10:00
Makefile