diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-09-13 08:02:21 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-15 15:48:20 -0400 |
commit | 7d6d0405311337456f50d6fa032963c18d2c9f9f (patch) | |
tree | f49b3eaca16726ef471a37b92130c54f04625d03 /drivers/gpu/nvgpu/gp10b | |
parent | ef6ea3475cac013c174905ab4f7f187700ae2a33 (diff) |
gpu: nvgpu: support platform specific TSG enable/disable
Add platform specific operations to enable/disable a TSG and use them instead
of directly calling enable/disable APIs
For gm20b/gp106/gp10b we continue to use gk20a_enable_tsg() and
gk20a_disable_tsg() as platform specific operations
Bug 1739362
Change-Id: I2dd0f38c8303757e8c7a47d8da0e30a790e514f0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1560635
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hal_gp10b.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c index 3efee9e2..ffb6fe24 100644 --- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "gk20a/fb_gk20a.h" | 28 | #include "gk20a/fb_gk20a.h" |
29 | #include "gk20a/pmu_gk20a.h" | 29 | #include "gk20a/pmu_gk20a.h" |
30 | #include "gk20a/gr_gk20a.h" | 30 | #include "gk20a/gr_gk20a.h" |
31 | #include "gk20a/tsg_gk20a.h" | ||
31 | 32 | ||
32 | #include "gp10b/gr_gp10b.h" | 33 | #include "gp10b/gr_gp10b.h" |
33 | #include "gp10b/fecs_trace_gp10b.h" | 34 | #include "gp10b/fecs_trace_gp10b.h" |
@@ -386,6 +387,8 @@ static const struct gpu_ops gp10b_ops = { | |||
386 | .pbdma_acquire_val = gk20a_fifo_pbdma_acquire_val, | 387 | .pbdma_acquire_val = gk20a_fifo_pbdma_acquire_val, |
387 | .preempt_channel = gk20a_fifo_preempt_channel, | 388 | .preempt_channel = gk20a_fifo_preempt_channel, |
388 | .preempt_tsg = gk20a_fifo_preempt_tsg, | 389 | .preempt_tsg = gk20a_fifo_preempt_tsg, |
390 | .enable_tsg = gk20a_enable_tsg, | ||
391 | .disable_tsg = gk20a_disable_tsg, | ||
389 | .reschedule_runlist = gk20a_fifo_reschedule_runlist, | 392 | .reschedule_runlist = gk20a_fifo_reschedule_runlist, |
390 | .update_runlist = gk20a_fifo_update_runlist, | 393 | .update_runlist = gk20a_fifo_update_runlist, |
391 | .trigger_mmu_fault = gm20b_fifo_trigger_mmu_fault, | 394 | .trigger_mmu_fault = gm20b_fifo_trigger_mmu_fault, |