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.


-----Original Message-----
From: Tomasz Bursztyka []
Sent: Monday, May 4, 2020 11:30 AM
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

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



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 ?


Join to automatically receive all group messages.