From 1f4ab1b36e1240852d80ca272e8401855726db35 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Wed, 31 Oct 2018 13:20:43 -0700 Subject: [PATCH] gpu: nvgpu: Move debug dump in MMU fault handler Move this debug dump to after the regular MMU fault prints. This makes it so that the MMU fault prints happen first. That means that when you scan the log you will see the MMU fault first, then all the channel, engine, pbdma, and (potentially) host1x data. Change-Id: I9e371bb95f3c8d21df1c375ed45e1f0b78810a7c Signed-off-by: Alex Waterman Reviewed-on: https://git-master.nvidia.com/r/1940516 GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index b715e789c..c91c31ec3 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c @@ -1649,7 +1649,6 @@ static bool gk20a_fifo_handle_mmu_fault_locked( } else { fault_id = gk20a_readl(g, fifo_intr_mmu_fault_id_r()); fake_fault = false; - gk20a_debug_dump(g); } @@ -1825,6 +1824,10 @@ static bool gk20a_fifo_handle_mmu_fault_locked( } } + if (!fake_fault) { + gk20a_debug_dump(g); + } + /* clear interrupt */ gk20a_writel(g, fifo_intr_mmu_fault_id_r(), (u32)fault_id);