summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2017-03-17 14:30:57 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-26 17:07:12 -0400
commitc0822cb22e13204e06b145ae950a33d45e95918e (patch)
tree1623fcd5db0d24190e6d93287742c8d2fee14794 /drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
parente21e6e947b334cd16cc92c41953bf3c0153b1508 (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/gk20a/fifo_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
index 7351478a..80f1853c 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
@@ -405,4 +405,20 @@ unsigned int gk20a_fifo_handle_pbdma_intr_0(struct gk20a *g, u32 pbdma_id,
405 u32 pbdma_intr_0, u32 *handled, u32 *error_notifier); 405 u32 pbdma_intr_0, u32 *handled, u32 *error_notifier);
406 406
407u32 gk20a_fifo_default_timeslice_us(struct gk20a *g); 407u32 gk20a_fifo_default_timeslice_us(struct gk20a *g);
408
409#ifdef CONFIG_TEGRA_GK20A_NVHOST
410void gk20a_fifo_add_syncpt_wait_cmd(struct gk20a *g,
411 struct priv_cmd_entry *cmd, u32 off,
412 u32 id, u32 thresh, u64 gpu_va);
413u32 gk20a_fifo_get_syncpt_wait_cmd_size(void);
414void gk20a_fifo_add_syncpt_incr_cmd(struct gk20a *g,
415 bool wfi_cmd, struct priv_cmd_entry *cmd,
416 u32 id, u64 gpu_va);
417u32 gk20a_fifo_get_syncpt_incr_cmd_size(bool wfi_cmd);
418void gk20a_fifo_free_syncpt_buf(struct channel_gk20a *c,
419 struct nvgpu_mem *syncpt_buf);
420int gk20a_fifo_alloc_syncpt_buf(struct channel_gk20a *c,
421 u32 syncpt_id, struct nvgpu_mem *syncpt_buf);
422#endif
423
408#endif /*__GR_GK20A_H__*/ 424#endif /*__GR_GK20A_H__*/