summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu
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/vgpu
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/vgpu')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c2
-rw-r--r--drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
index 9d575061..73543baf 100644
--- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
+++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
@@ -372,6 +372,8 @@ static const struct gpu_ops vgpu_gp10b_ops = {
372#endif 372#endif
373 .resetup_ramfc = NULL, 373 .resetup_ramfc = NULL,
374 .device_info_fault_id = top_device_info_data_fault_id_enum_v, 374 .device_info_fault_id = top_device_info_data_fault_id_enum_v,
375 .runlist_hw_submit = gk20a_fifo_runlist_hw_submit,
376 .runlist_wait_pending = gk20a_fifo_runlist_wait_pending,
375 }, 377 },
376 .gr_ctx = { 378 .gr_ctx = {
377 .get_netlist_name = gr_gp10b_get_netlist_name, 379 .get_netlist_name = gr_gp10b_get_netlist_name,
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
index d07d0229..4dc3a150 100644
--- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
+++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
@@ -419,6 +419,8 @@ static const struct gpu_ops vgpu_gv11b_ops = {
419 .free_channel_ctx_header = vgpu_gv11b_free_subctx_header, 419 .free_channel_ctx_header = vgpu_gv11b_free_subctx_header,
420 .preempt_ch_tsg = gv11b_fifo_preempt_ch_tsg, 420 .preempt_ch_tsg = gv11b_fifo_preempt_ch_tsg,
421 .handle_ctxsw_timeout = gv11b_fifo_handle_ctxsw_timeout, 421 .handle_ctxsw_timeout = gv11b_fifo_handle_ctxsw_timeout,
422 .runlist_hw_submit = gk20a_fifo_runlist_hw_submit,
423 .runlist_wait_pending = gk20a_fifo_runlist_wait_pending,
422 }, 424 },
423 .gr_ctx = { 425 .gr_ctx = {
424 .get_netlist_name = gr_gv11b_get_netlist_name, 426 .get_netlist_name = gr_gv11b_get_netlist_name,