Re: [PATCH v3 06/11] selftests: Fix arm64 IO barriers to match kernel
David Matlack <[email protected]>
| Newsgroups | dev.linux.lists.patches,dev.linux.lists.llvm,org.kernel.vger.kvm,org.kernel.vger.linux-kselftest,org.kernel.vger.linux-rdma,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On 2026-07-16 02:03 PM, Jason Gunthorpe wrote: > The tools/include readl/writel MMIO accessors on arm64 use > inner-shareable barriers (dmb ish) while the kernel uses > outer-shareable (dmb osh). Fix them to match. > > Add __io_bw() and __io_ar() definitions matching the kernel's > arch/arm64/include/asm/io.h, including the dummy control dependency > in __io_ar() that orders MMIO reads against all subsequent > instructions. > > Assisted-by: Claude:claude-opus-4.6 > Signed-off-by: Jason Gunthorpe <[email protected]> With the changes to tools/testing/selftests/lib.mk removed, Reviewed-by: David Matlack <[email protected]> > --- > tools/arch/arm64/include/asm/io.h | 20 ++++++++++++++++++++ > tools/include/asm/io.h | 2 ++ > tools/testing/selftests/lib.mk | 5 +++++ > 3 files changed, 27 insertions(+) > create mode 100644 tools/arch/arm64/include/asm/io.h