mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
592a31fd92
commit
3ff666c4b9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user