diff --git a/drivers/gpu/nvgpu/include/nvgpu/tsg.h b/drivers/gpu/nvgpu/include/nvgpu/tsg.h index eac03ea21..ca003517d 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/tsg.h +++ b/drivers/gpu/nvgpu/include/nvgpu/tsg.h @@ -173,19 +173,6 @@ struct nvgpu_tsg { * the TSG. */ pid_t tgid; - /** - * Number of active TPCs as requested by userspace. - * This is used while requesting for dynamic TPC PG (power gating). - * TPC PG is specific to chip. - */ - u32 num_active_tpcs; - /** Set to true if dynamic TPC PG is requested to be enabled. */ - bool tpc_pg_enabled; - /** - * Set to true if dynamic TPC PG is enabled and #num_active_tpcs is - * non-zero. - */ - bool tpc_num_initialized; /** * Set to true if tsgid is acquired else set to false. * This is protected by #nvgpu_fifo.tsg_inuse_mutex. Acquire/Release diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_tsg.c b/drivers/gpu/nvgpu/os/linux/ioctl_tsg.c index b36a293de..c62d9415d 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_tsg.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_tsg.c @@ -93,7 +93,6 @@ static int gk20a_tsg_ioctl_bind_channel_ex(struct gk20a *g, struct nvgpu_tsg *tsg = priv->tsg; struct nvgpu_sched_ctrl *sched = &g->sched_ctrl; struct nvgpu_channel *ch; - struct nvgpu_gr_config *gr_config = nvgpu_gr_get_config_ptr(g); u32 max_subctx_count; u32 gpu_instance_id; int err = 0; @@ -117,21 +116,6 @@ static int gk20a_tsg_ioctl_bind_channel_ex(struct gk20a *g, goto idle; } - if (arg->tpc_pg_enabled && (!tsg->tpc_num_initialized)) { - if ((arg->num_active_tpcs > - nvgpu_gr_config_get_max_tpc_count(gr_config)) || - !(arg->num_active_tpcs)) { - nvgpu_err(g, "Invalid num of active TPCs"); - err = -EINVAL; - goto ch_put; - } - tsg->tpc_num_initialized = true; - tsg->num_active_tpcs = arg->num_active_tpcs; - tsg->tpc_pg_enabled = true; - } else { - tsg->tpc_pg_enabled = false; nvgpu_log(g, gpu_dbg_info, "dynamic TPC-PG not enabled"); - } - gpu_instance_id = nvgpu_get_gpu_instance_id_from_cdev(g, priv->cdev); nvgpu_assert(gpu_instance_id < g->mig.num_gpu_instances); diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 235d1d798..414376ffc 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -35,9 +35,7 @@ struct nvgpu_tsg_bind_channel_ex_args { /* in: VEID in Volta */ __u32 subcontext_id; - __u32 num_active_tpcs; - __u8 tpc_pg_enabled; - __u8 reserved[11]; + __u8 reserved[16]; }; /*