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 --- drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index 1ea7d6b3..648a8c86 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c @@ -3962,32 +3962,6 @@ int gk20a_fifo_set_timeslice(struct channel_gk20a *ch, u32 timeslice) return channel_gk20a_set_schedule_params(ch); } -int gk20a_fifo_set_priority(struct channel_gk20a *ch, u32 priority) -{ - if (gk20a_is_channel_marked_as_tsg(ch)) { - nvgpu_err(ch->g, "invalid operation for TSG!"); - return -EINVAL; - } - - /* set priority of graphics channel */ - switch (priority) { - case NVGPU_PRIORITY_LOW: - ch->timeslice_us = ch->g->timeslice_low_priority_us; - break; - case NVGPU_PRIORITY_MEDIUM: - ch->timeslice_us = ch->g->timeslice_medium_priority_us; - break; - case NVGPU_PRIORITY_HIGH: - ch->timeslice_us = ch->g->timeslice_high_priority_us; - break; - default: - pr_err("Unsupported priority"); - return -EINVAL; - } - - return channel_gk20a_set_schedule_params(ch); -} - void gk20a_fifo_setup_ramfc_for_privileged_channel(struct channel_gk20a *c) { struct gk20a *g = c->g; -- cgit v1.2.2