mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: move enable/disable from fifo to tsg
Moved enable/disable HALs from fifo to tsg: - tsg.enable - tsg.disable gk20a_tsg_enable and gv11b_tsg_enable are moved to HAL, since they are chip specific, even though they do not directly access chip registers. Removed vgpu_gv11b_tsg_enable as it was identical to gv11b_tsg_enable. Changed gv11b_fifo_locked_abort_runlist_active_tsgs and gv11b_fifo_teardown_ch_tsg to use tsg.enable HAL instead of calling directly gk20a_disable_tsg HAL implementation. Jira NVGPU-2979 Change-Id: I721650c64dcf8cd158652e362292af45df43819f Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2083156 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
a2a676669f
commit
b8ceeae21e
@@ -682,7 +682,7 @@ long nvgpu_ioctl_tsg_dev_ioctl(struct file *filp, unsigned int cmd,
|
||||
"failed to host gk20a for ioctl cmd: 0x%x", cmd);
|
||||
return err;
|
||||
}
|
||||
g->ops.fifo.enable_tsg(tsg);
|
||||
g->ops.tsg.enable(tsg);
|
||||
gk20a_idle(g);
|
||||
break;
|
||||
}
|
||||
@@ -695,7 +695,7 @@ long nvgpu_ioctl_tsg_dev_ioctl(struct file *filp, unsigned int cmd,
|
||||
"failed to host gk20a for ioctl cmd: 0x%x", cmd);
|
||||
return err;
|
||||
}
|
||||
g->ops.fifo.disable_tsg(tsg);
|
||||
g->ops.tsg.disable(tsg);
|
||||
gk20a_idle(g);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user