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/vgpu/fifo_vgpu.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/vgpu/fifo_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 19 |
1 files changed, 0 insertions, 19 deletions
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) | |||
607 | return 0; | 607 | return 0; |
608 | } | 608 | } |
609 | 609 | ||
610 | int vgpu_channel_set_priority(struct channel_gk20a *ch, u32 priority) | ||
611 | { | ||
612 | struct tegra_vgpu_cmd_msg msg; | ||
613 | struct tegra_vgpu_channel_priority_params *p = | ||
614 | &msg.params.channel_priority; | ||
615 | int err; | ||
616 | |||
617 | gk20a_dbg_info("channel %d set priority %u", ch->chid, priority); | ||
618 | |||
619 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_SET_PRIORITY; | ||
620 | msg.handle = vgpu_get_handle(ch->g); | ||
621 | p->handle = ch->virt_ctx; | ||
622 | p->priority = priority; | ||
623 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); | ||
624 | WARN_ON(err || msg.ret); | ||
625 | |||
626 | return err ? err : msg.ret; | ||
627 | } | ||
628 | |||
629 | static int vgpu_fifo_tsg_set_runlist_interleave(struct gk20a *g, | 610 | static int vgpu_fifo_tsg_set_runlist_interleave(struct gk20a *g, |
630 | u32 tsgid, | 611 | u32 tsgid, |
631 | u32 runlist_id, | 612 | u32 runlist_id, |