From 3ff666c4b97c5ad869aefe0d9c335c187962c20e Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Wed, 15 Nov 2017 01:34:59 -0800 Subject: gpu: nvgpu: deprecate TSG/CHANNEL_SET_PRIORITY IOCTLs TSG/CHANNEL_SET_PRIORITY IOCTLs are deprecated and user space should be using combination of timeslice and interleave levels to decide the priority Hence remove the IOCTLs and all corresponding APIs Jira NVGPU-393 Change-Id: I7cf0785689269536eca0c278c774b0e9e74f8c2f Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1598581 Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/uapi/linux/nvgpu.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'include/uapi/linux/nvgpu.h') diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 9d1a5bdb..20a6de29 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -1008,8 +1008,6 @@ struct nvgpu_gpu_set_event_filter_args { _IO(NVGPU_TSG_IOCTL_MAGIC, 4) #define NVGPU_IOCTL_TSG_PREEMPT \ _IO(NVGPU_TSG_IOCTL_MAGIC, 5) -#define NVGPU_IOCTL_TSG_SET_PRIORITY \ - _IOW(NVGPU_TSG_IOCTL_MAGIC, 6, struct nvgpu_set_priority_args) #define NVGPU_IOCTL_TSG_EVENT_ID_CTRL \ _IOWR(NVGPU_TSG_IOCTL_MAGIC, 7, struct nvgpu_event_id_ctrl_args) #define NVGPU_IOCTL_TSG_SET_RUNLIST_INTERLEAVE \ @@ -1356,9 +1354,6 @@ struct nvgpu_dbg_gpu_profiler_reserve_args { #define NVGPU_IOCTL_MAGIC 'H' #define NVGPU_NO_TIMEOUT ((u32)~0) -#define NVGPU_PRIORITY_LOW 50 -#define NVGPU_PRIORITY_MEDIUM 100 -#define NVGPU_PRIORITY_HIGH 150 #define NVGPU_TIMEOUT_FLAG_DISABLE_DUMP 0 /* this is also the hardware memory format */ @@ -1499,10 +1494,6 @@ struct nvgpu_set_timeout_ex_args { __u32 flags; }; -struct nvgpu_set_priority_args { - __u32 priority; -} __packed; - #define NVGPU_ZCULL_MODE_GLOBAL 0 #define NVGPU_ZCULL_MODE_NO_CTXSW 1 #define NVGPU_ZCULL_MODE_SEPARATE_BUFFER 2 @@ -1630,8 +1621,6 @@ struct nvgpu_boosted_ctx_args { _IOW(NVGPU_IOCTL_MAGIC, 11, struct nvgpu_set_timeout_args) #define NVGPU_IOCTL_CHANNEL_GET_TIMEDOUT \ _IOR(NVGPU_IOCTL_MAGIC, 12, struct nvgpu_get_param_args) -#define NVGPU_IOCTL_CHANNEL_SET_PRIORITY \ - _IOW(NVGPU_IOCTL_MAGIC, 13, struct nvgpu_set_priority_args) #define NVGPU_IOCTL_CHANNEL_SET_TIMEOUT_EX \ _IOWR(NVGPU_IOCTL_MAGIC, 18, struct nvgpu_set_timeout_ex_args) #define NVGPU_IOCTL_CHANNEL_ALLOC_GPFIFO \ -- cgit v1.2.2