summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b
diff options
context:
space:
mode:
authorAparna Das <aparnad@nvidia.com>2018-02-15 18:39:10 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-06 17:52:21 -0500
commit98d91dd2609faadfa4aa9aafad5e295c924ae08f (patch)
tree40daaafbb2756a1defa0f299a8881799b6b0161c /drivers/gpu/nvgpu/gp10b
parentd654ab48638b0160ccef6f7be0faa8b3b3ee1fab (diff)
gpu: nvgpu: add hal op to handle post event id
The vserver variant for gr post event id needs different functionality to send interrupt to VM. Add HAL operation to allow overriding vserver usecase. Jira VQRM-2982 Change-Id: I915d089ef751023968c1e8ab181c21afeec997a5 Signed-off-by: Aparna Das <aparnad@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1658382 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.c8
-rw-r--r--drivers/gpu/nvgpu/gp10b/hal_gp10b.c1
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
index 17685f59..8cbda409 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
@@ -1814,8 +1814,8 @@ int gr_gp10b_set_cilp_preempt_pending(struct gk20a *g,
1814 1814
1815 tsg = &g->fifo.tsg[fault_ch->tsgid]; 1815 tsg = &g->fifo.tsg[fault_ch->tsgid];
1816 1816
1817 gk20a_tsg_event_id_post_event(tsg, 1817 g->ops.fifo.post_event_id(tsg,
1818 NVGPU_EVENT_ID_CILP_PREEMPTION_STARTED); 1818 NVGPU_EVENT_ID_CILP_PREEMPTION_STARTED);
1819 1819
1820 return 0; 1820 return 0;
1821} 1821}
@@ -2036,8 +2036,8 @@ int gr_gp10b_handle_fecs_error(struct gk20a *g,
2036 2036
2037 tsg = &g->fifo.tsg[ch->tsgid]; 2037 tsg = &g->fifo.tsg[ch->tsgid];
2038 2038
2039 gk20a_tsg_event_id_post_event(tsg, 2039 g->ops.fifo.post_event_id(tsg,
2040 NVGPU_EVENT_ID_CILP_PREEMPTION_COMPLETE); 2040 NVGPU_EVENT_ID_CILP_PREEMPTION_COMPLETE);
2041 2041
2042 gk20a_channel_put(ch); 2042 gk20a_channel_put(ch);
2043 } 2043 }
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
index 65fdf714..783dfcdd 100644
--- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
@@ -464,6 +464,7 @@ static const struct gpu_ops gp10b_ops = {
464 .handle_pbdma_intr_1 = gk20a_fifo_handle_pbdma_intr_1, 464 .handle_pbdma_intr_1 = gk20a_fifo_handle_pbdma_intr_1,
465 .tsg_bind_channel = gk20a_tsg_bind_channel, 465 .tsg_bind_channel = gk20a_tsg_bind_channel,
466 .tsg_unbind_channel = gk20a_fifo_tsg_unbind_channel, 466 .tsg_unbind_channel = gk20a_fifo_tsg_unbind_channel,
467 .post_event_id = gk20a_tsg_event_id_post_event,
467#ifdef CONFIG_TEGRA_GK20A_NVHOST 468#ifdef CONFIG_TEGRA_GK20A_NVHOST
468 .alloc_syncpt_buf = gk20a_fifo_alloc_syncpt_buf, 469 .alloc_syncpt_buf = gk20a_fifo_alloc_syncpt_buf,
469 .free_syncpt_buf = gk20a_fifo_free_syncpt_buf, 470 .free_syncpt_buf = gk20a_fifo_free_syncpt_buf,