]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: sysfs to put gpu into idle
authorDeepak Nibade <dnibade@nvidia.com>
Tue, 27 May 2014 13:49:45 +0000 (19:19 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Fri, 13 Jun 2014 00:33:31 +0000 (17:33 -0700)
commit7e921348b94ea0a45d94376cd3f15b4494de7477
tree9a79457e853f1e93d82c66907c52f2b10adafa38
parent9c5129e3c1ebf525f86ff4a6225403eb6b974293
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>
(cherry picked from commit 44d89a68bf6c9034c8bf9f5111d733290e7cb71e)
Reviewed-on: http://git-master/r/421699
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
drivers/gpu/nvgpu/gk20a/gk20a.h
drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c