Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3672474imj; Tue, 12 Feb 2019 02:44:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IaxPzIUecSwfgyuGB6i4RHcu1GU6+p6C1K8ZR55P8Azjz89u2sz3+j8aVPIoVVc567bNTsI X-Received: by 2002:a17:902:24d:: with SMTP id 71mr3253730plc.225.1549968298762; Tue, 12 Feb 2019 02:44:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549968298; cv=none; d=google.com; s=arc-20160816; b=f9hMhZbeJsH6bX81mK0MZozWTQAzg+BGis1VbsWVbPNkrXrhpO6t8a5BZwE2yKMNqe rBrDToWTmQE4HJtBatzVemaeehOdPqgQMJ2gk983ykXla8IPfcroFpdFmZhCKzcwney0 LTD8B1cF9E6dPepgM4UTjLuyfGNFnXS/518bvDLYvxo9sA6MlchVer7Lj9G9hspkmUsj FLqEI/3LN54Oqwm2MVllUNegEFsX7ml5RiMnWsQvJUFDVnobgXv8qcfKNqg9XHE3rVjK ZhepRInAySckl6LK+WYeQ2scpQ99dPO9h0JTCihU0vhdRF0V5YDE2ECBS/hw2AyEngxT 54Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=yinInWx7C2gTA9xmosl7id2N31ckf3xE3/uIqjaIeks=; b=KIwlk8cHNNnk8rOWJY2MMaiETTC6/4dwMB53gNpz8dYDX69elmmFJMdwTevpzgDa19 Y7OHd5H18H4KncvyKjZ5B4ABzK5G3PIehOqI2vPlS4FVsAT4i5SQU/XRKoF9iCRsdquh UTNbEUwERNzfZMqZtDTFVoSzdU7UYFCFpI8KlOTrA18lLcjgx3R90dBb0kxxshX2sg0c oZulYD7SxJ2igWCsL7Lriwz3o7sYYn+EQTEzuJZ4+b6Qtb1ng8x3CPxBGEbD31/KMH2e 25ntDk9tPHEODc19/orDeF/7NmF4mT01a9Oi2MHYgvYI9yvCMletglKelCWAKcK6Yy68 2QTw== 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 x23si13135691pln.100.2019.02.12.02.44.43; Tue, 12 Feb 2019 02:44:58 -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 S1729073AbfBLKm6 (ORCPT + 99 others); Tue, 12 Feb 2019 05:42:58 -0500 Received: from mail-vs1-f66.google.com ([209.85.217.66]:34529 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728904AbfBLKm5 (ORCPT ); Tue, 12 Feb 2019 05:42:57 -0500 Received: by mail-vs1-f66.google.com with SMTP id e10so1296904vsp.1; Tue, 12 Feb 2019 02:42:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yinInWx7C2gTA9xmosl7id2N31ckf3xE3/uIqjaIeks=; b=DD0R+BxvTSvjttf3Y8sE4JvuF14Th8vSfNKT+viROaVb/NizLffLicJTlbgDi+rLJM IzBt5v71NUKycM7LSCWhCv91mFhS7AXrSVpoLdh0bAiSBmuQkGCLh45OQfMhV5VtewUI H+bFtjlq4T6p75AwGJ5PYPep6JEEqXDOD/gAVitHgV3yH9JGzKSaSqzlcDM3ny1g8Df+ IzilRK4LiksoZxKok/pG6OdPfEnMM+TdLgx7+exCmRwfG0tYhb1i+tA3vIKOrc9ON8Ef yV2vZzYH/slkhfp/U4eA4rQFxqs+//hNe+UeQU1gYn1b3YcjlB/1eUtcU4b11wIHkcKe 8Gsg== X-Gm-Message-State: AHQUAuYMdpBhsz9ULTN8ppprECS1tb9kX7I4lZQX/4VXiNxJTJCGHnUu Gnj0t7vsqpYefvsX2RTaQJig7vvqfb8zFWp4JVlu77Rn X-Received: by 2002:a67:f43:: with SMTP id 64mr1275587vsp.166.1549968176318; Tue, 12 Feb 2019 02:42:56 -0800 (PST) MIME-Version: 1.0 References: <20190211174544.4302-1-will.deacon@arm.com> <20190211174544.4302-3-will.deacon@arm.com> In-Reply-To: <20190211174544.4302-3-will.deacon@arm.com> From: Geert Uytterhoeven Date: Tue, 12 Feb 2019 11:42:44 +0100 Message-ID: Subject: Re: [PATCH 2/2] arm64: io: Hook up __io_par() for inX() ordering To: Will Deacon Cc: Linux-Arch , Linux Kernel Mailing List , andrew.murray@arm.com, Arnd Bergmann , Catalin Marinas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Will, On Mon, Feb 11, 2019 at 9:34 PM Will Deacon wrote: > 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 Thanks for your patch! > --- 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 I think it makes sense to make the parameter passing explicit, for documentation purposes: #define __io_par(v) __iormb(v) > #define __iowmb() wmb() > > #define mmiowb() do { } while (0) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds