Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp499130ybl; Wed, 8 Jan 2020 00:36:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyyWAk+LxO+hizZXM5D78j6BV2JfIvPjFbNe+wrYVOnYzX5wgKTodIbWhMaR5jucNy1BJNx X-Received: by 2002:a05:6830:20d3:: with SMTP id z19mr3148256otq.330.1578472592675; Wed, 08 Jan 2020 00:36:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578472592; cv=none; d=google.com; s=arc-20160816; b=SdtbhsltxNHFFyz8ilLpqheEcchmvOKDjvJiWtk5XXoxqPxdJqNm4FMdy7XBbmFMLX wqD/BzDJJC8i12ni+OryuMzrWdUKKeNzacUJx8XqGhrm3eBR5sdIalVIzA86nUdPZFlV C+GQpfO3oPa/VjZ7Yn1GHd/V3EtG88eXeGMBBnIaDKQIvVpnC+W6eorO6MV9m44+Xbps Tv/NyVpXKi+U2iFDsphXdlKc9sRdwzMY5EaC3U7DYswgVWtIIDqVyYxASP3VlQhin2cD C5ib59CdDHC3tof++GgJzntxbc0XPdERC8MLChiE37OWYLia1zdyz2ytRFf3lHDB2IEk 5Gog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=pyCqgPPZ7kRofrDb80nScePrylWdxYR2l2/ULCClPrs=; b=vFUV48vyggg17e8keZJ+jNOkgEhUHYPP+B4skZnUV83M4nfazCOUhISdIo5bPZ5na/ li+kfPgA6SvZjpmmiVV0KReB9tJJCPyuFvBTNHKgxBhGKlgKqgYo9UIIMusjiBKXeaF2 +MYDDFe+7ubEUO3yMafBl9/xmqjq0bocQ6q3TIG+6kuFNyeq5dpRHmJKt6pLn++bhQ4D u0RIyM8TPQR+X3Ik0ULOFmD2Rkpt0v8/JdFpzqx/7mDVTgyXpCjdQB5MQMZ4Xttio7Gf knl5N53s3FRcxF9/Od4qXwQlCHgXf1cO0uYlmiW3mwZoODp1Fvqbqoe0N3SqRJRvY86H dKAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=fxUelGuu; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 w23si1467186otp.109.2020.01.08.00.36.11; Wed, 08 Jan 2020 00:36:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=fxUelGuu; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727283AbgAHIf6 (ORCPT + 99 others); Wed, 8 Jan 2020 03:35:58 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:54687 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726313AbgAHIf5 (ORCPT ); Wed, 8 Jan 2020 03:35:57 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 47t2dP2tfYz9v3gf; Wed, 8 Jan 2020 09:35:53 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=fxUelGuu; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id I0TjIRBHFA-4; Wed, 8 Jan 2020 09:35:53 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 47t2dP1Xwtz9v3gS; Wed, 8 Jan 2020 09:35:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1578472553; bh=pyCqgPPZ7kRofrDb80nScePrylWdxYR2l2/ULCClPrs=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=fxUelGuuZbXfGsWb57/3BxUjvtvdC/2QbyAEo6YqIvKJAL5rv4xC8YAPDeq7nhud3 dkB/UdAQUigd1rFWPHMhgX/6Fa4jCdXgPI62S3zygNDeTcqR1ZOBKH62ej2i0cflHq zb2g6a/VdTBtVa3azjNLc7pwBVFpYUnXR94BgWzQ= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2FF4A8B7EC; Wed, 8 Jan 2020 09:35:54 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id PkGUzhhRpTGx; Wed, 8 Jan 2020 09:35:54 +0100 (CET) Received: from [172.25.230.100] (po15451.idsi0.si.c-s.fr [172.25.230.100]) by messagerie.si.c-s.fr (Postfix) with ESMTP id BE1C98B7EA; Wed, 8 Jan 2020 09:35:53 +0100 (CET) Subject: Re: [RFT 00/13] iomap: Constify ioreadX() iomem argument To: Krzysztof Kozlowski , Geert Uytterhoeven Cc: Rich Felker , Jiri Slaby , "Michael S. Tsirkin" , David Airlie , Jason Wang , DRI Development , virtualization@lists.linux-foundation.org, "James E.J. Bottomley" , netdev , Paul Mackerras , Linux-Arch , Dave Jiang , Yoshinori Sato , Helge Deller , Linux-sh list , Alexey Brodkin , Ben Skeggs , nouveau@lists.freedesktop.org, Dave Airlie , Matt Turner , arcml , Nick Kossifidis , Allen Hubbe , Arnd Bergmann , alpha , Ivan Kokshaysky , Thomas Gleixner , Mauro Carvalho Chehab , Kalle Valo , Richard Henderson , Parisc List , Vineet Gupta , linux-wireless , Linux Kernel Mailing List , Luis Chamberlain , Daniel Vetter , Jon Mason , linux-ntb@googlegroups.com, Andrew Morton , Linux Media Mailing List , linuxppc-dev , "David S. Miller" References: <1578415992-24054-1-git-send-email-krzk@kernel.org> From: Christophe Leroy Message-ID: <2355489c-a207-1927-54cf-85c04b62f18f@c-s.fr> Date: Wed, 8 Jan 2020 09:35:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Le 08/01/2020 à 09:18, Krzysztof Kozlowski a écrit : > On Wed, 8 Jan 2020 at 09:13, Geert Uytterhoeven wrote: >> >> Hi Krzysztof, >> >> On Wed, Jan 8, 2020 at 9:07 AM Geert Uytterhoeven wrote: >>> On Tue, Jan 7, 2020 at 5:53 PM Krzysztof Kozlowski wrote: >>>> The ioread8/16/32() and others have inconsistent interface among the >>>> architectures: some taking address as const, some not. >>>> >>>> It seems there is nothing really stopping all of them to take >>>> pointer to const. >>> >>> Shouldn't all of them take const volatile __iomem pointers? >>> It seems the "volatile" is missing from all but the implementations in >>> include/asm-generic/io.h. >> >> As my "volatile" comment applies to iowrite*(), too, probably that should be >> done in a separate patch. >> >> Hence with patches 1-5 squashed, and for patches 11-13: >> Reviewed-by: Geert Uytterhoeven > > I'll add to this one also changes to ioreadX_rep() and add another > patch for volatile for reads and writes. I guess your review will be > appreciated once more because of ioreadX_rep() > volatile should really only be used where deemed necessary: https://www.kernel.org/doc/html/latest/process/volatile-considered-harmful.html It is said: " ... accessor functions might use volatile on architectures where direct I/O memory access does work. Essentially, each accessor call becomes a little critical section on its own and ensures that the access happens as expected by the programmer." Christophe