summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100/hal_gv100.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2018-04-28 10:34:46 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-16 06:10:49 -0400
commite5000d299f84432f63b30c0bd43841046c704f04 (patch)
treeacb11e42f0d38c4801692b15be04048038d88052 /drivers/gpu/nvgpu/gv100/hal_gv100.c
parent0301cc01f6cbfb752290bc63a2ed4eb19129c7c1 (diff)
gpu: nvgpu: implement new host semaphore methods for Volta
Semaphore methods currently being used in Volta are deprecated for future chips And on Volta we support both old and new methods So replace old methods by new methods on Volta itself so that new methods get tested on silicon Implement below HALs for Volta with new semaphore methods 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 Also use new methods in these APIs gv11b_fifo_add_syncpt_wait_cmd() gv11b_fifo_add_syncpt_incr_cmd() And change corresponding APIs to reflect correct size of command buffer gv11b_fifo_get_syncpt_wait_cmd_size() gv11b_fifo_get_syncpt_incr_cmd_size() Jira NVGPUT-16 Change-Id: Ia3a37cd0560ddb54761dfea9bd28c4384cd8a11c Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1704518 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv100/hal_gv100.c')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index c64a06ca..4a710689 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -597,9 +597,9 @@ static const struct gpu_ops gv100_ops = {
597 .runlist_hw_submit = gk20a_fifo_runlist_hw_submit, 597 .runlist_hw_submit = gk20a_fifo_runlist_hw_submit,
598 .runlist_wait_pending = gk20a_fifo_runlist_wait_pending, 598 .runlist_wait_pending = gk20a_fifo_runlist_wait_pending,
599 .ring_channel_doorbell = gv11b_ring_channel_doorbell, 599 .ring_channel_doorbell = gv11b_ring_channel_doorbell,
600 .get_sema_wait_cmd_size = gk20a_fifo_get_sema_wait_cmd_size, 600 .get_sema_wait_cmd_size = gv11b_fifo_get_sema_wait_cmd_size,
601 .get_sema_incr_cmd_size = gk20a_fifo_get_sema_incr_cmd_size, 601 .get_sema_incr_cmd_size = gv11b_fifo_get_sema_incr_cmd_size,
602 .add_sema_cmd = gk20a_fifo_add_sema_cmd, 602 .add_sema_cmd = gv11b_fifo_add_sema_cmd,
603 }, 603 },
604 .gr_ctx = { 604 .gr_ctx = {
605 .get_netlist_name = gr_gv100_get_netlist_name, 605 .get_netlist_name = gr_gv100_get_netlist_name,