linux_dsm_epyc7002/drivers/gpu/drm/tegra
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
..
dc.c drm/tegra: Add hardware cursor support 2014-06-05 23:14:47 +02:00
dc.h drm/tegra: Add hardware cursor support 2014-06-05 23:14:47 +02:00
dpaux.c drm/tegra: dp - Mark the connector as hotplug capable 2014-06-05 23:14:48 +02:00
dpaux.h drm/tegra: dp: Support address-only I2C-over-AUX transactions 2014-04-08 16:12:36 +02:00
drm.c drm/tegra: Remove host1x drm_bus implementation 2014-06-05 23:14:46 +02:00
drm.h drm/tegra: Remove host1x drm_bus implementation 2014-06-05 23:14:46 +02:00
dsi.c drm/tegra: Remove host1x drm_bus implementation 2014-06-05 23:14:46 +02:00
dsi.h drm/tegra: dsi - Use internal pixel format 2014-06-05 23:09:26 +02:00
fb.c drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
gem.c drm/tegra: gem - Make tegra_bo_import() static 2014-06-05 23:09:36 +02:00
gem.h drm/tegra: Relicense under GPL v2 2014-04-04 09:12:51 +02:00
gr2d.c drm/tegra: Remove host1x drm_bus implementation 2014-06-05 23:14:46 +02:00
gr2d.h drm/tegra: Use symbolic names for gr2d registers 2013-10-31 09:55:44 +01:00
gr3d.c drm/tegra: Remove host1x drm_bus implementation 2014-06-05 23:14:46 +02:00
gr3d.h drm/tegra: Add 3D support 2013-10-31 09:55:45 +01:00
hdmi.c drm/tegra: Remove host1x drm_bus implementation 2014-06-05 23:14:46 +02:00
hdmi.h drm/tegra: hdmi - Disable LVDS mode 2014-06-05 23:09:25 +02:00
Kconfig drm/tegra: Make legacy fbdev support optional 2013-12-20 15:56:05 +01:00
Makefile drm/tegra: Remove host1x drm_bus implementation 2014-06-05 23:14:46 +02:00
mipi-phy.c drm/tegra: Relicense under GPL v2 2014-04-04 09:12:51 +02:00
mipi-phy.h drm/tegra: Relicense under GPL v2 2014-04-04 09:12:51 +02:00
output.c drm: add register and unregister functions for connectors 2014-06-19 08:55:28 +02:00
rgb.c drm/tegra: dc - Compute shift clock divider in output drivers 2014-06-05 23:09:33 +02:00
sor.c drm/tegra: sor - Remove obsolete comment 2014-06-09 12:02:51 +02:00
sor.h drm/tegra: sor - Add CRC debugfs support 2014-06-05 23:09:17 +02:00