Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3751016imj; Tue, 12 Feb 2019 04:07:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IbS/UNlXyrPruebzFjwejRinWcqufwfOG13v9yriu66Haq3oox2rTznTvgOMsClLKs9K9VP X-Received: by 2002:a17:902:7148:: with SMTP id u8mr3716767plm.110.1549973274886; Tue, 12 Feb 2019 04:07:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549973274; cv=none; d=google.com; s=arc-20160816; b=iSoQyQp2Ni6i1JdxXGvz+rUZjga20FZWhuKr1qKIK8HdfKlJ/gRl1QO+FEuSY99YSB XkHIx2wSmiA9gS38JX2Oi5owvzrXhFfcW7o1l+37fNXLBKaAxlTcHPaRxDwLynKIXBaJ FlGvKN5hW7HTKLkUHdYpMZ8OgRnOsCTYcxh5mtQPN6YGWsqTV0mnKgBgIzE3viql64Ej 2yrNvyj5Mb0o/TgS5XRBdfxPpcH2VCVcLOAM/hD594ID/q2y8/aVYD5q0ir290Gwgr0L O1l4344EtmjFp9eV8TYsb72akCRNDTOOtQZglTjqmLwbHfEMM1JigG3vwK4zvpkjDvSd rDeA== 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=7pt1pIylMphZsqbPnqLVS/36YT2mMK9EUnitZsTxbOM=; b=Di4S5y0CUDdbGpBEL9yQG346YU2TgvOwGopMu6O5NFKVL7RJ3x76fpScEloWMUe2W4 +QAw1yZ3Pn581hC0Z3bQW2mxunJhP7OCq3c6sLKlYgRza4jFhDCWaBe9iPozRKqm7xyA C7ESmRR3RFoCgW3GFPNMWul2AUoziRDXsZorn30YLZ8FR35NTuQEJdjcV6bwKJbJeAp6 WucEUxQWNIsLBonVIqzEjUQYk3OlusbsGlEEw/k8lt7QT5JaWGx+x1jrf2EeYQtwJMqM AlkhVJdsJAaUxH3TCdafOmedK3HyGbC43aydbyME3C1oJKQPgRa7O0cXBHbUb2MG3KlF VNzQ== 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 g5si8627101plp.268.2019.02.12.04.07.38; Tue, 12 Feb 2019 04:07:54 -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 S1728849AbfBLLzg (ORCPT + 99 others); Tue, 12 Feb 2019 06:55:36 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:35174 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbfBLLzf (ORCPT ); Tue, 12 Feb 2019 06:55:35 -0500 Received: by mail-qt1-f196.google.com with SMTP id p48so2570507qtk.2; Tue, 12 Feb 2019 03:55:35 -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=7pt1pIylMphZsqbPnqLVS/36YT2mMK9EUnitZsTxbOM=; b=F6w8fcAEgUFiw0dGHMxpg1XiGLL71i1oRRf29K6UG0GeCX1ATDL7nIOkGlyEPRAsmv RO2bjwZ4lZU3+r9+UKMkFf4zb6iXgvaYcDkuZJB7aWBwQCdqNs87Lh7/mme+sArXvG9a HAT3odC6gHEId1fUOJdZieTggDrv4Zya0hxrjnggNaolu5Gene1l7ONkdoawZCyb2vY3 ezowg2sogBB+qGg1O/GstbZwQB7Zk8fpMFV5W4FROmFysECmPveHwbzw9O5YWfkjFZwg H5c8YhiuQ73ooV/Tk2O09DeqwEj1YXilZn7peSS7zV78cFlABabt5ZrjMsWxOYpO/Ug8 kkmg== X-Gm-Message-State: AHQUAuZ8Z+y4AwI0Q8z8N3z3Xpg3EPXYVwoxJ/VXem6jTFATpeXmrQ2A U8x//+A/r63yLh9UQ4ZIztHiTx/sZM4tuGbLkyw= X-Received: by 2002:ac8:4141:: with SMTP id e1mr2365976qtm.96.1549972534781; Tue, 12 Feb 2019 03:55:34 -0800 (PST) MIME-Version: 1.0 References: <20190211174544.4302-1-will.deacon@arm.com> <20190211174544.4302-2-will.deacon@arm.com> In-Reply-To: <20190211174544.4302-2-will.deacon@arm.com> From: Arnd Bergmann Date: Tue, 12 Feb 2019 12:55:17 +0100 Message-ID: Subject: Re: [PATCH 1/2] asm-generic/io: Pass result on inX() accessor to __io_par() To: Will Deacon Cc: linux-arch , Linux Kernel Mailing List , andrew.murray@arm.com, Catalin Marinas , linux-riscv@lists.infradead.org, Palmer Dabbelt , Albert Ou 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 On Mon, Feb 11, 2019 at 6:45 PM Will Deacon wrote: > > The inX() I/O accessors must enforce ordering against subsequent calls > to the delay() routines, so that a read-back from a device can be used > to postpone a subsequent write to the same device. > > On some architectures, including arm64, this ordering can only be > achieved by creating a dependency on the value returned by the inX() > operation, so we need to pass the value we read to the __io_par() > macro in this case. > > Reported-by: Andrew Murray > Signed-off-by: Will Deacon > --- > include/asm-generic/io.h | 8 ++++---- For changing the asm-generic file in the arm64 tree, Acked-by: Arnd Bergmann For all I can see, this should not conflict with the usage of the same macros on RISC-V, though it does make add a significant difference, so I'd like to see an Ack from the RISC-V folks as well (added to Cc), or possibly a change to arch/riscv/include/asm/io.h to do a corresponding change. Arnd