* Understanding behavior of memcpy_count and bytes_transferred in dmaengine
@ 2024-06-06 5:14 Garg, Shivank
0 siblings, 0 replies; only message in thread
From: Garg, Shivank @ 2024-06-06 5:14 UTC (permalink / raw)
To: Vinod Koul; +Cc: dmaengine
Hi Community,
I want to understand how/when memcpy_count and bytes_transferred are increased.
/sys/devices/pci0000:00/0000:00:07.1/0000:03:00.2/dma/dma0chan0$ ls
bytes_transferred device in_use memcpy_count power subsystem uevent
I did some experiments with a test kernel driver (doing simple memcpy from 1 NUMA node to another) and dmatest kernel module.
In my testing, both bytes_transferred or memcpy_count remain zero in all testing.
However, I observed in_use is changes to 1 when the channel is requested.
Inside the dmaengine: count += per_cpu_ptr(chan->local, i)->memcpy_count;
I checked these variable to understand if my kernel driver is actually copying any data using DMA but it left me more confused.
Can you please help in understanding its behavior?
Thanks,
Shivank
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-06 5:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-06 5:14 Understanding behavior of memcpy_count and bytes_transferred in dmaengine Garg, Shivank
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.