mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: force idle if railgate not supported
Add a way to force idle and reset the GPU in case where GPU rail gating is not supported (i.e. platform->can_railgate = false) In this case, we follow below sequence : - once GPU is idle, get runtime reference which enables the clocks - call prepare_poweroff() to save the state explicitly - perform explicit reset assert/deassert - call finalize_poweron() to restore the state - drop the runtime reference taken earlier Bug 1525284 Change-Id: Id5f3ec152093acd585631dfbf785d8e0561f9048 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/435620 GVS: Gerrit_Virtual_Submit Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> Tested-by: Arto Merilainen <amerilainen@nvidia.com>
This commit is contained in:
committed by
Dan Willemsen
parent
597083eaba
commit
fec60b6e6e
@@ -271,6 +271,7 @@ struct gk20a {
|
||||
bool elpg_enabled;
|
||||
bool aelpg_enabled;
|
||||
bool forced_idle;
|
||||
bool forced_reset;
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
spinlock_t debugfs_lock;
|
||||
|
||||
Reference in New Issue
Block a user