From 9cbb9542660c32d9e9f4853a341ed6c5ab52a4d8 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 22 Jan 2018 09:02:21 -0800 Subject: gpu: nvgpu: Report mailbox id and value on ucode timeout When we detect a timeout waiting for ctxsw ucode method to complete, we print an error. The error does not detail the event we are waiting which makes debugging difficult. Add the missing mailbox id and value to the error. Bug 2049965 Change-Id: I45204a2d6f1f39919a0133b1e0867213e1a5b671 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1643709 Reviewed-by: svc-mobile-coverity Reviewed-by: Thomas Fleury Reviewed-by: Seema Khowala GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index f8af091b..0932778d 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -524,7 +524,8 @@ int gr_gk20a_ctx_wait_ucode(struct gk20a *g, u32 mailbox_id, if (check == WAIT_UCODE_TIMEOUT) { nvgpu_err(g, - "timeout waiting on ucode response"); + "timeout waiting on mailbox=%d value=0x%08x", + mailbox_id, reg); gk20a_fecs_dump_falcon_stats(g); gk20a_gr_debug_dump(g); return -1; -- cgit v1.2.2