diff options
author | Richard Zhao <rizhao@nvidia.com> | 2016-03-31 14:16:23 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-31 13:47:22 -0400 |
commit | d707c5a444e024e1184213a75f44a73dbb1707d2 (patch) | |
tree | 09711370df9d9078e4f604e60983877bbf30b9de /drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | |
parent | a71ce831fbbca3ba8602e0b07ecd630c4a39f376 (diff) |
gpu: nvgpu: add tsg support for vgpu
- make tsg_gk20a.c call HAL for enable/disable channels
- add preempt_tsg HAL callbacks
- add tsg bind/unbind channel HAL callbacks
- add according tsg callbacks for vgpu
Bug 1702773
JIRA VFND-1003
Change-Id: I2cba74b3ebd3920ef09219a168e6433d9574dbe8
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/1144932
(cherry picked from commit c3787de7d38651d46969348f5acae2ba86b31ec7)
Reviewed-on: http://git-master/r/1126942
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/fifo_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c index eaa22dc2..bb873bcc 100644 --- a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | |||
@@ -142,6 +142,7 @@ void gm20b_init_fifo(struct gpu_ops *gops) | |||
142 | gops->fifo.channel_set_timeslice = gk20a_channel_set_timeslice; | 142 | gops->fifo.channel_set_timeslice = gk20a_channel_set_timeslice; |
143 | 143 | ||
144 | gops->fifo.preempt_channel = gk20a_fifo_preempt_channel; | 144 | gops->fifo.preempt_channel = gk20a_fifo_preempt_channel; |
145 | gops->fifo.preempt_tsg = gk20a_fifo_preempt_tsg; | ||
145 | gops->fifo.update_runlist = gk20a_fifo_update_runlist; | 146 | gops->fifo.update_runlist = gk20a_fifo_update_runlist; |
146 | gops->fifo.trigger_mmu_fault = gm20b_fifo_trigger_mmu_fault; | 147 | gops->fifo.trigger_mmu_fault = gm20b_fifo_trigger_mmu_fault; |
147 | gops->fifo.wait_engine_idle = gk20a_fifo_wait_engine_idle; | 148 | gops->fifo.wait_engine_idle = gk20a_fifo_wait_engine_idle; |