diff options
Diffstat (limited to 'include/uapi/linux/nvgpu.h')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 45d1c217..a75a5ae0 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -647,8 +647,20 @@ struct nvgpu_dbg_gpu_set_next_stop_trigger_type_args { | |||
647 | _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 12, struct nvgpu_dbg_gpu_set_next_stop_trigger_type_args) | 647 | _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 12, struct nvgpu_dbg_gpu_set_next_stop_trigger_type_args) |
648 | 648 | ||
649 | 649 | ||
650 | /* PM Context Switch Mode */ | ||
651 | #define NVGPU_DBG_GPU_HWPM_CTXSW_MODE_NO_CTXSW (0x00000000) | ||
652 | #define NVGPU_DBG_GPU_HWPM_CTXSW_MODE_CTXSW (0x00000001) | ||
653 | |||
654 | struct nvgpu_dbg_gpu_hwpm_ctxsw_mode_args { | ||
655 | __u32 mode; | ||
656 | __u32 reserved; | ||
657 | }; | ||
658 | |||
659 | #define NVGPU_DBG_GPU_IOCTL_HWPM_CTXSW_MODE \ | ||
660 | _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 13, struct nvgpu_dbg_gpu_hwpm_ctxsw_mode_args) | ||
661 | |||
650 | #define NVGPU_DBG_GPU_IOCTL_LAST \ | 662 | #define NVGPU_DBG_GPU_IOCTL_LAST \ |
651 | _IOC_NR(NVGPU_DBG_GPU_IOCTL_SET_NEXT_STOP_TRIGGER_TYPE) | 663 | _IOC_NR(NVGPU_DBG_GPU_IOCTL_HWPM_CTXSW_MODE) |
652 | 664 | ||
653 | #define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \ | 665 | #define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \ |
654 | sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args) | 666 | sizeof(struct nvgpu_dbg_gpu_perfbuf_map_args) |