diff options
author | Will Deacon <will.deacon@arm.com> | 2019-02-22 18:04:54 +0000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2019-02-28 17:24:27 +0000 |
commit | 2c97a9cc35a7a73a7580a8e2632419ff3c0b0fe5 (patch) | |
tree | dcab31f0b7eba7257bfdf04669287175ede63a4d /arch/arm64 | |
parent | ce246c444a08e03bc95c9b1aa111527690d1ae13 (diff) | |
download | lwn-2c97a9cc35a7a73a7580a8e2632419ff3c0b0fe5.tar.gz lwn-2c97a9cc35a7a73a7580a8e2632419ff3c0b0fe5.zip |
arm64: io: Hook up __io_par() for inX() ordering
Ensure that inX() provides the same ordering guarantees as readX()
by hooking up __io_par() so that it maps directly to __iormb().
Reported-by: Andrew Murray <andrew.murray@arm.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/asm/io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index ee723835c1f4..8bb7210ac286 100644 --- a/arch/arm64/include/asm/io.h +++ b/arch/arm64/include/asm/io.h @@ -121,6 +121,7 @@ static inline u64 __raw_readq(const volatile void __iomem *addr) : "memory"); \ }) +#define __io_par(v) __iormb(v) #define __iowmb() wmb() #define mmiowb() do { } while (0) |