mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
nvgpu: print the caller name with quiesce
Currently quiesce method does not print the caller name which makes it difficult to find the reason behind the issue. Change prints caller name and invocation line number. Bug 4098984 Change-Id: I34a0f557c411f997022668e187060c1c1247b15f Signed-off-by: prsethi <prsethi@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2900585 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
d70c9a708b
commit
24a533c9dc
@@ -195,7 +195,7 @@ static int nvgpu_sw_quiesce_init_support(struct gk20a *g)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void nvgpu_sw_quiesce(struct gk20a *g)
|
void nvgpu_sw_quiesce_with_trace(struct gk20a *g, const char *fname, int line)
|
||||||
{
|
{
|
||||||
if (g->is_virtual || (g->enabled_flags == NULL) ||
|
if (g->is_virtual || (g->enabled_flags == NULL) ||
|
||||||
nvgpu_is_enabled(g, NVGPU_DISABLE_SW_QUIESCE)) {
|
nvgpu_is_enabled(g, NVGPU_DISABLE_SW_QUIESCE)) {
|
||||||
@@ -209,11 +209,11 @@ void nvgpu_sw_quiesce(struct gk20a *g)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (g->sw_quiesce_pending) {
|
if (g->sw_quiesce_pending) {
|
||||||
nvgpu_err(g, "SW quiesce already pending");
|
nvgpu_err(g, "%s:%d SW quiesce already pending", fname, line);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
nvgpu_err(g, "SW quiesce requested");
|
nvgpu_err(g, "%s:%d SW quiesce requested", fname, line);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When this flag is set, interrupt handlers should
|
* When this flag is set, interrupt handlers should
|
||||||
|
|||||||
@@ -164,7 +164,9 @@ int nvgpu_prepare_poweroff(struct gk20a *g);
|
|||||||
* still ring doorbell, but this will not trigger any work on
|
* still ring doorbell, but this will not trigger any work on
|
||||||
* engines since fifo scheduling is disabled.
|
* engines since fifo scheduling is disabled.
|
||||||
*/
|
*/
|
||||||
void nvgpu_sw_quiesce(struct gk20a *g);
|
void nvgpu_sw_quiesce_with_trace(struct gk20a *g, const char *fname, int line);
|
||||||
|
#define nvgpu_sw_quiesce(g) \
|
||||||
|
nvgpu_sw_quiesce_with_trace(g, __func__, __LINE__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Cleanup SW Quiesce state
|
* @brief Cleanup SW Quiesce state
|
||||||
|
|||||||
@@ -721,7 +721,7 @@ nvgpu_spinlock_acquire
|
|||||||
nvgpu_spinlock_init
|
nvgpu_spinlock_init
|
||||||
nvgpu_spinlock_release
|
nvgpu_spinlock_release
|
||||||
nvgpu_strnadd_u32
|
nvgpu_strnadd_u32
|
||||||
nvgpu_sw_quiesce
|
nvgpu_sw_quiesce_with_trace
|
||||||
nvgpu_sw_quiesce_remove_support
|
nvgpu_sw_quiesce_remove_support
|
||||||
nvgpu_swprofile_initialize
|
nvgpu_swprofile_initialize
|
||||||
nvgpu_swprofile_snapshot
|
nvgpu_swprofile_snapshot
|
||||||
|
|||||||
@@ -751,7 +751,7 @@ nvgpu_spinlock_acquire
|
|||||||
nvgpu_spinlock_init
|
nvgpu_spinlock_init
|
||||||
nvgpu_spinlock_release
|
nvgpu_spinlock_release
|
||||||
nvgpu_strnadd_u32
|
nvgpu_strnadd_u32
|
||||||
nvgpu_sw_quiesce
|
nvgpu_sw_quiesce_with_trace
|
||||||
nvgpu_sw_quiesce_remove_support
|
nvgpu_sw_quiesce_remove_support
|
||||||
nvgpu_swprofile_initialize
|
nvgpu_swprofile_initialize
|
||||||
nvgpu_swprofile_snapshot
|
nvgpu_swprofile_snapshot
|
||||||
|
|||||||
Reference in New Issue
Block a user