summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index ed48253f..c8b094cf 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -93,6 +93,17 @@ int gk20a_detect_chip(struct gk20a *g)
93 return gpu_init_hal(g); 93 return gpu_init_hal(g);
94} 94}
95 95
96static void gk20a_mask_interrupts(struct gk20a *g)
97{
98 if (g->ops.mc.intr_mask != NULL) {
99 g->ops.mc.intr_mask(g);
100 }
101
102 if (g->ops.mc.log_pending_intrs != NULL) {
103 g->ops.mc.log_pending_intrs(g);
104 }
105}
106
96int gk20a_prepare_poweroff(struct gk20a *g) 107int gk20a_prepare_poweroff(struct gk20a *g)
97{ 108{
98 int ret = 0; 109 int ret = 0;
@@ -122,6 +133,8 @@ int gk20a_prepare_poweroff(struct gk20a *g)
122 if (nvgpu_is_enabled(g, NVGPU_PMU_PSTATE)) 133 if (nvgpu_is_enabled(g, NVGPU_PMU_PSTATE))
123 gk20a_deinit_pstate_support(g); 134 gk20a_deinit_pstate_support(g);
124 135
136 gk20a_mask_interrupts(g);
137
125 g->power_on = false; 138 g->power_on = false;
126 139
127 return ret; 140 return ret;