From 8d279dbac10b8521aa7eaeb7640c01d21ce044f2 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 20 Aug 2015 19:46:16 +0530 Subject: gpu: nvgpu: IOCTL to disable timeouts Add IOCTL NVGPU_DBG_GPU_IOCTL_TIMEOUT to support disabling/re-enabling scheduler timeout from user space If user space application is closed without re-enabling the timeouts, kernel will restore the timeouts' state while releasing the debug session This is needed for debugging purpose Bug 1514061 Change-Id: I32efb47ad09d793f3e7fd8f0aaa9720c8bc91272 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/788176 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- 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 328bb73b..e106c479 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -532,6 +532,7 @@ struct gk20a { struct mutex dbg_sessions_lock; int dbg_sessions; /* number attached */ int dbg_powergating_disabled_refcount; /*refcount for pg disable */ + int dbg_timeout_disabled_refcount; /*refcount for timeout disable */ void (*remove_support)(struct platform_device *); -- cgit v1.2.2