From c1b78dd65d6d3269c4b25d38fc57975acca02a1a Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 8 May 2018 06:07:09 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1725977 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gv11b/fb_gv11b.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/gv11b/fb_gv11b.c') diff --git a/drivers/gpu/nvgpu/gv11b/fb_gv11b.c b/drivers/gpu/nvgpu/gv11b/fb_gv11b.c index 47369523..bba47471 100644 --- a/drivers/gpu/nvgpu/gv11b/fb_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fb_gv11b.c @@ -1214,7 +1214,7 @@ void gv11b_fb_handle_nonreplay_fault_overflow(struct gk20a *g, static void gv11b_fb_handle_bar2_fault(struct gk20a *g, struct mmu_fault_info *mmfault, u32 fault_status) { - gv11b_fb_disable_hub_intr(g, STALL_REG_INDEX, + g->ops.fb.disable_hub_intr(g, STALL_REG_INDEX, HUB_INTR_TYPE_NONREPLAY | HUB_INTR_TYPE_REPLAY); @@ -1235,7 +1235,7 @@ static void gv11b_fb_handle_bar2_fault(struct gk20a *g, gk20a_channel_put(mmfault->refch); mmfault->refch = NULL; } - gv11b_fb_enable_hub_intr(g, STALL_REG_INDEX, + g->ops.fb.enable_hub_intr(g, STALL_REG_INDEX, HUB_INTR_TYPE_NONREPLAY | HUB_INTR_TYPE_REPLAY); } @@ -1372,7 +1372,7 @@ void gv11b_fb_hub_isr(struct gk20a *g) nvgpu_info(g, "ecc uncorrected error notify"); /* disable interrupts during handling */ - gv11b_fb_disable_hub_intr(g, STALL_REG_INDEX, + g->ops.fb.disable_hub_intr(g, STALL_REG_INDEX, HUB_INTR_TYPE_ECC_UNCORRECTED); status = gk20a_readl(g, fb_mmu_l2tlb_ecc_status_r()); @@ -1388,7 +1388,7 @@ void gv11b_fb_hub_isr(struct gk20a *g) gv11b_handle_fillunit_ecc_isr(g, status); /* re-enable interrupts after handling */ - gv11b_fb_enable_hub_intr(g, STALL_REG_INDEX, + g->ops.fb.enable_hub_intr(g, STALL_REG_INDEX, HUB_INTR_TYPE_ECC_UNCORRECTED); } -- cgit v1.2.2