diff options
author | Seema Khowala <seemaj@nvidia.com> | 2018-05-03 13:39:25 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-10 13:53:24 -0400 |
commit | e540bf87ae619f910572568914be8eb58192761b (patch) | |
tree | 7a2b8ee195162a87e6e782379233047d4ac80c59 /drivers/gpu/nvgpu | |
parent | c5db005b730af4a6d3d95787f5fb94ec5a2baee0 (diff) |
gpu: nvgpu: dump fecs method data and push adr
Dump fecs method data and adr if ucode times out or
errors out. This is good to have for debugging.
Change-Id: I79c4bc3bc30cfd09f273f4eb6b53863653227ecd
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1707761
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 00f26650..c7d028b2 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -567,6 +567,9 @@ int gr_gk20a_submit_fecs_method_op(struct gk20a *g, | |||
567 | op.cond.ok, op.mailbox.ok, | 567 | op.cond.ok, op.mailbox.ok, |
568 | op.cond.fail, op.mailbox.fail, | 568 | op.cond.fail, op.mailbox.fail, |
569 | sleepduringwait); | 569 | sleepduringwait); |
570 | if (ret) | ||
571 | nvgpu_err(g,"fecs method: data=0x%08x push adr=0x%08x", | ||
572 | op.method.data, op.method.addr); | ||
570 | 573 | ||
571 | nvgpu_mutex_release(&gr->fecs_mutex); | 574 | nvgpu_mutex_release(&gr->fecs_mutex); |
572 | 575 | ||
@@ -593,6 +596,9 @@ int gr_gk20a_submit_fecs_sideband_method_op(struct gk20a *g, | |||
593 | op.cond.ok, op.mailbox.ok, | 596 | op.cond.ok, op.mailbox.ok, |
594 | op.cond.fail, op.mailbox.fail, | 597 | op.cond.fail, op.mailbox.fail, |
595 | false); | 598 | false); |
599 | if (ret) | ||
600 | nvgpu_err(g,"fecs method: data=0x%08x push adr=0x%08x", | ||
601 | op.method.data, op.method.addr); | ||
596 | 602 | ||
597 | nvgpu_mutex_release(&gr->fecs_mutex); | 603 | nvgpu_mutex_release(&gr->fecs_mutex); |
598 | 604 | ||