mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: dump debug info on semaphore acquire timeout
Channel RAMFC has details about the semaphore operation the channel is performing. Getting this can be helpful in debugging the semaph- ore acquire timeout. Add gk20a_debug_dump to pbdma interrupt handler for this case. Bug 3430929 Change-Id: Ia5e3b191a77a7e54d02f45ed2d1beb266905b564 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2675344 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
086909ddd0
commit
79b37d7832
@@ -23,6 +23,7 @@
|
|||||||
#include <nvgpu/log.h>
|
#include <nvgpu/log.h>
|
||||||
#include <nvgpu/log2.h>
|
#include <nvgpu/log2.h>
|
||||||
#include <nvgpu/utils.h>
|
#include <nvgpu/utils.h>
|
||||||
|
#include <nvgpu/debug.h>
|
||||||
#include <nvgpu/io.h>
|
#include <nvgpu/io.h>
|
||||||
#include <nvgpu/bitops.h>
|
#include <nvgpu/bitops.h>
|
||||||
#include <nvgpu/error_notifier.h>
|
#include <nvgpu/error_notifier.h>
|
||||||
@@ -435,6 +436,8 @@ static bool ga10b_pbdma_handle_intr_0_legacy(struct gk20a *g, u32 pbdma_id,
|
|||||||
recover = true;
|
recover = true;
|
||||||
nvgpu_err(g, "semaphore acquire timeout!");
|
nvgpu_err(g, "semaphore acquire timeout!");
|
||||||
|
|
||||||
|
gk20a_debug_dump(g);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Note: the error_notifier can be overwritten if
|
* Note: the error_notifier can be overwritten if
|
||||||
* semaphore_timeout is triggered with pbcrc_pending
|
* semaphore_timeout is triggered with pbcrc_pending
|
||||||
|
|||||||
@@ -167,6 +167,8 @@ bool gm20b_pbdma_handle_intr_0(struct gk20a *g, u32 pbdma_id,
|
|||||||
recover = true;
|
recover = true;
|
||||||
nvgpu_err(g, "semaphore acquire timeout!");
|
nvgpu_err(g, "semaphore acquire timeout!");
|
||||||
|
|
||||||
|
gk20a_debug_dump(g);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Note: the error_notifier can be overwritten if
|
* Note: the error_notifier can be overwritten if
|
||||||
* semaphore_timeout is triggered with pbcrc_pending
|
* semaphore_timeout is triggered with pbcrc_pending
|
||||||
|
|||||||
Reference in New Issue
Block a user