diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-01-22 12:02:21 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-23 14:19:10 -0500 |
commit | 9cbb9542660c32d9e9f4853a341ed6c5ab52a4d8 (patch) | |
tree | 18b54bed6dce15135fd7e5167a1614947ca01b9c | |
parent | 1b75e7277af2986bf175c31b94dcf942dca746f2 (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1643709
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
524 | 524 | ||
525 | if (check == WAIT_UCODE_TIMEOUT) { | 525 | if (check == WAIT_UCODE_TIMEOUT) { |
526 | nvgpu_err(g, | 526 | nvgpu_err(g, |
527 | "timeout waiting on ucode response"); | 527 | "timeout waiting on mailbox=%d value=0x%08x", |
528 | mailbox_id, reg); | ||
528 | gk20a_fecs_dump_falcon_stats(g); | 529 | gk20a_fecs_dump_falcon_stats(g); |
529 | gk20a_gr_debug_dump(g); | 530 | gk20a_gr_debug_dump(g); |
530 | return -1; | 531 | return -1; |