Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1730202imc; Fri, 22 Feb 2019 10:06:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IY70UiB25CC9BYXZ9U78Bhp+vdjm15PrpTZexUmNJQ9nRSLAIlJ67PrQcsRnFhWXUmGAY1O X-Received: by 2002:a17:902:930b:: with SMTP id bc11mr5484681plb.101.1550858763154; Fri, 22 Feb 2019 10:06:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550858763; cv=none; d=google.com; s=arc-20160816; b=mFuI0dKLbpDgoPu1expTc3qnD/MCG7Mf4NGk0+FsfU4wbFk1KRKn5NnabBfzt5E/ks dUI316F4Dytg8StU76kFP/1PHGfaqbUJ2uBluOul42L9e31pOGtOq3ndWLMlQRa2wybv gKAD7FHM60NKRsVRTXj0RdE78rJEoVpB+GnT6HKBjknLY3R6nSNftX0ffVYTmt4TO1iU 1FsYh4rpRp1Bq4Z5gfHE3jI0zPsywX8zayt92j4fuc8rZ4xULBPVkKVj9ZEu1ww0eyYE Ad7t+CH+tYpOZ3UHCKUBDplm9vWdkqp0AuPYOMJ2CZdXikCEOd1Nnb9t9uLygPeE2yqA jWrw== 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=Q4qtXTqRSe8rlCSJjEAFI23F5Lraa2X0jYLKp897ba0=; b=VZbAX48w44ugK24wceoU6cQdC7eK4YBfMo3mhLRE0eTnVhAzPXnhPOOEljwfwbLi+j UuNZjrDF+1Wl0RyT8QCng/h6xcWpwkppHDkRU1lw1n1WOfDccC4/W8f9xRfC2xcaDAIc JEdTa9m9GCluQ4/y+g+A1txbwn1oarskwxQayzXLmcbzPXSKqjYcIbfhTk3DrEDyb/5t nRJGaV49dZZXTU0Xl4+26aRwcnl1pQEUsOttFFw+kfcV6r+yYw7dUCMEO86SieuT2eKQ yEhJNZrkvpgqCzsfclSqoFp9EmC/VNcObxSDZimV/XkXBE5dlfFZMkA/Nwa+N5X9nxt+ ZKrQ== 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 h191si1852012pgc.302.2019.02.22.10.05.48; Fri, 22 Feb 2019 10:06:03 -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 S1727675AbfBVSFG (ORCPT + 99 others); Fri, 22 Feb 2019 13:05:06 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:38178 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727656AbfBVSFF (ORCPT ); Fri, 22 Feb 2019 13:05:05 -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 0E010165C; Fri, 22 Feb 2019 10:05:05 -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 7D9A23F5C1; Fri, 22 Feb 2019 10:05:03 -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, geert@linux-m68k.org, palmer@sifive.com, Will Deacon Subject: [PATCH v2 3/3] arm64: io: Hook up __io_par() for inX() ordering Date: Fri, 22 Feb 2019 18:04:54 +0000 Message-Id: <20190222180454.5992-4-will.deacon@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190222180454.5992-1-will.deacon@arm.com> References: <20190222180454.5992-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..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) -- 2.11.0