diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tegra_vgpu.h | 1 | ||||
-rw-r--r-- | include/uapi/linux/nvgpu.h | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h index ecdc3014..5d4fa36a 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h | |||
@@ -457,6 +457,7 @@ struct tegra_vgpu_constants_params { | |||
457 | u16 gpc_tpc_mask[TEGRA_VGPU_MAX_GPC_COUNT]; | 457 | u16 gpc_tpc_mask[TEGRA_VGPU_MAX_GPC_COUNT]; |
458 | u32 hwpm_ctx_size; | 458 | u32 hwpm_ctx_size; |
459 | u8 force_preempt_mode; | 459 | u8 force_preempt_mode; |
460 | u32 default_timeslice_us; | ||
460 | }; | 461 | }; |
461 | 462 | ||
462 | struct tegra_vgpu_channel_cyclestats_snapshot_params { | 463 | struct tegra_vgpu_channel_cyclestats_snapshot_params { |
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 401722b1..e7d37221 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -968,11 +968,13 @@ struct nvgpu_gpu_set_event_filter_args { | |||
968 | _IOW(NVGPU_TSG_IOCTL_MAGIC, 8, struct nvgpu_runlist_interleave_args) | 968 | _IOW(NVGPU_TSG_IOCTL_MAGIC, 8, struct nvgpu_runlist_interleave_args) |
969 | #define NVGPU_IOCTL_TSG_SET_TIMESLICE \ | 969 | #define NVGPU_IOCTL_TSG_SET_TIMESLICE \ |
970 | _IOW(NVGPU_TSG_IOCTL_MAGIC, 9, struct nvgpu_timeslice_args) | 970 | _IOW(NVGPU_TSG_IOCTL_MAGIC, 9, struct nvgpu_timeslice_args) |
971 | #define NVGPU_IOCTL_TSG_GET_TIMESLICE \ | ||
972 | _IOR(NVGPU_TSG_IOCTL_MAGIC, 10, struct nvgpu_timeslice_args) | ||
971 | 973 | ||
972 | #define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \ | 974 | #define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \ |
973 | sizeof(struct nvgpu_event_id_ctrl_args) | 975 | sizeof(struct nvgpu_event_id_ctrl_args) |
974 | #define NVGPU_TSG_IOCTL_LAST \ | 976 | #define NVGPU_TSG_IOCTL_LAST \ |
975 | _IOC_NR(NVGPU_IOCTL_TSG_SET_TIMESLICE) | 977 | _IOC_NR(NVGPU_IOCTL_TSG_GET_TIMESLICE) |
976 | 978 | ||
977 | 979 | ||
978 | /* | 980 | /* |
@@ -1632,9 +1634,11 @@ struct nvgpu_boosted_ctx_args { | |||
1632 | _IOW(NVGPU_IOCTL_MAGIC, 123, struct nvgpu_alloc_gpfifo_ex_args) | 1634 | _IOW(NVGPU_IOCTL_MAGIC, 123, struct nvgpu_alloc_gpfifo_ex_args) |
1633 | #define NVGPU_IOCTL_CHANNEL_SET_BOOSTED_CTX \ | 1635 | #define NVGPU_IOCTL_CHANNEL_SET_BOOSTED_CTX \ |
1634 | _IOW(NVGPU_IOCTL_MAGIC, 124, struct nvgpu_boosted_ctx_args) | 1636 | _IOW(NVGPU_IOCTL_MAGIC, 124, struct nvgpu_boosted_ctx_args) |
1637 | #define NVGPU_IOCTL_CHANNEL_GET_TIMESLICE \ | ||
1638 | _IOW(NVGPU_IOCTL_MAGIC, 125, struct nvgpu_timeslice_args) | ||
1635 | 1639 | ||
1636 | #define NVGPU_IOCTL_CHANNEL_LAST \ | 1640 | #define NVGPU_IOCTL_CHANNEL_LAST \ |
1637 | _IOC_NR(NVGPU_IOCTL_CHANNEL_SET_BOOSTED_CTX) | 1641 | _IOC_NR(NVGPU_IOCTL_CHANNEL_GET_TIMESLICE) |
1638 | #define NVGPU_IOCTL_CHANNEL_MAX_ARG_SIZE sizeof(struct nvgpu_alloc_gpfifo_ex_args) | 1642 | #define NVGPU_IOCTL_CHANNEL_MAX_ARG_SIZE sizeof(struct nvgpu_alloc_gpfifo_ex_args) |
1639 | 1643 | ||
1640 | /* | 1644 | /* |