linux/drivers/gpu/drm/tegra
Dmitry Osipenko 39af2f472f drm/tegra: dc: Don't set PLL clock to 0Hz
[ Upstream commit f8fb97c915 ]

RGB output doesn't allow to change parent clock rate of the display and
PCLK rate is set to 0Hz in this case. The tegra_dc_commit_state() shall
not set the display clock to 0Hz since this change propagates to the
parent clock. The DISP clock is defined as a NODIV clock by the tegra-clk
driver and all NODIV clocks use the CLK_SET_RATE_PARENT flag.

This bug stayed unnoticed because by default PLLP is used as the parent
clock for the display controller and PLLP silently skips the erroneous 0Hz
rate changes because it always has active child clocks that don't permit
rate changes. The PLLP isn't acceptable for some devices that we want to
upstream (like Samsung Galaxy Tab and ASUS TF700T) due to a display panel
clock rate requirements that can't be fulfilled by using PLLP and then the
bug pops up in this case since parent clock is set to 0Hz, killing the
display output.

Don't touch DC clock if pclk=0 in order to fix the problem.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-04-16 11:43:20 +02:00
..
dc.c drm/tegra: dc: Don't set PLL clock to 0Hz 2021-04-16 11:43:20 +02:00
dc.h drm/tegra: plane: Support horizontal reflection 2020-07-17 16:06:17 +02:00
dp.c
dp.h
dpaux.c
dpaux.h
drm.c drm/tegra: replace idr_init() by idr_init_base() 2020-11-10 20:49:57 +01:00
drm.h drm/tegra: output: Support DRM bridges 2020-09-17 12:30:11 +02:00
dsi.c drm/tegra: Fix reference leak when pm_runtime_get_sync() fails 2021-03-04 11:37:42 +01:00
dsi.h
falcon.c
falcon.h
fb.c
gem.c drm-misc-next for 5.10: 2020-09-23 09:52:24 +10:00
gem.h
gr2d.c drm/tegra: gr2d: Add tiled PATBASE address register 2020-07-17 16:06:16 +02:00
gr2d.h drm/tegra: gr2d: Add tiled PATBASE address register 2020-07-17 16:06:16 +02:00
gr3d.c drm/tegra: gr3d: Assert reset before power-gating 2020-07-17 16:06:15 +02:00
gr3d.h
hda.c
hda.h
hdmi.c drm/tegra: Fix reference leak when pm_runtime_get_sync() fails 2021-03-04 11:37:42 +01:00
hdmi.h
hub.c drm/tegra: Fix reference leak when pm_runtime_get_sync() fails 2021-03-04 11:37:42 +01:00
hub.h
Kconfig
Makefile
mipi-phy.c
mipi-phy.h
output.c drm/tegra: output: Do not put OF node twice 2020-11-13 21:38:35 +01:00
plane.c drm: tegra: fix common struct sg_table related issues 2020-09-10 08:18:35 +02:00
plane.h drm/tegra: plane: Support horizontal reflection 2020-07-17 16:06:17 +02:00
rgb.c drm/tegra: output: rgb: Wrap directly-connected panel into DRM bridge 2020-09-17 12:31:18 +02:00
sor.c drm/tegra: sor: Grab runtime PM reference across reset 2021-04-07 15:00:11 +02:00
sor.h
trace.c
trace.h
vic.c drm/tegra: Fix reference leak when pm_runtime_get_sync() fails 2021-03-04 11:37:42 +01:00
vic.h