Re: [REGRESSION] Recent swiotlb DMA_FROM_DEVICE fixes break ath9k-based AP
From: Linus Torvalds
Date: Fri Mar 25 2022 - 15:38:47 EST
On Fri, Mar 25, 2022 at 12:14 PM Robin Murphy <robin.murphy@xxxxxxx> wrote:
>
> Note "between the DMA transfers", and not "during the DMA transfers".
> The fundamental assumption of the streaming API is that only one thing
> is ever accessing the mapping at any given time, which is what the whole
> notion of ownership is about.
Well, but that ignores reality.
Any documentation that ignores the "CPU will want to see the
intermediate state" is by definition garbage, because that is clearly
a simple fact.
We don't write documentation for fantasy.
Linus