mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: update dma dbg to report caller
__dma_dbg() logs func and line details of itself. Update it to report caller details. Bug 1987855 Change-Id: I51913b0c57c12e11880699caed557da9491304cf Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1771511 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
d7c78df466
commit
26b50d77f7
@@ -97,7 +97,8 @@ static char *nvgpu_dma_flags_to_str(struct gk20a *g, unsigned long flags)
|
|||||||
* Please use dma_dbg_alloc() and dma_dbg_free() instead of this function.
|
* Please use dma_dbg_alloc() and dma_dbg_free() instead of this function.
|
||||||
*/
|
*/
|
||||||
static void __dma_dbg(struct gk20a *g, size_t size, unsigned long flags,
|
static void __dma_dbg(struct gk20a *g, size_t size, unsigned long flags,
|
||||||
const char *type, const char *what)
|
const char *type, const char *what,
|
||||||
|
const char *func, int line)
|
||||||
{
|
{
|
||||||
char *flags_str = NULL;
|
char *flags_str = NULL;
|
||||||
|
|
||||||
@@ -111,7 +112,7 @@ static void __dma_dbg(struct gk20a *g, size_t size, unsigned long flags,
|
|||||||
flags_str = nvgpu_dma_flags_to_str(g, flags);
|
flags_str = nvgpu_dma_flags_to_str(g, flags);
|
||||||
|
|
||||||
__nvgpu_log_dbg(g, gpu_dbg_dma,
|
__nvgpu_log_dbg(g, gpu_dbg_dma,
|
||||||
__func__, __LINE__,
|
func, line,
|
||||||
"DMA %s: [%s] size=%-7zu "
|
"DMA %s: [%s] size=%-7zu "
|
||||||
"aligned=%-7zu total=%-10llukB %s",
|
"aligned=%-7zu total=%-10llukB %s",
|
||||||
what, type,
|
what, type,
|
||||||
@@ -124,9 +125,9 @@ static void __dma_dbg(struct gk20a *g, size_t size, unsigned long flags,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define dma_dbg_alloc(g, size, flags, type) \
|
#define dma_dbg_alloc(g, size, flags, type) \
|
||||||
__dma_dbg(g, size, flags, type, "alloc")
|
__dma_dbg(g, size, flags, type, "alloc", __func__, __LINE__)
|
||||||
#define dma_dbg_free(g, size, flags, type) \
|
#define dma_dbg_free(g, size, flags, type) \
|
||||||
__dma_dbg(g, size, flags, type, "free")
|
__dma_dbg(g, size, flags, type, "free", __func__, __LINE__)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For after the DMA alloc is done.
|
* For after the DMA alloc is done.
|
||||||
|
|||||||
Reference in New Issue
Block a user