gpu: host1x: Skip reset assert on Tegra186
authorMikko Perttunen <mperttunen@nvidia.com>
Thu, 22 Feb 2024 01:05:16 +0000 (03:05 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 22 Feb 2024 17:48:06 +0000 (18:48 +0100)
commit1fa8d07ae1a5fa4e87de42c338e8fc27f46d8bb6
tree2a262af4eb09ff13b9fd31cb7ccc1ac3f7033fa0
parent2aa6f5b0fd052e363bb9d4b547189f0bf6b3d6d3
gpu: host1x: Skip reset assert on Tegra186

On Tegra186, secure world applications may need to access host1x
during suspend/resume, and rely on the kernel to keep Host1x out
of reset during the suspend cycle. As such, as a quirk,
skip asserting Host1x's reset on Tegra186.

We don't need to keep the clocks enabled, as BPMP ensures the clock
stays on while Host1x is being used. On newer SoC's, the reset line
is inaccessible, so there is no need for the quirk.

Fixes: b7c00cdf6df5 ("gpu: host1x: Enable system suspend callbacks")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240222010517.1573931-1-cyndis@kapsi.fi
drivers/gpu/host1x/dev.c
drivers/gpu/host1x/dev.h