From b3bda98fbdd8673dc31073bddee09386cfc3622c Mon Sep 17 00:00:00 2001 From: Sagar Kamble Date: Tue, 30 Oct 2018 12:34:17 +0530 Subject: gpu: nvgpu: disable/clear PMU IRQs on power off While tearing down PMU state during power off, nvgpu doesn't disable the PMU interrupts. Disable them unconditionally. Bug 200457485 Change-Id: Ia2462d879c1e7bbb4b5e8295ce211c38567c13e5 Signed-off-by: Sagar Kamble Reviewed-on: https://git-master.nvidia.com/r/1939025 Reviewed-by: Mahantesh Kumbar Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-misra-checker Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions Reviewed-on: https://git-master.nvidia.com/r/1951361 Reviewed-by: Bibek Basu Tested-by: Bibek Basu --- drivers/gpu/nvgpu/common/pmu/pmu.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/common/pmu/pmu.c b/drivers/gpu/nvgpu/common/pmu/pmu.c index fe36ab87..9bcfa14e 100644 --- a/drivers/gpu/nvgpu/common/pmu/pmu.c +++ b/drivers/gpu/nvgpu/common/pmu/pmu.c @@ -565,6 +565,7 @@ int nvgpu_pmu_destroy(struct gk20a *g) g->pg_gating_cnt += pg_stat_data.gating_cnt; nvgpu_mutex_acquire(&pmu->isr_mutex); + g->ops.pmu.pmu_enable_irq(pmu, false); pmu->isr_enabled = false; nvgpu_mutex_release(&pmu->isr_mutex); -- cgit v1.2.2