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/vgpu/fifo_vgpu.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu/fifo_vgpu.c') diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c index fa9388f2..66b2dbef 100644 --- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c @@ -607,25 +607,6 @@ int vgpu_fifo_wait_engine_idle(struct gk20a *g) return 0; } -int vgpu_channel_set_priority(struct channel_gk20a *ch, u32 priority) -{ - struct tegra_vgpu_cmd_msg msg; - struct tegra_vgpu_channel_priority_params *p = - &msg.params.channel_priority; - int err; - - gk20a_dbg_info("channel %d set priority %u", ch->chid, priority); - - msg.cmd = TEGRA_VGPU_CMD_CHANNEL_SET_PRIORITY; - msg.handle = vgpu_get_handle(ch->g); - p->handle = ch->virt_ctx; - p->priority = priority; - err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); - WARN_ON(err || msg.ret); - - return err ? err : msg.ret; -} - static int vgpu_fifo_tsg_set_runlist_interleave(struct gk20a *g, u32 tsgid, u32 runlist_id, -- cgit v1.2.2