Re: [PATCH v7] alpha: fix memory barriers so that they conform to the specification
From: Mikulas Patocka <mpatocka@redhat.com>
Date: 2020-06-08 06:58:49
Also in:
linux-rtc, linux-serial
From: Mikulas Patocka <mpatocka@redhat.com>
Date: 2020-06-08 06:58:49
Also in:
linux-rtc, linux-serial
On Wed, 27 May 2020, Maciej W. Rozycki wrote:
On Tue, 26 May 2020, Mikulas Patocka wrote:quoted
This patch makes barriers confiorm to the specification. 1. We add mb() before readX_relaxed and writeX_relaxed - memory-barriers.txt claims that these functions must be ordered w.r.t. each other. Alpha doesn't order them, so we need an explicit barrier. 2. We add mb() before reads from the I/O space - so that if there's a write followed by a read, there should be a barrier between them. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Fixes: cd0e00c10672 ("alpha: io: reorder barriers to guarantee writeX() and iowriteX() ordering") Fixes: 92d7223a7423 ("alpha: io: reorder barriers to guarantee writeX() and iowriteX() ordering #2") Cc: stable@vger.kernel.org # v4.17+ Acked-by: Ivan Kokshaysky <redacted>LGTM, thanks for persistence! Reviewed-by: Maciej W. Rozycki <redacted> Maciej
Hi Will you submit the patch to Linus' tree in this merge window? Mikulas