gpu: nvgpu: serialize debug session IOCTLs
authorDeepak Nibade <dnibade@nvidia.com>
Mon, 23 Jan 2017 11:32:07 +0000 (16:32 +0530)
committerManish Tuteja <mtuteja@nvidia.com>
Wed, 1 Mar 2017 00:36:06 +0000 (16:36 -0800)
commitea387ad8c402e22b295c3476d962eab63f02ff89
tree30c9e8c92ccc7887825ea9dd98bcfba42525afca
parent561a4b926820213cc90514343c28d0dd752d3b49
gpu: nvgpu: serialize debug session IOCTLs

Hold debug_s->ioctl_lock for all debug session IOCTLs to prevent
multi-threaded user space IOCTL calls.
Debug session IOCTL calls are not thread-safe and hence this
serialization is required.

Bug 1832267
Bug 1832095
Bug 1849492

Change-Id: I847ac951601d4f0093546b592bdb8c8f00185317
Reviewed-on: http://git-master/r/1286436
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1292432
(cherry picked from commit d4629278161f2dc3c74e0f13c6ca08038355dd22)
Reviewed-on: http://git-master/r/1299511
(cherry picked from commit 6800b190bfb4ca00c5fef064b5a7ac2c65b8f4a4)
Reviewed-on: http://git-master/r/1311415
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h