diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2014-05-27 09:49:45 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:09:58 -0400 |
commit | cd9f8553ad1e6e03e8a3a70cb8d08edd3513fb66 (patch) | |
tree | e934093697d0d849d1068aa4cb41653c521af6f7 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 3f7be93dab3ccb5f1cfc2a65013ff8fefaa5bbbd (diff) |
gpu: nvgpu: sysfs to put gpu into idle
- Add a sysfs "force_idle" to forcibly idle the GPU
- read on this sysfs will return the current status
0 : not in idle (running)
1 : in forced idle state
"echo 1 > force_idle" will force the gpu into idle
"echo 0 > force_idle" will cause the gpu to resume
Bug 1376916
Bug 1487804
Change-Id: I48dfd52e0d14561220bc4baea0776d1bdfaa7ea5
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 115cd7f4..6d3c8225 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -248,6 +248,7 @@ struct gk20a { | |||
248 | bool elcg_enabled; | 248 | bool elcg_enabled; |
249 | bool elpg_enabled; | 249 | bool elpg_enabled; |
250 | bool aelpg_enabled; | 250 | bool aelpg_enabled; |
251 | bool forced_idle; | ||
251 | 252 | ||
252 | #ifdef CONFIG_DEBUG_FS | 253 | #ifdef CONFIG_DEBUG_FS |
253 | spinlock_t debugfs_lock; | 254 | spinlock_t debugfs_lock; |