Re: [PATCH 01/20] asm-generic/mmiowb: Add generic implementation of mmiowb() tracking
From: Linus Torvalds
Date: Sat Mar 02 2019 - 21:27:06 EST
On Sat, Mar 2, 2019 at 5:43 PM Nicholas Piggin <npiggin@xxxxxxxxx> wrote:
>
> Is there a reason to call this "mmiowb"? We already have wmb that
> orders cacheable stores vs mmio stores don't we?
Sadly no it doesn't. Not on ia64, and people tried to make that the
new rule because of the platform breakage on what some people thought
would be a major platform.
Plain wmb() was only guaranteed to order regular memory against each
other (mostly useful for dma) on some of these platforms, because they
had such broken IO synchronization.
So mmiowb() is not a new name. It's been around for a while, and the
people who wanted it have happily become irrelevant. Will is making it
go away, but the name remains for historical reasons, even if Will's
new acronym explanation for the name is much better ;)
Linus