Closed fatdenny closed 3 months ago
Does your system have a DMA engine to use? Switchtec hardware doesn't have one. So in order to use dma you need a system with Intel's IOAT or similar.
Thank Logan's info.
After load dma module, ntb_perf with dma flag works.
Device# modprobe ntb_perf max_mw_size=0 chunk_order=19 total_order=30 use_dma=1 Device# echo 0 > /sys/kernel/debug/ntb_perf//run Device# cat /sys/kernel/debug/ntb_perf//run Peer 0 test statistics: 0: copied 1073741824 bytes in 79438 usecs, 13516 MBytes/s
dmesg: kernel: [ 1507.092789] switchtec_dma:switchtec_dma_alloc_chan_resources:1334: dma dma0chan0: Burst Size: 0x6 kernel: [ 1507.111906] switchtec_dma:switchtec_dma_alloc_chan_resources:1337: dma dma0chan0: Burst Scale: 0x1 kernel: [ 1507.131019] switchtec_dma:switchtec_dma_alloc_chan_resources:1340: dma dma0chan0: Interval: 0x0 kernel: [ 1507.150155] switchtec_dma:switchtec_dma_alloc_chan_resources:1343: dma dma0chan0: Arb Weight: 0x1 kernel: [ 1507.169278] switchtec_dma:switchtec_dma_alloc_chan_resources:1346: dma dma0chan0: MRRS: 0x3
Hi all,
I am working with "PFX 68xG4" with ntb module. ntb_perf without dma, it works.
kernel: 5.15.0-107-generic Here is the log :
Device# modprobe ntb_perf max_mw_size=0 chunk_order=19 total_order=30 use_dma=0 Host # modprobe ntb_perf max_mw_size=0 chunk_order=19 total_order=30 use_dma=0
But , it doesn't work with dma flag
How can I use dma in ntb_perf module ? Thank you.
BR Denny