[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wi9S6PopwTdeFPybnapKwL17ux80e9mbLXNo52e4B8rHg@mail.gmail.com>
Date: Fri, 4 Oct 2019 13:26:15 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Paul Walmsley <paul.walmsley@...ive.com>
Cc: linux-riscv@...ts.infradead.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [GIT PULL] RISC-V updates for v5.4-rc2
On Fri, Oct 4, 2019 at 10:36 AM Paul Walmsley <paul.walmsley@...ive.com> wrote:
>
> - Ensure that exclusive-load reservations are terminated after system
> call or exception handling. This primarily affects QEMU, which does
> not expire load reservations.
Grr. Can somebody talk sense to the RISC-V architects?
Copying the PowerPC model was broken. PowerPC has now become the
absolute worst architecture out there wrt just about any memory
ordering issues, and the exclusive reservation is just another example
of that.
ARMv8 and even alpha got this right, and clear the reservation on
return from traps/exceptions.
Why did RISC-V copy the power model? (Yeah, I realize that ARM did too
originally, but they learnt from their mistakes).
Oh well.
Linus
Powered by blists - more mailing lists