From fec60b6e6e299151d446f4bccc5fd64a23b704d2 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 8 Jul 2014 18:00:18 +0530 Subject: 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 Reviewed-on: http://git-master/r/435620 GVS: Gerrit_Virtual_Submit Reviewed-by: Arto Merilainen Tested-by: Arto Merilainen --- drivers/gpu/nvgpu/gk20a/gk20a.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 55bc6b20..774e4e85 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -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; -- cgit v1.2.2