From 3a5fd2399cabc0c268c6a3c518b698be9d08e07b Mon Sep 17 00:00:00 2001 From: Aparna Das Date: Tue, 10 Jul 2018 14:48:27 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1776387 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/mm/mm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/common/mm') 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) g->ops.fb.disable_hub_intr(g); } + if (g->ops.mm.mmu_fault_disable_hw != NULL) { + g->ops.mm.mmu_fault_disable_hw(g); + } + nvgpu_log_info(g, "MM suspend done!"); return 0; -- cgit v1.2.2