* [PATCH] devinfo: print DMA offset and mask in devinfo
@ 2025-12-03 15:20 Ahmad Fatoum
2025-12-08 7:37 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-12-03 15:20 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
This is useful information to have in debugging, especially as
dma-ranges inheritance can be hard to follow, so add it to the devinfo
command output.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
commands/devinfo.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/commands/devinfo.c b/commands/devinfo.c
index c87b30e84307..b80dce005e9c 100644
--- a/commands/devinfo.c
+++ b/commands/devinfo.c
@@ -104,6 +104,12 @@ static int do_devinfo(int argc, char *argv[])
if (dev->of_node) {
struct device *main_dev = dev->of_node->dev;
+ if (dev->dma_offset)
+ printf("DMA offset: 0x%lx\n", dev->dma_offset);
+
+ if (dev->dma_mask)
+ printf("DMA mask: 0x%llx\n", dev->dma_mask);
+
printf("DMA Coherent: %s%s\n",
dev_is_dma_coherent(dev) ? "true" : "false",
dev->dma_coherent == DEV_DMA_COHERENCE_DEFAULT ? " (default)" : "");
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-08 7:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-03 15:20 [PATCH] devinfo: print DMA offset and mask in devinfo Ahmad Fatoum
2025-12-08 7:37 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox