diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-03-17 14:30:57 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-26 17:07:12 -0400 |
commit | c0822cb22e13204e06b145ae950a33d45e95918e (patch) | |
tree | 1623fcd5db0d24190e6d93287742c8d2fee14794 /drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | |
parent | e21e6e947b334cd16cc92c41953bf3c0153b1508 (diff) |
gpu: nvgpu: add chip specific sync point support
Added support for chip specific sync point implementation.
Relevant fifo hal functions are added and updated for
legacy chips.
JIRA GPUT19X-2
Change-Id: I9a9c36d71e15c384b5e5af460cd52012f94e0b04
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1258232
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/fifo_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c index 0931d226..6fb5802b 100644 --- a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | |||
@@ -230,4 +230,14 @@ void gm20b_init_fifo(struct gpu_ops *gops) | |||
230 | gops->fifo.teardown_ch_tsg = gk20a_fifo_teardown_ch_tsg; | 230 | gops->fifo.teardown_ch_tsg = gk20a_fifo_teardown_ch_tsg; |
231 | gops->fifo.handle_sched_error = gk20a_fifo_handle_sched_error; | 231 | gops->fifo.handle_sched_error = gk20a_fifo_handle_sched_error; |
232 | gops->fifo.handle_pbdma_intr_0 = gk20a_fifo_handle_pbdma_intr_0; | 232 | gops->fifo.handle_pbdma_intr_0 = gk20a_fifo_handle_pbdma_intr_0; |
233 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | ||
234 | gops->fifo.alloc_syncpt_buf = gk20a_fifo_alloc_syncpt_buf; | ||
235 | gops->fifo.free_syncpt_buf = gk20a_fifo_free_syncpt_buf; | ||
236 | gops->fifo.add_syncpt_wait_cmd = gk20a_fifo_add_syncpt_wait_cmd; | ||
237 | gops->fifo.get_syncpt_wait_cmd_size = | ||
238 | gk20a_fifo_get_syncpt_wait_cmd_size; | ||
239 | gops->fifo.add_syncpt_incr_cmd = gk20a_fifo_add_syncpt_incr_cmd; | ||
240 | gops->fifo.get_syncpt_incr_cmd_size = | ||
241 | gk20a_fifo_get_syncpt_incr_cmd_size; | ||
242 | #endif | ||
233 | } | 243 | } |