summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/nvgpu.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index ad9dce1f..2c130d82 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -1416,6 +1416,31 @@ struct nvgpu_dbg_gpu_set_sm_exception_type_mask_args {
1416 _IOW(NVGPU_DBG_GPU_IOCTL_MAGIC, 23, \ 1416 _IOW(NVGPU_DBG_GPU_IOCTL_MAGIC, 23, \
1417 struct nvgpu_dbg_gpu_set_sm_exception_type_mask_args) 1417 struct nvgpu_dbg_gpu_set_sm_exception_type_mask_args)
1418 1418
1419struct nvgpu_dbg_gpu_cycle_stats_args {
1420 __u32 dmabuf_fd;
1421 __u32 reserved;
1422};
1423
1424#define NVGPU_DBG_GPU_IOCTL_CYCLE_STATS \
1425 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 24, struct nvgpu_dbg_gpu_cycle_stats_args)
1426
1427/* cycle stats snapshot buffer support for mode E */
1428struct nvgpu_dbg_gpu_cycle_stats_snapshot_args {
1429 __u32 cmd; /* in: command to handle */
1430 __u32 dmabuf_fd; /* in: dma buffer handler */
1431 __u32 extra; /* in/out: extra payload e.g.*/
1432 /* counter/start perfmon */
1433 __u32 reserved;
1434};
1435
1436/* valid commands to control cycle stats shared buffer */
1437#define NVGPU_DBG_GPU_IOCTL_CYCLE_STATS_SNAPSHOT_CMD_FLUSH 0
1438#define NVGPU_DBG_GPU_IOCTL_CYCLE_STATS_SNAPSHOT_CMD_ATTACH 1
1439#define NVGPU_DBG_GPU_IOCTL_CYCLE_STATS_SNAPSHOT_CMD_DETACH 2
1440
1441#define NVGPU_DBG_GPU_IOCTL_CYCLE_STATS_SNAPSHOT \
1442 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 25, struct nvgpu_dbg_gpu_cycle_stats_snapshot_args)
1443
1419/* MMU Debug Mode */ 1444/* MMU Debug Mode */
1420#define NVGPU_DBG_GPU_CTX_MMU_DEBUG_MODE_DISABLED 0 1445#define NVGPU_DBG_GPU_CTX_MMU_DEBUG_MODE_DISABLED 0
1421#define NVGPU_DBG_GPU_CTX_MMU_DEBUG_MODE_ENABLED 1 1446#define NVGPU_DBG_GPU_CTX_MMU_DEBUG_MODE_ENABLED 1