diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-11-15 04:34:59 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-15 11:46:09 -0500 |
commit | 3ff666c4b97c5ad869aefe0d9c335c187962c20e (patch) | |
tree | 42ad94e7e5b877154a482e07746bb45e6a0b0d6c /drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | |
parent | 592a31fd925d84622602b235647e9b50e2d34f47 (diff) |
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 <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1598581
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c index 5af01a05..636ee8a0 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | |||
@@ -200,29 +200,6 @@ int gk20a_init_tsg_support(struct gk20a *g, u32 tsgid) | |||
200 | return 0; | 200 | return 0; |
201 | } | 201 | } |
202 | 202 | ||
203 | int gk20a_tsg_set_priority(struct gk20a *g, struct tsg_gk20a *tsg, | ||
204 | u32 priority) | ||
205 | { | ||
206 | u32 timeslice_us; | ||
207 | |||
208 | switch (priority) { | ||
209 | case NVGPU_PRIORITY_LOW: | ||
210 | timeslice_us = g->timeslice_low_priority_us; | ||
211 | break; | ||
212 | case NVGPU_PRIORITY_MEDIUM: | ||
213 | timeslice_us = g->timeslice_medium_priority_us; | ||
214 | break; | ||
215 | case NVGPU_PRIORITY_HIGH: | ||
216 | timeslice_us = g->timeslice_high_priority_us; | ||
217 | break; | ||
218 | default: | ||
219 | pr_err("Unsupported priority"); | ||
220 | return -EINVAL; | ||
221 | } | ||
222 | |||
223 | return gk20a_tsg_set_timeslice(tsg, timeslice_us); | ||
224 | } | ||
225 | |||
226 | int gk20a_tsg_set_runlist_interleave(struct tsg_gk20a *tsg, u32 level) | 203 | int gk20a_tsg_set_runlist_interleave(struct tsg_gk20a *tsg, u32 level) |
227 | { | 204 | { |
228 | struct gk20a *g = tsg->g; | 205 | struct gk20a *g = tsg->g; |