diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-11-25 04:52:24 -0500 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-11-30 11:48:59 -0500 |
commit | 632a86f7cdec9f795fdef56ad028694c72d4e9d4 (patch) | |
tree | f3effaac4d6347614154d1c483eceaa3c0480647 /include/uapi | |
parent | c45f8cadee552001ac6881ef570730055a98a7c5 (diff) |
gpu: nvgpu: IOCTL to disable watchdog per-channel
Add IOCTL NVGPU_IOCTL_CHANNEL_WDT to disable/enable
watchdog per-channel
Also, if watchdog is disabled, we currently schedule
the worker with MAX timeout.
Instead of this, do not schedule any worker if
watchdog is disabled
Bug 1683059
Bug 1700277
Change-Id: I7f6bec84adeedb74e014ed6d1471317b854df84c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/837962
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 025f2c9b..976464e4 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -802,6 +802,13 @@ struct nvgpu_cycle_stats_snapshot_args { | |||
802 | #define NVGPU_IOCTL_CHANNEL_CYCLE_STATS_SNAPSHOT_CMD_ATTACH 1 | 802 | #define NVGPU_IOCTL_CHANNEL_CYCLE_STATS_SNAPSHOT_CMD_ATTACH 1 |
803 | #define NVGPU_IOCTL_CHANNEL_CYCLE_STATS_SNAPSHOT_CMD_DETACH 2 | 803 | #define NVGPU_IOCTL_CHANNEL_CYCLE_STATS_SNAPSHOT_CMD_DETACH 2 |
804 | 804 | ||
805 | /* disable watchdog per-channel */ | ||
806 | struct nvgpu_channel_wdt_args { | ||
807 | __u32 wdt_status; | ||
808 | __u32 padding; | ||
809 | }; | ||
810 | #define NVGPU_IOCTL_CHANNEL_DISABLE_WDT 1 | ||
811 | #define NVGPU_IOCTL_CHANNEL_ENABLE_WDT 2 | ||
805 | 812 | ||
806 | #define NVGPU_IOCTL_CHANNEL_SET_NVMAP_FD \ | 813 | #define NVGPU_IOCTL_CHANNEL_SET_NVMAP_FD \ |
807 | _IOW(NVGPU_IOCTL_MAGIC, 5, struct nvgpu_set_nvmap_fd_args) | 814 | _IOW(NVGPU_IOCTL_MAGIC, 5, struct nvgpu_set_nvmap_fd_args) |
@@ -843,9 +850,11 @@ struct nvgpu_cycle_stats_snapshot_args { | |||
843 | _IOW(NVGPU_IOCTL_MAGIC, 117, struct nvgpu_channel_events_ctrl_args) | 850 | _IOW(NVGPU_IOCTL_MAGIC, 117, struct nvgpu_channel_events_ctrl_args) |
844 | #define NVGPU_IOCTL_CHANNEL_CYCLE_STATS_SNAPSHOT \ | 851 | #define NVGPU_IOCTL_CHANNEL_CYCLE_STATS_SNAPSHOT \ |
845 | _IOWR(NVGPU_IOCTL_MAGIC, 118, struct nvgpu_cycle_stats_snapshot_args) | 852 | _IOWR(NVGPU_IOCTL_MAGIC, 118, struct nvgpu_cycle_stats_snapshot_args) |
853 | #define NVGPU_IOCTL_CHANNEL_WDT \ | ||
854 | _IOW(NVGPU_IOCTL_MAGIC, 119, struct nvgpu_channel_wdt_args) | ||
846 | 855 | ||
847 | #define NVGPU_IOCTL_CHANNEL_LAST \ | 856 | #define NVGPU_IOCTL_CHANNEL_LAST \ |
848 | _IOC_NR(NVGPU_IOCTL_CHANNEL_CYCLE_STATS_SNAPSHOT) | 857 | _IOC_NR(NVGPU_IOCTL_CHANNEL_WDT) |
849 | #define NVGPU_IOCTL_CHANNEL_MAX_ARG_SIZE sizeof(struct nvgpu_submit_gpfifo_args) | 858 | #define NVGPU_IOCTL_CHANNEL_MAX_ARG_SIZE sizeof(struct nvgpu_submit_gpfifo_args) |
850 | 859 | ||
851 | /* | 860 | /* |