Re: [PATCH V4 05/10] dmaengine: qcom_hidma: make pending_tre_count atomic

2016-10-02 Thread Vinod Koul
On Sat, Oct 01, 2016 at 11:19:43AM -0400, Sinan Kaya wrote: > On 10/1/2016 2:19 AM, Vinod Koul wrote: > >> Making it atomic so that it can be updated from multiple contexts. > > How is it multiple contexts? It's either existing context of MSI, not both! > > > > I was trying to mean multiple

Re: [PATCH V4 05/10] dmaengine: qcom_hidma: make pending_tre_count atomic

2016-10-02 Thread Vinod Koul
On Sat, Oct 01, 2016 at 11:19:43AM -0400, Sinan Kaya wrote: > On 10/1/2016 2:19 AM, Vinod Koul wrote: > >> Making it atomic so that it can be updated from multiple contexts. > > How is it multiple contexts? It's either existing context of MSI, not both! > > > > I was trying to mean multiple

Re: [PATCH V4 05/10] dmaengine: qcom_hidma: make pending_tre_count atomic

2016-10-01 Thread Sinan Kaya
On 10/1/2016 2:19 AM, Vinod Koul wrote: >> Making it atomic so that it can be updated from multiple contexts. > How is it multiple contexts? It's either existing context of MSI, not both! > I was trying to mean multiple processor contexts here. The driver allocates 11 MSI interrupts. Each MSI

Re: [PATCH V4 05/10] dmaengine: qcom_hidma: make pending_tre_count atomic

2016-10-01 Thread Sinan Kaya
On 10/1/2016 2:19 AM, Vinod Koul wrote: >> Making it atomic so that it can be updated from multiple contexts. > How is it multiple contexts? It's either existing context of MSI, not both! > I was trying to mean multiple processor contexts here. The driver allocates 11 MSI interrupts. Each MSI

Re: [PATCH V4 05/10] dmaengine: qcom_hidma: make pending_tre_count atomic

2016-10-01 Thread Vinod Koul
On Wed, Sep 28, 2016 at 10:12:42PM -0400, Sinan Kaya wrote: > Getting ready for the MSI interrupts. The pending_tre_count is used > in the interrupt handler to make sure all outstanding requests are > serviced. > > Making it atomic so that it can be updated from multiple contexts. How is it

Re: [PATCH V4 05/10] dmaengine: qcom_hidma: make pending_tre_count atomic

2016-10-01 Thread Vinod Koul
On Wed, Sep 28, 2016 at 10:12:42PM -0400, Sinan Kaya wrote: > Getting ready for the MSI interrupts. The pending_tre_count is used > in the interrupt handler to make sure all outstanding requests are > serviced. > > Making it atomic so that it can be updated from multiple contexts. How is it

[PATCH V4 05/10] dmaengine: qcom_hidma: make pending_tre_count atomic

2016-09-28 Thread Sinan Kaya
Getting ready for the MSI interrupts. The pending_tre_count is used in the interrupt handler to make sure all outstanding requests are serviced. Making it atomic so that it can be updated from multiple contexts. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma.h |

[PATCH V4 05/10] dmaengine: qcom_hidma: make pending_tre_count atomic

2016-09-28 Thread Sinan Kaya
Getting ready for the MSI interrupts. The pending_tre_count is used in the interrupt handler to make sure all outstanding requests are serviced. Making it atomic so that it can be updated from multiple contexts. Signed-off-by: Sinan Kaya --- drivers/dma/qcom/hidma.h | 2 +-