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:
prsethi
2023-05-09 05:19:46 +00:00
committed by mobile promotions
parent d70c9a708b
commit 24a533c9dc
4 changed files with 8 additions and 6 deletions

View File

@@ -195,7 +195,7 @@ static int nvgpu_sw_quiesce_init_support(struct gk20a *g)
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) ||
nvgpu_is_enabled(g, NVGPU_DISABLE_SW_QUIESCE)) {
@@ -209,11 +209,11 @@ void nvgpu_sw_quiesce(struct gk20a *g)
}
if (g->sw_quiesce_pending) {
nvgpu_err(g, "SW quiesce already pending");
nvgpu_err(g, "%s:%d SW quiesce already pending", fname, line);
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