diff options
author | Mikko Perttunen <mperttunen@nvidia.com> | 2024-02-22 03:05:16 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2024-02-22 18:48:06 +0100 |
commit | 1fa8d07ae1a5fa4e87de42c338e8fc27f46d8bb6 (patch) | |
tree | 2a262af4eb09ff13b9fd31cb7ccc1ac3f7033fa0 /drivers/gpu/host1x/dev.h | |
parent | 2aa6f5b0fd052e363bb9d4b547189f0bf6b3d6d3 (diff) | |
download | linux-1fa8d07ae1a5fa4e87de42c338e8fc27f46d8bb6.tar.gz linux-1fa8d07ae1a5fa4e87de42c338e8fc27f46d8bb6.tar.bz2 linux-1fa8d07ae1a5fa4e87de42c338e8fc27f46d8bb6.zip |
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
Diffstat (limited to 'drivers/gpu/host1x/dev.h')
-rw-r--r-- | drivers/gpu/host1x/dev.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/dev.h b/drivers/gpu/host1x/dev.h index c8e302de7625..925a118db23f 100644 --- a/drivers/gpu/host1x/dev.h +++ b/drivers/gpu/host1x/dev.h @@ -116,6 +116,12 @@ struct host1x_info { * the display driver disables VBLANK increments. */ bool reserve_vblank_syncpts; + /* + * On Tegra186, secure world applications may require access to + * host1x during suspend/resume. To allow this, we need to leave + * host1x not in reset. + */ + bool skip_reset_assert; }; struct host1x { |