original_kernel/drivers/gpu/drm/tegra
Thierry Reding 180b46ecdc drm/tegra: sor: Reset the SOR if possible
If the SOR is already up and running when the kernel driver is probed,
setting a mode will typically fail. This can be seen for example on
Jetson TX2. Under certain circumstances the generic power domain code
will cause the SOR to be reset. However, if the power domain is never
powered off (this can happen if the HDA controller is enabled, which
is part of the same power domain as the SOR), then the SOR will end up
not getting reset and fail to properly set a mode.

To work around this, try to get the reset control and assert/deassert
it, irrespective of whether or not a generic power domain is attached
to the SOR. On platforms where the kernel implements generic power
domains (up to Tegra210) this will fail, because the power domain will
already have acquired an exclusive reference to the reset control. But
on recent platforms there the BPMP provides an ABI to control power
domains, it's possible to acquire the reset control from SOR and use
it to put the SOR into a known good state at probe time.

The proper solution for this is to make the SOR driver capable of
dealing with hardware that's already up and running (by first grace-
fully shutting it down, or perhaps by seamlessly transitioning to the
kernel driver and taking over the running display configuration). That
is fairly involved, though, so we'll go with this quickfix for now.

Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-12-06 18:58:32 +01:00
..
Kconfig
Makefile
dc.c drm/tegra: dc: Don't clean up unused display controller 2018-11-29 17:25:32 +01:00
dc.h
dpaux.c
dpaux.h
drm.c drm/tegra: vic: Add Tegra194 support 2018-11-29 17:11:50 +01:00
drm.h
dsi.c
dsi.h
falcon.c drm/tegra: falcon: Wait for memory scrubbing to complete 2018-11-29 17:11:49 +01:00
falcon.h
fb.c
gem.c
gem.h
gr2d.c
gr2d.h
gr3d.c
gr3d.h
hdmi.c
hdmi.h
hub.c drm/tegra: hub: Enable all required clocks 2018-11-29 17:25:21 +01:00
hub.h drm/tegra: hub: Enable all required clocks 2018-11-29 17:25:21 +01:00
mipi-phy.c
mipi-phy.h
output.c
plane.c
plane.h
rgb.c
sor.c drm/tegra: sor: Reset the SOR if possible 2018-12-06 18:58:32 +01:00
sor.h drm/tegra: sor: Support for audio over HDMI 2018-12-03 16:37:26 +01:00
trace.c
trace.h
vic.c drm/tegra: vic: Add Tegra194 support 2018-11-29 17:11:50 +01:00
vic.h