diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-05-08 09:07:09 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-24 07:38:19 -0400 |
commit | c1b78dd65d6d3269c4b25d38fc57975acca02a1a (patch) | |
tree | 67258aba47e4c0d1fabd214509fc0dd8aa1e943e /drivers/gpu/nvgpu/gv11b/mm_gv11b.c | |
parent | 2a0f678257eed156293569a1c00b29fe7d4e956d (diff) |
gpu: nvgpu: add HALs to enable/disable hub interrupts
Add below two new HALs
gops.fb.enable_hub_intr() to enable hub interrupts
gops.fb.disable_hub_intr() to disable hub interrupts
Set existing APIs gv11b_fb_enable/disable_hub_intr() to these HALs
Call the HALs everywhere instead of calling the APIs directly
Jira NVGPUT-44
Change-Id: Id299c6d228733ed365a71be6b180186776cc1306
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1725977
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/mm_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/mm_gv11b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c index f4084ad6..357b15d7 100644 --- a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c | |||
@@ -76,7 +76,7 @@ void gv11b_mm_fault_info_mem_destroy(struct gk20a *g) | |||
76 | 76 | ||
77 | nvgpu_mutex_acquire(&g->mm.hub_isr_mutex); | 77 | nvgpu_mutex_acquire(&g->mm.hub_isr_mutex); |
78 | 78 | ||
79 | gv11b_fb_disable_hub_intr(g, STALL_REG_INDEX, HUB_INTR_TYPE_OTHER | | 79 | g->ops.fb.disable_hub_intr(g, STALL_REG_INDEX, HUB_INTR_TYPE_OTHER | |
80 | HUB_INTR_TYPE_NONREPLAY | HUB_INTR_TYPE_REPLAY); | 80 | HUB_INTR_TYPE_NONREPLAY | HUB_INTR_TYPE_REPLAY); |
81 | 81 | ||
82 | nvgpu_kfree(g, g->mm.fault_info[FAULT_TYPE_OTHER_AND_NONREPLAY]); | 82 | nvgpu_kfree(g, g->mm.fault_info[FAULT_TYPE_OTHER_AND_NONREPLAY]); |
@@ -163,7 +163,7 @@ static void gv11b_mm_mmu_hw_fault_buf_deinit(struct gk20a *g) | |||
163 | 163 | ||
164 | nvgpu_log_fn(g, " "); | 164 | nvgpu_log_fn(g, " "); |
165 | 165 | ||
166 | gv11b_fb_disable_hub_intr(g, STALL_REG_INDEX, HUB_INTR_TYPE_NONREPLAY | | 166 | g->ops.fb.disable_hub_intr(g, STALL_REG_INDEX, HUB_INTR_TYPE_NONREPLAY | |
167 | HUB_INTR_TYPE_REPLAY); | 167 | HUB_INTR_TYPE_REPLAY); |
168 | 168 | ||
169 | g->mm.hub_intr_types &= (~(HUB_INTR_TYPE_NONREPLAY | | 169 | g->mm.hub_intr_types &= (~(HUB_INTR_TYPE_NONREPLAY | |