linux_old1/drivers/gpu/host1x
Thierry Reding 87904c3e82 drm/tegra: dsi: Enhance runtime power management
The MIPI DSI output on Tegra SoCs requires some external logic to
calibrate the MIPI pads before a video signal can be transmitted. This
MIPI calibration logic requires to be powered on while the MIPI pads are
being used, which is currently done as part of the DSI driver's probe
implementation.

This is suboptimal because it will leave the MIPI calibration logic
powered up even if the DSI output is never used.

On Tegra114 and earlier this behaviour also causes the driver to hang
while trying to power up the MIPI calibration logic because the power
partition that contains the MIPI calibration logic will be powered on
by the display controller at output pipeline configuration time. Thus
the power up sequence for the MIPI calibration logic happens before
it's power partition is guaranteed to be enabled.

Fix this by splitting up the API into a request/free pair of functions
that manage the runtime dependency between the DSI and the calibration
modules (no registers are accessed) and a set of enable, calibrate and
disable functions that program the MIPI calibration logic at points in
time where the power partition is really enabled.

While at it, make sure that the runtime power management also works in
ganged mode, which is currently also broken.

Reported-by: Jonathan Hunter <jonathanh@nvidia.com>
Tested-by: Jonathan Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2016-08-24 15:58:57 +02:00
..
hw gpu: host1x: Remove redundant parentheses 2016-06-23 11:59:31 +02:00
Kconfig gpu: host1x: Increase compile test coverage 2013-12-19 09:29:51 +01:00
Makefile gpu: host1x: Add Tegra210 support 2015-12-14 10:50:33 +01:00
bus.c drm/tegra: Changes for v4.6-rc1 2016-03-17 08:08:57 +10:00
bus.h gpu: host1x: Provide a proper struct bus_type 2015-01-27 10:09:14 +01:00
cdma.c gpu: host1x: Whitespace cleanup for readability 2016-06-23 11:59:30 +02:00
cdma.h gpu: host1x: Make mapped field of push buffers void * 2014-11-13 16:11:35 +01:00
channel.c gpu: host1x: channel: Use correct type 2016-06-23 11:59:26 +02:00
channel.h gpu: host1x: Expose syncpt and channel functionality 2013-10-31 09:20:11 +01:00
debug.c gpu: host1x: Whitespace cleanup for readability 2016-06-23 11:59:30 +02:00
debug.h gpu: host1x: Add debug support 2013-04-22 12:32:46 +02:00
dev.c gpu: host1x: Whitespace cleanup for readability 2016-06-23 11:59:30 +02:00
dev.h gpu: host1x: Use unsigned int consistently for IDs 2016-06-23 11:59:24 +02:00
intr.c gpu: host1x: Constify array of action handlers 2016-06-23 11:59:31 +02:00
intr.h gpu: host1x: Use unsigned int consistently for IDs 2016-06-23 11:59:24 +02:00
job.c gpu: host1x: Whitespace cleanup for readability 2016-06-23 11:59:30 +02:00
job.h gpu: host1x: Make gather offsets unsigned 2014-11-13 16:11:44 +01:00
mipi.c drm/tegra: dsi: Enhance runtime power management 2016-08-24 15:58:57 +02:00
syncpt.c gpu: host1x: Remove useless local variable 2016-06-23 11:59:33 +02:00
syncpt.h gpu: host1x: Use unsigned int consistently for IDs 2016-06-23 11:59:24 +02:00