no results with dmatest on i.mx6qp

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

no results with dmatest on i.mx6qp

521件の閲覧回数
gufengzi
Contributor III

I tested i.mx6qp with dmatest and got no results.

anybody can help me to know how to get any result?

Thanks

~ # echo 2000 > /sys/module/dmatest/parameters/timeout
~ # echo 1 > /sys/module/dmatest/parameters/iterations
~ # echo dma0chan0 > /sys/module/dmatest/parameters/channel
~ # echo dma0chan1 > /sys/module/dmatest/parameters/channel
~ # echo dma0chan2 > /sys/module/dmatest/parameters/channel
~ # echo 1 > /sys/module/dmatest/parameters/run
~ # ls -1 /sys/class/dma/
dma0chan0
dma0chan1
dma0chan10
dma0chan11
dma0chan12
dma0chan13
dma0chan14
dma0chan15
dma0chan2
dma0chan3
dma0chan4
dma0chan5
dma0chan6
dma0chan7
dma0chan8
dma0chan9
dma1chan0
dma1chan1
dma1chan10
dma1chan11
dma1chan12
dma1chan13
dma1chan14
dma1chan15
dma1chan16
dma1chan17
dma1chan18
dma1chan19
dma1chan2
dma1chan20
dma1chan21
dma1chan22
dma1chan23
dma1chan24
dma1chan25
dma1chan26
dma1chan27
dma1chan28
dma1chan29
dma1chan3
dma1chan30
dma1chan4
dma1chan5
dma1chan6
dma1chan7
dma1chan8
dma1chan9
~ # cat /sys/module/dmatest/parameters/run
N
~ # echo 1000 > /sys/module/dmatest/parameters/iterations
~ # echo 1 > /sys/module/dmatest/parameters/run
~ # dmesg
random: nonblocking pool is initialized
~ #
~ #

0 件の賞賛
返信
4 返答(返信)

509件の閲覧回数
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @gufengzi

I hope you are doing well.

 

What BSP version are you using?

You can try this guide.

There is explained and remember to config the DMA Test in menuconfig of kernel.

 

Best regards.

 

Salas.

0 件の賞賛
返信

498件の閲覧回数
gufengzi
Contributor III

the linux version I am using is 4.1.15

I think the DMA test module is already built-in in the kernel, because dma?chan? can be listed.

Do you think so?

~ # cat /proc/version
Linux version 4.1.15 (root@ubuntu) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #2 SMP PREEMPT Wed Mar 15 13:47:34 CST 2023
~ #
~ # random: nonblocking pool is initialized
ls -1 /sys/class/dma/
dma0chan0
dma0chan1
dma0chan10
dma0chan11
dma0chan12
dma0chan13
dma0chan14
dma0chan15
dma0chan2
dma0chan3
dma0chan4
dma0chan5
dma0chan6
dma0chan7
dma0chan8
dma0chan9
dma1chan0
dma1chan1
dma1chan10
dma1chan11
dma1chan12
dma1chan13
dma1chan14
dma1chan15
dma1chan16
dma1chan17
dma1chan18
dma1chan19
dma1chan2
dma1chan20
dma1chan21
dma1chan22
dma1chan23
dma1chan24
dma1chan25
dma1chan26
dma1chan27
dma1chan28
dma1chan29
dma1chan3
dma1chan30
dma1chan4
dma1chan5
dma1chan6
dma1chan7
dma1chan8
dma1chan9
~ #

0 件の賞賛
返信

461件の閲覧回数
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @gufengzi 

I hope you are doing well.

I can not replicate your issue, I can do a dmatest without any problem following:

 

# modprobe dmatest
# echo dma1chan0 > /sys/module/dmatest/parameters/channel
      [   53.149458] dmatest: Added 1 threads using dma1chan0
# echo 2000 > /sys/module/dmatest/parameters/timeout
# echo 1 > /sys/module/dmatest/parameters/iterations
# echo 1 > /sys/module/dmatest/parameters/run
      [   86.985945] dmatest: Started 1 threads using dma1chan0

# cat /sys/module/dmatest/parameters/run
      Y
# echo 0 > /sys/module/dmatest/parameters/run
[  409.080633] dmatest: dma1chan0-copy0: summary 380825 tests, 0 failures 2321.73 iops 18580 KB/s (0)

 

Is there anything else that I can do for replicate it?

 

Best regards.

 

Salas.

0 件の賞賛
返信

456件の閲覧回数
gufengzi
Contributor III

hello Alejandro

what linux version are you using?

Thanks

0 件の賞賛
返信