gpu: nvgpu: Implement NVGPU_GPU_IOCTL_GET_GPU_TIME
authorSami Kiminki <skiminki@nvidia.com>
Tue, 12 Apr 2016 19:33:36 +0000 (22:33 +0300)
committerManish Tuteja <mtuteja@nvidia.com>
Fri, 14 Apr 2017 04:00:39 +0000 (21:00 -0700)
commit634e56e988dead11407da36952a58e7fb4456fd0
tree3b6186184869de1fbaac9d67bcee6c96c5d7ba49
parent8df3fe492bb8940a159891dc20d22c4a7f30010c
gpu: nvgpu: Implement NVGPU_GPU_IOCTL_GET_GPU_TIME

Implement NVGPU_GPU_IOCTL_GET_GPU_TIME for reading the GPU time.

Bug 1395833

Change-Id: I7ddc7c28ff0c9a336cc0dcd820b15fb0fea714d0
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: http://git-master/r/1125630
(cherry picked from commit 6b35cb05b7822174bf037da7229154004df4f229)
Reviewed-on: http://git-master/r/1317214
(cherry picked from commit cf731c89ab525c59dad38a346649999517e8ecea)
Reviewed-on: http://git-master/r/1325192
GVS: Gerrit_Virtual_Submit
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
(cherry picked from commit f118e3efb7aa3ff107b00540bbd55a032cd1ddf3)
Reviewed-on: http://git-master/r/1461691
Tested-by: Daniel Koch <dkoch@nvidia.com>
Reviewed-by: Daniel Koch <dkoch@nvidia.com>
drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c
drivers/gpu/nvgpu/gk20a/hw_timer_gk20a.h
drivers/gpu/nvgpu/gm20b/hw_timer_gm20b.h
include/uapi/linux/nvgpu.h