diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-04-23 07:18:33 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-16 06:10:37 -0400 |
commit | 0301cc01f6cbfb752290bc63a2ed4eb19129c7c1 (patch) | |
tree | fafe6562b8251c88f130f6368b9a41eb622669b9 /drivers/gpu/nvgpu/gv11b | |
parent | 4ff87c7d35f34e01e138cbedb143a37ff32a8926 (diff) |
gpu: nvgpu: add HAL to insert semaphore commands
Add below new HALs
gops.fifo.add_sema_cmd() to insert HOST semaphore acquire/release methods
gops.fifo.get_sema_wait_cmd_size() to get size of acquire command buffer
gops.fifo.get_sema_incr_cmd_size() to get size of release command buffer
Separate out new API gk20a_fifo_add_sema_cmd() to implement semaphore acquire/
release sequence and set it to gops.fifo.add_sema_cmd()
Add gk20a_fifo_get_sema_wait_cmd_size() and gk20a_fifo_get_sema_incr_cmd_size()
to return respective command buffer sizes
Jira NVGPUT-16
Change-Id: Ia81a50921a6a56ebc237f2f90b137268aaa2d749
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1704490
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index c62dee26..7bfcc1dd 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -566,6 +566,9 @@ static const struct gpu_ops gv11b_ops = { | |||
566 | .runlist_hw_submit = gk20a_fifo_runlist_hw_submit, | 566 | .runlist_hw_submit = gk20a_fifo_runlist_hw_submit, |
567 | .runlist_wait_pending = gk20a_fifo_runlist_wait_pending, | 567 | .runlist_wait_pending = gk20a_fifo_runlist_wait_pending, |
568 | .ring_channel_doorbell = gv11b_ring_channel_doorbell, | 568 | .ring_channel_doorbell = gv11b_ring_channel_doorbell, |
569 | .get_sema_wait_cmd_size = gk20a_fifo_get_sema_wait_cmd_size, | ||
570 | .get_sema_incr_cmd_size = gk20a_fifo_get_sema_incr_cmd_size, | ||
571 | .add_sema_cmd = gk20a_fifo_add_sema_cmd, | ||
569 | }, | 572 | }, |
570 | .gr_ctx = { | 573 | .gr_ctx = { |
571 | .get_netlist_name = gr_gv11b_get_netlist_name, | 574 | .get_netlist_name = gr_gv11b_get_netlist_name, |