summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/mm.c
diff options
context:
space:
mode:
authorAparna Das <aparnad@nvidia.com>2018-07-10 17:48:27 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-20 01:14:58 -0400
commit3a5fd2399cabc0c268c6a3c518b698be9d08e07b (patch)
tree496292521d24794fd78ac6b643239b92ebae4f99 /drivers/gpu/nvgpu/common/mm/mm.c
parentf39ec4f9a0b40db0042418c3bfe0fee8ceb3d190 (diff)
gpu: nvgpu: disable fb fault buffer in prepare poweroff
FB fault buffer is enabled on finalize poweron. Disable the buffer in prepare poweroff. This also eliminates the need to disable the buffer in fault info mem destroy which otherwise accesses GPU registers after these are locked in prepare poweroff. Bug 200427479 Change-Id: I1ca3e6ed4417847731c09b887134f215a2ba331c Signed-off-by: Aparna Das <aparnad@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1776387 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/mm.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/mm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/mm.c b/drivers/gpu/nvgpu/common/mm/mm.c
index 2663ab43..42d708ee 100644
--- a/drivers/gpu/nvgpu/common/mm/mm.c
+++ b/drivers/gpu/nvgpu/common/mm/mm.c
@@ -117,6 +117,10 @@ int nvgpu_mm_suspend(struct gk20a *g)
117 g->ops.fb.disable_hub_intr(g); 117 g->ops.fb.disable_hub_intr(g);
118 } 118 }
119 119
120 if (g->ops.mm.mmu_fault_disable_hw != NULL) {
121 g->ops.mm.mmu_fault_disable_hw(g);
122 }
123
120 nvgpu_log_info(g, "MM suspend done!"); 124 nvgpu_log_info(g, "MM suspend done!");
121 125
122 return 0; 126 return 0;