On 2018-10-17 14:42, Gustavo Pimentel wrote: > Hi all, Fixed up the email addresses.. > I'm implementing a new DMA driver for an IP and I've used /drivers/dma/dw/* > driver has reference. This driver uses DMA engine framework. > > Now I would like to start testing my new driver by using DMAtest tool, I've > follow the instructions written on [1], but I don't get any output from it. > I think DMAtest didn't even started... Can you help to track down this? Do you have support for DMA_MEM_TO_MEM and implementation for the device_prep_dma_memcpy callback? If yes, then add debug to your device_prep_dma_memcpy first to see if it goes well, then to your device_issue_pending and device_tx_status callbacks. > These were the commands that I execute for the test. > > % uname -a > Linux axs101 4.19.0-rc1 #355 PREEMPT Mon Oct 15 11:56:03 CEST 2018 arc GNU/Linux > > % ls -1 /sys/class/dma/ > dma0chan0 > dma0chan1 > dma1chan0 > dma1chan1 > > % echo dma0chan0 > /sys/module/dmatest/parameters/channel > % echo 1 > /sys/module/dmatest/parameters/iterations > % echo 2000 > /sys/module/dmatest/parameters/timeout > % echo 1 > /sys/module/dmatest/parameters/verbose > % echo 1 > /sys/module/dmatest/parameters/run > > % cat /sys/module/dmatest/parameters/run > % N > > [1] https://www.kernel.org/doc/html/v4.15/driver-api/dmaengine/dmatest.html > > Regards, > Gustavo > - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki