Re: DMAtest tool doubts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2018-10-18 13:50, Gustavo Pimentel wrote:
> On 18/10/2018 09:02, Peter Ujfalusi wrote:
>>
>>
>> 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.
> 
> Unfortunately I don't have it. I only have support for DMA_DEV_TO_MEM and
> DMA_MEM_TO_DEV.

dmatest can only test DMA_MEM_TO_MEM...

> 
> I've activated CONFIG_DYNAMIC_DEBUG flag on kernel and executed the following
> command after loading the driver.
> 
> % echo 'file dmatest.c line 1- +pfl' > /sys/kernel/debug/dynamic_debug/control
> 
> But no changes...
> 
>>
>>> 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://urldefense.proofpoint.com/v2/url?u=https-3A__www.kernel.org_doc_html_v4.15_driver-2Dapi_dmaengine_dmatest.html&d=DwIDaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=bkWxpLoW-f-E3EdiDCCa0_h0PicsViasSlvIpzZvPxs&m=gwp-v4gqH7sPCj--CT8yfrLkYcQgh7AdlwbxgAGf1F8&s=LGI543wae-yExjwBECCxix-06AUuiHWHly60hBBnFbQ&e=
>>>
>>> Regards,
>>> Gustavo
>>>
>>
>> - Péter
>>
>> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
>> Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
>>
> 

- Péter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux