Re: DMA: driver API's thread safety


Tomasz Bursztyka
 

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.