From 1409d216e536f742700f1ef23a17481509024799 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 13 Jun 2016 08:27:30 -0700 Subject: gpu: nvgpu: Fix gk20a_busy() in debug dump When debug dump is called from an interrupt thread, we do not want to call gk20a_busy() because it causes race in case rail gating is being engaged at the same time. It has to be called from all debugfs paths. Bug 200198908 Bug 1770522 Change-Id: I7eda7d029b0a59cce0320ecc1b750dc2f4d7ccf0 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1163440 GVS: Gerrit_Virtual_Submit Tested-by: Deepak Nibade Reviewed-by: Bharat Nihalani --- drivers/gpu/nvgpu/gk20a/debug_gk20a.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.h b/drivers/gpu/nvgpu/gk20a/debug_gk20a.h index 1044f881..e83076b8 100644 --- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.h @@ -37,5 +37,7 @@ void gk20a_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o); int gk20a_gr_debug_dump(struct device *pdev); void gk20a_debug_init(struct device *dev); void gk20a_init_debug_ops(struct gpu_ops *gops); +void gk20a_debug_dump_device(void *dev); + #endif -- cgit v1.2.2