RE: [PATCH] locking/memory-barriers.txt: Improve documentation for writel() usage

From: Parav Pandit
Date: Thu Sep 15 2022 - 08:35:19 EST


> From: Bagas Sanjaya <bagasdotme@xxxxxxxxx>
> Sent: Thursday, September 15, 2022 8:16 AM

> On 9/15/22 12:01, Parav Pandit wrote:
> > The cited commit [1] describes that when using writel(), explcit wmb()
> > is not needed. However, it should have said that dma_wmb() is not
> > needed.
> >
> > Hence update the example to be more accurate that matches the current
> > implementation and document section of dma_wmb()/dma_rmb().
> >
> > [1] commit 5846581e3563 ("locking/memory-barriers.txt: Fix broken DMA
> > vs. MMIO ordering example")
>
> Just say the blamed commit without using numbered references.

Ok. Will send v1 with the change.