diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-04-20 10:10:16 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-24 14:10:48 -0400 |
commit | fc1ebe57f506c658eb771c101f256b02e3f351ce (patch) | |
tree | 25de8cf88b99d3612d5008d6cd7d27c3349e8904 /drivers/gpu/nvgpu/gm20b | |
parent | 65a543f5cac32686b6b2a57b93e285de6aae4ece (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/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index 0a58445f..9fc3a494 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -461,6 +461,8 @@ static const struct gpu_ops gm20b_ops = { | |||
461 | .get_syncpt_incr_cmd_size = gk20a_fifo_get_syncpt_incr_cmd_size, | 461 | .get_syncpt_incr_cmd_size = gk20a_fifo_get_syncpt_incr_cmd_size, |
462 | .get_sync_ro_map = NULL, | 462 | .get_sync_ro_map = NULL, |
463 | #endif | 463 | #endif |
464 | .runlist_hw_submit = gk20a_fifo_runlist_hw_submit, | ||
465 | .runlist_wait_pending = gk20a_fifo_runlist_wait_pending, | ||
464 | }, | 466 | }, |
465 | .gr_ctx = { | 467 | .gr_ctx = { |
466 | .get_netlist_name = gr_gm20b_get_netlist_name, | 468 | .get_netlist_name = gr_gm20b_get_netlist_name, |