Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3029106imj; Mon, 11 Feb 2019 12:34:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IZrp9+8+x0XdJ+16+KIDONx0cqPELpkxYG8yGYchqy/Tvq46lDx44+h+xhcRhlmoZCKLyXN X-Received: by 2002:a62:4b4d:: with SMTP id y74mr95396pfa.186.1549917286121; Mon, 11 Feb 2019 12:34:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549917286; cv=none; d=google.com; s=arc-20160816; b=oKeBV5pmTi7W8Lg8tjv5dWEwpJEYa15e2rurCTd/N+Ob3SBnwVFNdVD1JUzN4QZAIu SkaG9UC2hxF9OLFbsLhQtOjDfwjPdyMQprCxiLQBmLnFbIHPWRwnvbiJtEMCIzKJmBxK 2LIMr4/7gkK6GCsCVBsI9ZCzW4rEOgXg467e0775vhyqANxwLIQLcKED026gSaBzJOR+ 5jjWPPly2WqUOWQCjcDqMpMCprXInXh2FHDF6dnFmNU8pBKVcFhVHT2mcm1nV5DO0RV3 xOPnjzvCeqL4305dLUvyCWrKvPTuuUEDyg6SB2rbeVDBKnhuq5JgRXbcaFWS7xR93K4A 7lsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=5O++PMZpMFSPPx/IhNSuaR1fS0skPDQLFPMsBfQJh4o=; b=wSRK3+RpLHUxcdfUQ83dGamcG+EDhb1L/OHteGYqQtB5f2gDbJ/fb4oYIumcJcgbNn 3u2UTwi6dcLY0niECRrVcrMohs/WxmHS0Mz9kWxm7SudPBF9B76FgZ42Q5LHVj2HDwcF 0t7gQuMyRT32guzUUIIJUK7TM1lB/8kdgODWCtV9fE3FAhnwptEtH9eF5ZMuRiGg25sX WA87nqOCIoNxQaQT2AYMFvxOVSQBjMv62H8lPhxAM6Hd2/0owNMlGht4lkGYgOS37YDI 9bjdsH2uEF4zRjByuenae+AF9Xi/oHnscA+DlprEjoHPoPoBbUUsVhMv9H+Xil2KQKLC Xtsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b61si11443951plb.70.2019.02.11.12.34.30; Mon, 11 Feb 2019 12:34:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731695AbfBKRp6 (ORCPT + 99 others); Mon, 11 Feb 2019 12:45:58 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:54882 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731225AbfBKRpx (ORCPT ); Mon, 11 Feb 2019 12:45:53 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 21556EBD; Mon, 11 Feb 2019 09:45:53 -0800 (PST) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D97813F675; Mon, 11 Feb 2019 09:45:51 -0800 (PST) From: Will Deacon To: linux-arch@vger.kernel.org Cc: linux-kernel@vger.kernel.org, andrew.murray@arm.com, arnd@arndb.de, catalin.marinas@arm.com, Will Deacon Subject: [PATCH 2/2] arm64: io: Hook up __io_par() for inX() ordering Date: Mon, 11 Feb 2019 17:45:44 +0000 Message-Id: <20190211174544.4302-3-will.deacon@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190211174544.4302-1-will.deacon@arm.com> References: <20190211174544.4302-1-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Will Deacon --- arch/arm64/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index ee723835c1f4..2985febe63ec 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 __iormb #define __iowmb() wmb() #define mmiowb() do { } while (0) -- 2.11.0