From 2d98a5a6c224cedec8fe3150be2149258cc150ad Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Tue, 13 Oct 2020 14:45:31 +0100 Subject: [PATCH] net/sfc: log DMA allocations addresses The information about DMA allocations is very useful for debugging. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/sfc/sfc.c b/drivers/net/sfc/sfc.c index 559f9039c2..cfba485ad2 100644 --- 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; } -- 2.20.1