summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2018-04-20 10:10:16 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-04-24 14:10:48 -0400
commitfc1ebe57f506c658eb771c101f256b02e3f351ce (patch)
tree25de8cf88b99d3612d5008d6cd7d27c3349e8904 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent65a543f5cac32686b6b2a57b93e285de6aae4ece (diff)
gpu: nvgpu: add HALs to submit and wait for runlist
Add below two new HALs gops.fifo.runlist_hw_submit() to submit a new runlist to hardware gops.fifo.runlist_wait_pending() to wait until runlist write is successful Set existing API gk20a_fifo_runlist_wait_pending() to gops.fifo.runlist_wait_pending HAL Add new API gk20a_fifo_runlist_hw_submit() which submits the runlist to h/w and set it to gops.fifo.runlist_hw_submit HAL Jira NVGPUT-20 Change-Id: Ic23f7d947e30883aca0b536de818e79e14733195 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1700548 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 57854e11..ba27f5d9 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -669,6 +669,9 @@ struct gpu_ops {
669 u64 *base_gpuva, u32 *sync_size); 669 u64 *base_gpuva, u32 *sync_size);
670 u32 (*get_syncpt_incr_per_release)(void); 670 u32 (*get_syncpt_incr_per_release)(void);
671#endif 671#endif
672 void (*runlist_hw_submit)(struct gk20a *g, u32 runlist_id,
673 u32 count, u32 buffer_index);
674 int (*runlist_wait_pending)(struct gk20a *g, u32 runlist_id);
672 } fifo; 675 } fifo;
673 struct pmu_v { 676 struct pmu_v {
674 u32 (*get_pmu_cmdline_args_size)(struct nvgpu_pmu *pmu); 677 u32 (*get_pmu_cmdline_args_size)(struct nvgpu_pmu *pmu);