Re: DMA: driver API's thread safety


Raveendra Padasalagi <raveendra.padasalagi@...>
 

Hi Tomasz,

Thanks for the info, link provided was very helpful.

I do have additional queries on DMA driver implementation and will send in a
separate thread for each.

Regards,
Raveendra

-----Original Message-----
From: Tomasz Bursztyka [mailto:tomasz.bursztyka@...]
Sent: Monday, May 4, 2020 11:30 AM
To: raveendra.padasalagi@...; devel@...
Subject: Re: [Zephyr-devel] DMA: driver API's thread safety

Hi Raveendra,

Yes it should be up to the driver to manage this. However, this is not
the case in many drivers (across all domain, not only DMA).

This is also one of the thing which is being solved through
https://github.com/zephyrproject-rtos/zephyr/issues/22941

The goal would be drivers maintainers should not have to think about
it. It would be handled transparently.

Tomasz

Hi,

Is dma_config(), dma_start() API’s are thread safe ?
Is it a dma controller driver responsibility to use locks to ensure
dma hardware channels are accessed safely across multiple threads ?


Regards,
Raveendra

Join devel@lists.zephyrproject.org to automatically receive all group messages.