git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83c31c9
)
net/sfc: log DMA allocations addresses
author
Andrew Rybchenko
<arybchenko@solarflare.com>
Tue, 13 Oct 2020 13:45:31 +0000
(14:45 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:48:18 +0000
(19:48 +0200)
The information about DMA allocations is very useful for debugging.
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc.c
patch
|
blob
|
history
diff --git
a/drivers/net/sfc/sfc.c
b/drivers/net/sfc/sfc.c
index
559f903
..
cfba485
100644
(file)
--- a/
drivers/net/sfc/sfc.c
+++ b/
drivers/net/sfc/sfc.c
@@
-52,6
+52,11
@@
sfc_dma_alloc(const struct sfc_adapter *sa, const char *name, uint16_t id,
esmp->esm_mz = mz;
esmp->esm_base = mz->addr;
+ sfc_info(sa,
+ "DMA name=%s id=%u len=%lu socket_id=%d => virt=%p iova=%lx",
+ name, id, len, socket_id, esmp->esm_base,
+ (unsigned long)esmp->esm_addr);
+
return 0;
}