gpu: host1x: Fix hang on Tegra186+
authorDmitry Osipenko <digetx@gmail.com>
Thu, 23 Dec 2021 14:46:50 +0000 (17:46 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 27 Jan 2022 17:27:02 +0000 (18:27 +0100)
commit22d7ee32f1fb6d51ef8cf657c6685ca04745755a
tree1f01535f963ea7522744c8313d958d1ee325eafc
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07
gpu: host1x: Fix hang on Tegra186+

Tegra186+ hangs if host1x hardware is disabled at a kernel boot time
because we touch hardware before runtime PM is resumed. Move sync point
assignment initialization to the RPM-resume callback. Older SoCs were
unaffected because they skip that sync point initialization.

Tested-by: Jon Hunter <jonathanh@nvidia.com> # T186
Reported-by: Jon Hunter <jonathanh@nvidia.com> # T186
Fixes: 6b6776e2ab8a ("gpu: host1x: Add initial runtime PM and OPP support")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/syncpt.c