summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-02-20 21:15:04 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 21:56:54 -0400
commit325e0587d9180b05d59869679fc06b0ba979d973 (patch)
treedc7e743440c5e86d72c1a2850b8b93a0cc9d0296 /include
parent1b6372ec6b8704d6bacc6b8abf7e599f1cbc15ca (diff)
gpu: nvgpu: Allow enabling PC sampling
Allow enabling of PC sampling hardware workaround. It is only applicable to gm20b. Bug 1517458 Bug 1573150 Change-Id: Iad6a3ae556489fb7ab9628637d291849d2cd98ea Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/710421
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nvgpu.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 3c53ba94..9e3a362f 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -457,8 +457,20 @@ struct nvgpu_dbg_gpu_perfbuf_unmap_args {
457#define NVGPU_DBG_GPU_IOCTL_PERFBUF_UNMAP \ 457#define NVGPU_DBG_GPU_IOCTL_PERFBUF_UNMAP \
458 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 8, struct nvgpu_dbg_gpu_perfbuf_unmap_args) 458 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 8, struct nvgpu_dbg_gpu_perfbuf_unmap_args)
459 459
460/* Enable/disable PC Sampling */
461struct nvgpu_dbg_gpu_pc_sampling_args {
462 __u32 enable;
463 __u32 _pad0[1];
464};
465
466#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING_DISABLE 0
467#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING_ENABLE 1
468
469#define NVGPU_DBG_GPU_IOCTL_PC_SAMPLING \
470 _IOW(NVGPU_DBG_GPU_IOCTL_MAGIC, 9, struct nvgpu_dbg_gpu_pc_sampling_args)
471
460#define NVGPU_DBG_GPU_IOCTL_LAST \ 472#define NVGPU_DBG_GPU_IOCTL_LAST \
461 _IOC_NR(NVGPU_DBG_GPU_IOCTL_PERFBUF_UNMAP) 473 _IOC_NR(NVGPU_DBG_GPU_IOCTL_PC_SAMPLING)
462#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \ 474#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \
463 sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args) 475 sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args)
464 476