From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [RFT 00/13] iomap: Constify ioreadX() iomem argument Date: Wed, 8 Jan 2020 12:55:39 +0100 Message-ID: References: <1578415992-24054-1-git-send-email-krzk@kernel.org> <2355489c-a207-1927-54cf-85c04b62f18f@c-s.fr> <20200108091549.GB10145@pi3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200108091549.GB10145@pi3> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+gla-linux-snps-arc=m.gmane.org@lists.infradead.org To: Krzysztof Kozlowski Cc: Rich Felker , Jiri Slaby , "Michael S. Tsirkin" , David Airlie , ML nouveau , Jason Wang , DRI Development , virtualization@lists.linux-foundation.org, "James E.J. Bottomley" , Paul Mackerras , Linux-Arch , Dave Jiang , Yoshinori Sato , Helge Deller , Linux-sh list , Alexey Brodkin , Geert Uytterhoeven , Ben Skeggs , Dave Airlie , Matt Turner , arcml , Nick Kossifidis Allen Hubbe List-Id: linux-arch.vger.kernel.org On Wed, Jan 8, 2020 at 10:15 AM Krzysztof Kozlowski wrote: > > The __force-cast that removes the __iomem here also means that > > the 'volatile' keyword could be dropped from the argument list, > > as it has no real effect any more, but then there are a few drivers > > that mark their iomem pointers as either 'volatile void __iomem*' or > > (worse) 'volatile void *', so we keep it in the argument list to not > > add warnings for those drivers. > > > > It may be time to change these drivers to not use volatile for __iomem > > pointers, but that seems out of scope for what Krzysztof is trying > > to do. Ideally we would be consistent here though, either using volatile > > all the time or never. > > Indeed. I guess there are no objections around const so let me send v2 > for const only. Ok, sounds good. Maybe mention in the changelog then that the 'volatile' in the interface is intentionally left out, and that only users of readl/writel still have it to deal with existing drivers. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91A70C33C9E for ; Wed, 8 Jan 2020 11:58:49 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 16A00206ED for ; Wed, 8 Jan 2020 11:58:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 16A00206ED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 47t77V22PqzDqP8 for ; Wed, 8 Jan 2020 22:58:46 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=arndb.de (client-ip=212.227.126.131; helo=mout.kundenserver.de; envelope-from=arnd@arndb.de; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=arndb.de Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47t74P56HFzDqSH for ; Wed, 8 Jan 2020 22:56:04 +1100 (AEDT) Received: from mail-lj1-f173.google.com ([209.85.208.173]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MVaQW-1jEQZ83xhc-00RYPp for ; Wed, 08 Jan 2020 12:55:59 +0100 Received: by mail-lj1-f173.google.com with SMTP id j26so2975785ljc.12 for ; Wed, 08 Jan 2020 03:55:57 -0800 (PST) X-Gm-Message-State: APjAAAXmrH7V/KQd8p263tereDOlcmKc3MyzDoxu9yJ8us0iubM2X4ML 0Z4ZuAgyYw5DE5ePuzB+DWbzDvRdv3OhNZmWciA= X-Google-Smtp-Source: APXvYqx76A/E4Ch8oNBJvonZ2jianfqelDGhZdcoyIiElnwI+5tX58xf2+wQq15Hqyr3lM5AXUWKqh7e7QV64xZG5mc= X-Received: by 2002:a2e:9095:: with SMTP id l21mr2608508ljg.175.1578484556968; Wed, 08 Jan 2020 03:55:56 -0800 (PST) MIME-Version: 1.0 References: <1578415992-24054-1-git-send-email-krzk@kernel.org> <2355489c-a207-1927-54cf-85c04b62f18f@c-s.fr> <20200108091549.GB10145@pi3> In-Reply-To: <20200108091549.GB10145@pi3> From: Arnd Bergmann Date: Wed, 8 Jan 2020 12:55:39 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFT 00/13] iomap: Constify ioreadX() iomem argument To: Krzysztof Kozlowski Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:GpGVg+roauqG0RyfNc514djQLSC2VLz2E2flCE+th94Xc2dLOU2 +kJrCLMVXF09x93x0ywocIZfRaCkaiC8qUe1fgbfDQP+wsqmrimTn+tm8nK4aRLla8jGzN1 iGJvRZw4NPX76cwQx9RTVfsEvoVl/j/b1YGqIfcOQcgp6C6Ih+l9QVtk3hPC0hBN5Hqrlu+ qTtm3VnfNcwFEKx4vUtGQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:gL7BxHEkJkY=:R09LEnffKwDG4Y3xA9oGwi 6eBttfLn2vI/Dk/1W/pqNupnRuuhd+T+mk0hAHMO0EnGEgnMEDRVdBZK8Dt4teF+xOfLALmaI dnvcTCO1I/ejn5UofsKF7re0fDwxTcEX4cbaD9mVCGLBfzXDavUs4M3TxduZbCImDqPjETerN 8GKYWw1jBVlc8WPlqUL3Wgvy05iE8bCcC+3AethADCbP6jmjWLICdTmBYQ3sC7/6h8gSqmxrU gDeVCyjdkAkycaW5AI9ZyUUGi2aXAuZxADD5dknsM3PA9NpEX9QBjVQiowOCf5Gt1+mKaFjSi w3wRrl0MywrcMbBi1VSG4sB8fu2NLlOGNP3aZvprL9g7QJw9KRZwlW1gk9q+uhMhDkIlVwwAA bfQyd9qw7CCkwwTLDQGq9B8YVWntFlBbF9V8ptdUydvzXIukhTm4zejwwGz9VlesmU/ZU78Zl pRWamMfPrwRLBlOAB+sbREZb0LrqynrjPc7dcNKNh49QCgW64R7tnkPF/sXm0x3ytAjdyCaIM IM433WyWdNqiNmUYXsj4OEOSZW8nYWUKH6w+Mjh4sWK07HW/HNtMaxcsEWokRyoZZjWJRY3Fl 006U430v2Ik8RBxuTQ8K5wWMN6gpWtcIhckjSZhYbz+oeOm+P2eVH5VCsyy6FIL8CMKerC3FB /RX9522iBzabpG1Bo7LzK44ShhK5kHSConUir2amDqY/gsj+DW58XnVviT09QWsv0PeDRIzRI gf5EvdUfoYN4lCDo3RW2KbSiFnBOSvPHbl8GQSOhaKSI/LX7dGuBEJqp+Zy5mqfh7nO4UPJDM Uq+k5RkBNjIaPmYfGudvOD4xR9Oq1FhdGKl2jZcRReb9zX0EMelzwltr57IMBT/oxTNqhWt26 bsmDYnpYwNagHDMrF5fw== X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , Jiri Slaby , "Michael S. Tsirkin" , David Airlie , ML nouveau , Jason Wang , DRI Development , virtualization@lists.linux-foundation.org, "James E.J. Bottomley" , Paul Mackerras , Linux-Arch , Dave Jiang , Yoshinori Sato , Helge Deller , Linux-sh list , Alexey Brodkin , Geert Uytterhoeven , Ben Skeggs , Dave Airlie , Matt Turner , arcml , Nick Kossifidis , Allen Hubbe , Jon Mason , Ivan Kokshaysky , Thomas Gleixner , Mauro Carvalho Chehab , Kalle Valo , Richard Henderson , Parisc List , netdev , linux-wireless , Linux Kernel Mailing List , Luis Chamberlain , Vineet Gupta , Daniel Vetter , alpha , linux-ntb@googlegroups.com, Andrew Morton , Linux Media Mailing List , linuxppc-dev , "David S. Miller" Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Wed, Jan 8, 2020 at 10:15 AM Krzysztof Kozlowski wrote: > > The __force-cast that removes the __iomem here also means that > > the 'volatile' keyword could be dropped from the argument list, > > as it has no real effect any more, but then there are a few drivers > > that mark their iomem pointers as either 'volatile void __iomem*' or > > (worse) 'volatile void *', so we keep it in the argument list to not > > add warnings for those drivers. > > > > It may be time to change these drivers to not use volatile for __iomem > > pointers, but that seems out of scope for what Krzysztof is trying > > to do. Ideally we would be consistent here though, either using volatile > > all the time or never. > > Indeed. I guess there are no objections around const so let me send v2 > for const only. Ok, sounds good. Maybe mention in the changelog then that the 'volatile' in the interface is intentionally left out, and that only users of readl/writel still have it to deal with existing drivers. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4218EC3F68F for ; Wed, 8 Jan 2020 11:56:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 16E31205F4 for ; Wed, 8 Jan 2020 11:56:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AnCuaiFf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 16E31205F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PV+Uan/Mfkwq5WelOakWyrHULpkUVZf0PlVgKrt25I8=; b=AnCuaiFfX2UgXq HOBapo2BhfYXmi/9jtUppMuoBW1II9VU8u4JHN4NANS8Fn4CSiS+1ko8DD3JgumS9ZYD1hOq6Qdqh ZzoY9IF23WycOuMFMOHOz8fTohHHIEUfXNyrfG70aisYzRjAwIYrcfDu+yRzmqHIJA5IiuW0y8v6X KeIkKOszMIN2BlKv/Qm3y8WwU01UG1F5xcxJwUU3X8udCEy/hOs0ZDWTD3MgLteecH+Vz2uStoWKj YcsfH4ureWXN0ZaGesxXjLkFL0K/CM2hfgvhEHfTyo/5Pwfy2n92WI+1zCw/8/HvGC0rortDkESNk vVL5wsDmhwWuvU0ZNFow==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ip9wQ-0003WW-5Y; Wed, 08 Jan 2020 11:56:02 +0000 Received: from mout.kundenserver.de ([212.227.126.135]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ip9wN-0003W8-P5 for linux-snps-arc@lists.infradead.org; Wed, 08 Jan 2020 11:56:01 +0000 Received: from mail-lj1-f180.google.com ([209.85.208.180]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MMXDj-1j5ri628Pf-00JX1r for ; Wed, 08 Jan 2020 12:55:57 +0100 Received: by mail-lj1-f180.google.com with SMTP id h23so2998432ljc.8 for ; Wed, 08 Jan 2020 03:55:57 -0800 (PST) X-Gm-Message-State: APjAAAX005CDUTRFS24lmdfsIbh5pJ6/yoHLZDA4F/FIhdeTt6txkb/4 QnHJ+2ZMOijFy2IHWTSV1I3waSPGnCbvIpUIhhA= X-Google-Smtp-Source: APXvYqx76A/E4Ch8oNBJvonZ2jianfqelDGhZdcoyIiElnwI+5tX58xf2+wQq15Hqyr3lM5AXUWKqh7e7QV64xZG5mc= X-Received: by 2002:a2e:9095:: with SMTP id l21mr2608508ljg.175.1578484556968; Wed, 08 Jan 2020 03:55:56 -0800 (PST) MIME-Version: 1.0 References: <1578415992-24054-1-git-send-email-krzk@kernel.org> <2355489c-a207-1927-54cf-85c04b62f18f@c-s.fr> <20200108091549.GB10145@pi3> In-Reply-To: <20200108091549.GB10145@pi3> From: Arnd Bergmann Date: Wed, 8 Jan 2020 12:55:39 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFT 00/13] iomap: Constify ioreadX() iomem argument To: Krzysztof Kozlowski X-Provags-ID: V03:K1:Jh4aSERFyuMvi2p0cpvYJjDEWJuqtB3BQWCXhX3TvvL+MaxQdgE DmX+MVBPVZzkLcqlvJ+zCJFB0xEHkNKmMIAfLCqmszqolTwT4yQZLoZycjqZTtMUiowhVFy fJbRHOe8qp/sAWczZuWVzqH08zU/K90VL2ruGjsNiiAz/lJbgBTUf1kKfqQXJ9IFKiAYbDd aql+Jl3saWJYgI48LonBg== X-UI-Out-Filterresults: notjunk:1;V03:K0:wCkE0CD/3PM=:IPEawwgVY5WSZ4kDYJOzml fQRnqjWZ+uw8HFj1LNMDhwmCH2fDi7opD8DzcrzmAK8wnXAQjZTpow4zLnb3FojFz+94n689L mCB5AUVyYxTmN3UwBcRLxzNNocOa2SWQ86stFDHvHAmCUIhtsPva07m5fkm1XFBVm9G8BKg42 ZBdipa2qZLWkXf1lJK9dnOoB9iejeczF8ROcJF3QTOKDKoHdTU+i9qACqUe9i5bjBMXjWdcny gKfE4EzI7DMXV1ps1SDhhqX/RMceEhfYi4eHlT5rINXb9x9kEanV4kcVz4446JclIcfLARFJK C75aoKWZG1U1Lxyx4GVK+T4x4cf3RNpPiBkTjYAP2UgHFp+lkFi9qN75X2zxt3nf/UoRYmDL2 coRBebxhq91Y88E0bpZ0xseolM5sCFjZQnvCirrU+lBpQSSmVZ5uFKhietir+CWWv13S9Bqu2 Vs94DKWWwhRiXdyjYk7l6GLVqnSTc9Jn25q7l0Br+o8UA1Xl7gmspVX49TqJ0mqZhqydTAtef VF9JqJkpJrfSu9NgTje28QbkNcQtXHMVm7D61peXklNqbASBueWoerREy8T4yq6ehdjgJkgac nx8mvAKanFhCZKJFfSiGtMct8bFsLPsYpqbKWcYYPkVyWfL8gMLvOJwoy3CQ2B8j7koR9kvbF vGEl/wBzFUi2fuSyWAxXt2vl8Cd57exAErvyUPaaCU0tiDIkF17vm7o8eS3TdlzxCsqU16W3S EaTq5MygAWNLSaYZmQnVfp8znSiMx9lJ0aA3SY40fW5HIvMORyJS0ua4hl4gCxKQ3mm4RJpce g4Mg5wDSFz9ITw70D1LJBpGM93dMSe0KnLXhmWwothdLko95vKaqkk36m9dLbZBpPlMAg+/36 KmQCQH/1kH7fOv/RDYUw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200108_035600_109247_7849A53C X-CRM114-Status: GOOD ( 15.40 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , Jiri Slaby , "Michael S. Tsirkin" , David Airlie , ML nouveau , Jason Wang , DRI Development , virtualization@lists.linux-foundation.org, "James E.J. Bottomley" , Paul Mackerras , Linux-Arch , Dave Jiang , Yoshinori Sato , Helge Deller , Linux-sh list , Alexey Brodkin , Geert Uytterhoeven , Ben Skeggs , Dave Airlie , Matt Turner , arcml , Nick Kossifidis , Allen Hubbe , Jon Mason , Ivan Kokshaysky , Thomas Gleixner , Mauro Carvalho Chehab , Kalle Valo , Richard Henderson , Christophe Leroy , Parisc List , netdev , linux-wireless , Linux Kernel Mailing List , Luis Chamberlain , Vineet Gupta , Daniel Vetter , alpha , linux-ntb@googlegroups.com, Andrew Morton , Linux Media Mailing List , linuxppc-dev , "David S. Miller" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org On Wed, Jan 8, 2020 at 10:15 AM Krzysztof Kozlowski wrote: > > The __force-cast that removes the __iomem here also means that > > the 'volatile' keyword could be dropped from the argument list, > > as it has no real effect any more, but then there are a few drivers > > that mark their iomem pointers as either 'volatile void __iomem*' or > > (worse) 'volatile void *', so we keep it in the argument list to not > > add warnings for those drivers. > > > > It may be time to change these drivers to not use volatile for __iomem > > pointers, but that seems out of scope for what Krzysztof is trying > > to do. Ideally we would be consistent here though, either using volatile > > all the time or never. > > Indeed. I guess there are no objections around const so let me send v2 > for const only. Ok, sounds good. Maybe mention in the changelog then that the 'volatile' in the interface is intentionally left out, and that only users of readl/writel still have it to deal with existing drivers. Arnd _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57406C33C9E for ; Wed, 8 Jan 2020 11:56:02 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 32FEB205F4 for ; Wed, 8 Jan 2020 11:56:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 32FEB205F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AA68C6E1BC; Wed, 8 Jan 2020 11:56:01 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7B4ED6E1BC; Wed, 8 Jan 2020 11:55:59 +0000 (UTC) Received: from mail-lj1-f176.google.com ([209.85.208.176]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPSA (Nemesis) id 1M3VAI-1iphuB2d62-000dJk; Wed, 08 Jan 2020 12:55:57 +0100 Received: by mail-lj1-f176.google.com with SMTP id l2so3013473lja.6; Wed, 08 Jan 2020 03:55:57 -0800 (PST) X-Gm-Message-State: APjAAAXtpk+eU8G/XidDm1NhiBX5iI5vQzRD5Doqo3WjPpQss9/6tF4/ lO0Z/6KcADBCunW1KGzqtJqfaQ5H+0Nocb/I6FQ= X-Google-Smtp-Source: APXvYqx76A/E4Ch8oNBJvonZ2jianfqelDGhZdcoyIiElnwI+5tX58xf2+wQq15Hqyr3lM5AXUWKqh7e7QV64xZG5mc= X-Received: by 2002:a2e:9095:: with SMTP id l21mr2608508ljg.175.1578484556968; Wed, 08 Jan 2020 03:55:56 -0800 (PST) MIME-Version: 1.0 References: <1578415992-24054-1-git-send-email-krzk@kernel.org> <2355489c-a207-1927-54cf-85c04b62f18f@c-s.fr> <20200108091549.GB10145@pi3> In-Reply-To: <20200108091549.GB10145@pi3> From: Arnd Bergmann Date: Wed, 8 Jan 2020 12:55:39 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFT 00/13] iomap: Constify ioreadX() iomem argument To: Krzysztof Kozlowski X-Provags-ID: V03:K1:OLXxgklWfaLMhKuV8Wm8W39kUcHf4a+JyIfGa7uJ3yUjlTzpkyq eUd43K01aWA0i0ihiEp0mFdU1+/TaTZ/mvHEN/LvbjMgj+pw8G3G130nvwrLwWWZ9rkwc9y kIqJX9t0G2fM4p+HKuF78v7pt07b490bIVjM/G5rXC1PfGFIuGJzrH6CtWhepiGwo3n8FoV f9mNGXU4LtPGfMjnCSQHg== X-UI-Out-Filterresults: notjunk:1;V03:K0:k1T+yO7/AYI=:wC3ZSi6xX/4CO8QldrMdvY JOzpZSuOnyZeuROZmx2xIAHn/3tJjCqCfl+D7wo1n9saXZ2eUIm4HLndFSGzDVvvm01nRYsjX IhkaQf/a/tlicda2eH8CmWenZ2z0oi/Hg/5SpWBa5XCdmHaH5aqWvz1hNijlmfPJVpNmRiEek gf5E0EauCFUo/eHgBERs1Zx+fhkyqOx3wpS/tKnKDyjA3loKbKczpoAxPMiNfxwX39n+J8R05 n98+jXAUURpGT8fBQH71ucrLqI5inC9FWvQrPaVlAXy3ggQjmlTPnOo0fHqDPhKw+mZWhHwrZ 5R8mE9dgM9gd4rVAGDqevM8kYL9VweOFm1aCRHDRH0X9Db7Ta2w9bOgrEBTOYqnSgCR4Yx0cE SPsAEmWWFWdwVNgAob7EgVNz67ZPHdvxPoDMbBXbLcWm1tLZoRRqLS6Gx08MLqOQCJI5ufBaf TdlqSWo5wgYc5Istd7nU3/JfFsXK26QdgGERofOrDvUk7v7LQgR/SD12YeuqiXMGEHeLW2ZEs w51Brg7z9ATxU9rc3lrFTyXAgdGg0qc+v/ua2ztsQf0r2bS+boy6Dsd6JtERtyetIsqIZj3eE a0ry8Opmz4QUO47vFtYuTfDq2VSyI7uoro1845lHmn9/OQpQq4ZLJ1e+wFQLKT9wWQIHHxQKY X0CbsTm4C/pg/ATi7nvKDXtHO+WNsRmYXxt6h97uVxYUVHs/0eNGuZ9t9B6MS6sg0aLiwXz0S aUn97u2vvRkanwYSEh6N4l8qIlPXGc+W5Ia4gHR4ScnqV6FYWCudsdFdL0NjFKkf/7mZQ8Kaw dsqRye3wNWFASPvIud6fqJKCLOITeL5k8vAftrql30E4S2C4niX9a1scUQyxGYgjyw5KkQ2sI 4pcaTkoVVB8VBrmP+Xlw== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , Jiri Slaby , "Michael S. Tsirkin" , David Airlie , ML nouveau , Jason Wang , DRI Development , virtualization@lists.linux-foundation.org, "James E.J. Bottomley" , Paul Mackerras , Linux-Arch , Dave Jiang , Yoshinori Sato , Helge Deller , Linux-sh list , Alexey Brodkin , Geert Uytterhoeven , Ben Skeggs , Dave Airlie , Matt Turner , arcml , Nick Kossifidis , Allen Hubbe , Jon Mason , Ivan Kokshaysky , Thomas Gleixner , Mauro Carvalho Chehab , Kalle Valo , Richard Henderson , Christophe Leroy , Parisc List , netdev , linux-wireless , Linux Kernel Mailing List , Luis Chamberlain , Vineet Gupta , alpha , linux-ntb@googlegroups.com, Andrew Morton , Linux Media Mailing List , linuxppc-dev , "David S. Miller" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Wed, Jan 8, 2020 at 10:15 AM Krzysztof Kozlowski wrote: > > The __force-cast that removes the __iomem here also means that > > the 'volatile' keyword could be dropped from the argument list, > > as it has no real effect any more, but then there are a few drivers > > that mark their iomem pointers as either 'volatile void __iomem*' or > > (worse) 'volatile void *', so we keep it in the argument list to not > > add warnings for those drivers. > > > > It may be time to change these drivers to not use volatile for __iomem > > pointers, but that seems out of scope for what Krzysztof is trying > > to do. Ideally we would be consistent here though, either using volatile > > all the time or never. > > Indeed. I guess there are no objections around const so let me send v2 > for const only. Ok, sounds good. Maybe mention in the changelog then that the 'volatile' in the interface is intentionally left out, and that only users of readl/writel still have it to deal with existing drivers. Arnd _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.17.24]) by gmr-mx.google.com with ESMTPS id v16si124925lfd.2.2020.01.08.03.55.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jan 2020 03:55:58 -0800 (PST) Received: from mail-lj1-f173.google.com ([209.85.208.173]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MiJhQ-1jJI1z47Ak-00fSqW for ; Wed, 08 Jan 2020 12:55:58 +0100 Received: by mail-lj1-f173.google.com with SMTP id y4so2995150ljj.9 for ; Wed, 08 Jan 2020 03:55:57 -0800 (PST) MIME-Version: 1.0 References: <1578415992-24054-1-git-send-email-krzk@kernel.org> <2355489c-a207-1927-54cf-85c04b62f18f@c-s.fr> <20200108091549.GB10145@pi3> In-Reply-To: <20200108091549.GB10145@pi3> From: Arnd Bergmann Date: Wed, 8 Jan 2020 12:55:39 +0100 Message-ID: Subject: Re: [RFT 00/13] iomap: Constify ioreadX() iomem argument Content-Type: text/plain; charset="UTF-8" To: Krzysztof Kozlowski Cc: Christophe Leroy , Geert Uytterhoeven , 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 , ML nouveau , Dave Airlie , Matt Turner , arcml , Nick Kossifidis , Allen Hubbe , 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" List-ID: On Wed, Jan 8, 2020 at 10:15 AM Krzysztof Kozlowski wrote: > > The __force-cast that removes the __iomem here also means that > > the 'volatile' keyword could be dropped from the argument list, > > as it has no real effect any more, but then there are a few drivers > > that mark their iomem pointers as either 'volatile void __iomem*' or > > (worse) 'volatile void *', so we keep it in the argument list to not > > add warnings for those drivers. > > > > It may be time to change these drivers to not use volatile for __iomem > > pointers, but that seems out of scope for what Krzysztof is trying > > to do. Ideally we would be consistent here though, either using volatile > > all the time or never. > > Indeed. I guess there are no objections around const so let me send v2 > for const only. Ok, sounds good. Maybe mention in the changelog then that the 'volatile' in the interface is intentionally left out, and that only users of readl/writel still have it to deal with existing drivers. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [RFT 00/13] iomap: Constify ioreadX() iomem argument Date: Wed, 8 Jan 2020 12:55:39 +0100 Message-ID: References: <1578415992-24054-1-git-send-email-krzk@kernel.org> <2355489c-a207-1927-54cf-85c04b62f18f@c-s.fr> <20200108091549.GB10145@pi3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PV+Uan/Mfkwq5WelOakWyrHULpkUVZf0PlVgKrt25I8=; b=AnCuaiFfX2UgXq HOBapo2BhfYXmi/9jtUppMuoBW1II9VU8u4JHN4NANS8Fn4CSiS+1ko8DD3JgumS9ZYD1hOq6Qdqh ZzoY9IF23WycOuMFMOHOz8fTohHHIEUfXNyrfG70aisYzRjAwIYrcfDu+yRzmqHIJA5IiuW0y8v6X KeIkKOszMIN2BlKv/Qm3y8WwU01UG1F5xcxJwUU3X8udCEy/hOs0ZDWTD3MgLteecH+Vz2uStoWKj YcsfH4ureWXN0ZaGesxXjLkFL0K/CM2hfgvhEHfTyo/5Pwfy2n92WI+1zCw/8/HvGC0rortDkESNk vVL5wsDmhwWuvU0ZNFow==; In-Reply-To: <20200108091549.GB10145@pi3> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+gla-linux-snps-arc=m.gmane.org@lists.infradead.org To: Krzysztof Kozlowski Cc: Rich Felker , Jiri Slaby , "Michael S. Tsirkin" , David Airlie , ML nouveau , Jason Wang , DRI Development , virtualization@lists.linux-foundation.org, "James E.J. Bottomley" , Paul Mackerras , Linux-Arch , Dave Jiang , Yoshinori Sato , Helge Deller , Linux-sh list , Alexey Brodkin , Geert Uytterhoeven , Ben Skeggs , Dave Airlie , Matt Turner , arcml , Nick Kossifidis , Allen Hubbe On Wed, Jan 8, 2020 at 10:15 AM Krzysztof Kozlowski wrote: > > The __force-cast that removes the __iomem here also means that > > the 'volatile' keyword could be dropped from the argument list, > > as it has no real effect any more, but then there are a few drivers > > that mark their iomem pointers as either 'volatile void __iomem*' or > > (worse) 'volatile void *', so we keep it in the argument list to not > > add warnings for those drivers. > > > > It may be time to change these drivers to not use volatile for __iomem > > pointers, but that seems out of scope for what Krzysztof is trying > > to do. Ideally we would be consistent here though, either using volatile > > all the time or never. > > Indeed. I guess there are no objections around const so let me send v2 > for const only. Ok, sounds good. Maybe mention in the changelog then that the 'volatile' in the interface is intentionally left out, and that only users of readl/writel still have it to deal with existing drivers. Arnd