Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp232482rdb; Fri, 6 Oct 2023 01:32:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkMeS/TDK9xIUDGBHCP8m1jmJQBrCdqobj+yH1SGCzPresR4HbXSymmtaZLUOI5CyywdfJ X-Received: by 2002:a05:6a20:6a27:b0:15a:6733:24e2 with SMTP id p39-20020a056a206a2700b0015a673324e2mr5806114pzk.25.1696581173192; Fri, 06 Oct 2023 01:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696581173; cv=none; d=google.com; s=arc-20160816; b=VW9pHCkZsdRI26rSTep3aRG6lpbOHTR9a0xv95yG711yZif9ATnDe7sdjQPqMbE3XY l9Hy5LuBVIuca/zVvkahG+1KTMEJhXAVUcnDSPL857+motR794a6FmV6p1kzGxOPnpTn zPAsD3M1gFZHINqqkB/HTiB0jiKwGsSb9ypUniV4twfFwUw7MZr9VuMSlK2ro31JV6Fy T+A0R+hgEjgQ0um7RW0TIV9BGlB9uVv1ATqrZdo1b66LMUijby4xrz+KD7GMxGfHOaRa Ri3P2D+8XRlkBgZzouKfmkcPmfqnKZN5/HerwsXpSoaaFajQ7Dy36CDUoXLl7oBQMFXH Mlcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:autocrypt:references:in-reply-to:date:cc :to:from:subject:message-id; bh=E1m4F057Tnm7WOKiHdfvdR3KWrgE07rE/wXaPtdKjlw=; fh=rjNGm/YFyEnMm9hHW74QyIXeqbl49nbVIgsA13cECo8=; b=0esbeyTxiMqD6XjLI1x/m8VbM7nBNrqtZq+ZMRZ+2P//HJ+vrOtsTaWGxfbXkont14 lx4awMn0TPPA3TEbcdoOn1E86aIdtjfebiB+78sfuJcDJwfjkwLiQKEKaKOwfzmaneVG h6VlwdwyWxF3z+OUUQwB4PGKJnwLwgEWOan1IsXUjck0fyP8qYKYT/FRjYlBLgtaPJ8w zkRUhEG8bmIUNkZwIcn6e4xXHc2A0AhU/EwO+uAgkaXFC2lJljy0RTqeVR6z3vwzaYbA 4OKWtOcFCbKy/S9tzCdh3WhoMEaSYL8xBWo/G+HtFwnODYtFj+3jtY13bGKQjrTJzMlK 5YEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h7-20020a636c07000000b005704f061aecsi2990564pgc.279.2023.10.06.01.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 01:32:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4BCB085C4D4A; Fri, 6 Oct 2023 01:32:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231186AbjJFIcW convert rfc822-to-8bit (ORCPT + 99 others); Fri, 6 Oct 2023 04:32:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbjJFIcT (ORCPT ); Fri, 6 Oct 2023 04:32:19 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2366D83; Fri, 6 Oct 2023 01:32:15 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qogFl-002AIM-AA; Fri, 06 Oct 2023 10:32:09 +0200 Received: from dynamic-077-011-061-166.77.11.pool.telefonica.de ([77.11.61.166] helo=[192.168.1.12]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qogFl-003cs4-1p; Fri, 06 Oct 2023 10:32:09 +0200 Message-ID: <75ea07e52350df5d3581bd14939504f0896073aa.camel@physik.fu-berlin.de> Subject: Re: [PATCH v5 3/4] arch/*/io.h: remove ioremap_uc in some architectures From: John Paul Adrian Glaubitz To: Baoquan He , linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, arnd@arndb.de, jiaxun.yang@flygoat.com, mpe@ellerman.id.au, geert@linux-m68k.org, mcgrof@kernel.org, hch@infradead.org, tsbogend@alpha.franken.de, f.fainelli@gmail.com, deller@gmx.de, linux-alpha@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org Date: Fri, 06 Oct 2023 10:31:59 +0200 In-Reply-To: <20230921110424.215592-4-bhe@redhat.com> References: <20230921110424.215592-1-bhe@redhat.com> <20230921110424.215592-4-bhe@redhat.com> Autocrypt: addr=glaubitz@physik.fu-berlin.de; prefer-encrypt=mutual; keydata=mQINBE3JE9wBEADMrYGNfz3oz6XLw9XcWvuIxIlPWoTyw9BxTicfGAv0d87wngs9U+d52t/REggPePf34gb7/k8FBY1IgyxnZEB5NxUb1WtW0M3GUxpPx6g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Wgi66Ov9vdmClTHQSEjWDeLOiBj61xhr6A8KPUVaOpAYZWBH4OvtnmjwsKuNCFXym2DcCywdjEdrLC+Ms5g6Dkd60BQz4/kHA7x+P9IAkPqkaWAEyHoEvM1OcUPJzy/JW2vWDXo2jjM8PEQfNIPtqDzid1s8aDLJsPLWlJnfUyMP2ydlTtR54oiVBlFwqqHoPIaJrwTkND5lgFiMIwup3+giLiDOBILtiOSpYxBfSJkz3GGacOb4Xcj8AXV1tpUo1dxAKpJ1ro0YHLJvOJ8nLiZyJsCabUePNRFprbh+srI+WIUVRm0D33bI1VEH2XUXZBL+AmfdKXbHAYtZ0anKgDbcwvlkBcHpA85NpRqjUQ4OerPqtCrWLHDpEwGUBlaQ//AGix+L9c= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.50.0 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 77.11.61.166 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 06 Oct 2023 01:32:50 -0700 (PDT) On Thu, 2023-09-21 at 19:04 +0800, Baoquan He wrote: > ioremap_uc() is only meaningful on old x86-32 systems with the PAT > extension, and on ia64 with its slightly unconventional ioremap() > behavior. So remove the ioremap_uc() definition in architecutures > other than x86 and ia64. These architectures all have asm-generic/io.h > included and will have the default ioremap_uc() definition which > returns NULL. > > This changes the existing behaviour, while no need to worry about > any breakage because in the only callsite of ioremap_uc(), code > has been adjusted to eliminate the impact. Please see > atyfb_setup_generic() of drivers/video/fbdev/aty/atyfb_base.c. > > If any new invocation of ioremap_uc() need be added, please consider > using ioremap() intead or adding a ARCH specific version if necessary. > > Signed-off-by: Baoquan He > Acked-by: Geert Uytterhoeven > Acked-by: Michael Ellerman (powerpc) > Acked-by: Helge Deller # parisc > Cc: linux-alpha@vger.kernel.org > Cc: linux-hexagon@vger.kernel.org > Cc: linux-m68k@lists.linux-m68k.org > Cc: linux-mips@vger.kernel.org > Cc: linux-parisc@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org > Cc: linux-sh@vger.kernel.org > Cc: sparclinux@vger.kernel.org > --- > Documentation/driver-api/device-io.rst | 9 +++++---- > arch/alpha/include/asm/io.h | 1 - > arch/hexagon/include/asm/io.h | 3 --- > arch/m68k/include/asm/kmap.h | 1 - > arch/mips/include/asm/io.h | 1 - > arch/parisc/include/asm/io.h | 2 -- > arch/powerpc/include/asm/io.h | 1 - > arch/sh/include/asm/io.h | 2 -- > arch/sparc/include/asm/io_64.h | 1 - > 9 files changed, 5 insertions(+), 16 deletions(-) > > diff --git a/Documentation/driver-api/device-io.rst b/Documentation/driver-api/device-io.rst > index 2c7abd234f4e..d55384b106bd 100644 > --- a/Documentation/driver-api/device-io.rst > +++ b/Documentation/driver-api/device-io.rst > @@ -408,11 +408,12 @@ functions for details on the CPU side of things. > ioremap_uc() > ------------ > > -ioremap_uc() behaves like ioremap() except that on the x86 architecture without > -'PAT' mode, it marks memory as uncached even when the MTRR has designated > -it as cacheable, see Documentation/arch/x86/pat.rst. > +ioremap_uc() is only meaningful on old x86-32 systems with the PAT extension, > +and on ia64 with its slightly unconventional ioremap() behavior, everywhere > +elss ioremap_uc() defaults to return NULL. > > -Portable drivers should avoid the use of ioremap_uc(). > + > +Portable drivers should avoid the use of ioremap_uc(), use ioremap() instead. > > ioremap_cache() > --------------- > diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h > index 7aeaf7c30a6f..076f0e4e7f1e 100644 > --- a/arch/alpha/include/asm/io.h > +++ b/arch/alpha/include/asm/io.h > @@ -308,7 +308,6 @@ static inline void __iomem *ioremap(unsigned long port, unsigned long size) > } > > #define ioremap_wc ioremap > -#define ioremap_uc ioremap > > static inline void iounmap(volatile void __iomem *addr) > { > diff --git a/arch/hexagon/include/asm/io.h b/arch/hexagon/include/asm/io.h > index e2b308e32a37..b7bc246dbcb1 100644 > --- a/arch/hexagon/include/asm/io.h > +++ b/arch/hexagon/include/asm/io.h > @@ -174,9 +174,6 @@ static inline void writel(u32 data, volatile void __iomem *addr) > #define _PAGE_IOREMAP (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ > (__HEXAGON_C_DEV << 6)) > > -#define ioremap_uc(addr, size) ioremap((addr), (size)) > - > - > #define __raw_writel writel > > static inline void memcpy_fromio(void *dst, const volatile void __iomem *src, > diff --git a/arch/m68k/include/asm/kmap.h b/arch/m68k/include/asm/kmap.h > index 4efb3efa593a..b778f015c917 100644 > --- a/arch/m68k/include/asm/kmap.h > +++ b/arch/m68k/include/asm/kmap.h > @@ -25,7 +25,6 @@ static inline void __iomem *ioremap(unsigned long physaddr, unsigned long size) > return __ioremap(physaddr, size, IOMAP_NOCACHE_SER); > } > > -#define ioremap_uc ioremap > #define ioremap_wt ioremap_wt > static inline void __iomem *ioremap_wt(unsigned long physaddr, > unsigned long size) > diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h > index 41d8bd5adef8..1ecf255efb40 100644 > --- a/arch/mips/include/asm/io.h > +++ b/arch/mips/include/asm/io.h > @@ -170,7 +170,6 @@ void iounmap(const volatile void __iomem *addr); > */ > #define ioremap(offset, size) \ > ioremap_prot((offset), (size), _CACHE_UNCACHED) > -#define ioremap_uc ioremap > > /* > * ioremap_cache - map bus memory into CPU space > diff --git a/arch/parisc/include/asm/io.h b/arch/parisc/include/asm/io.h > index 366537042465..48630c78714a 100644 > --- a/arch/parisc/include/asm/io.h > +++ b/arch/parisc/include/asm/io.h > @@ -132,8 +132,6 @@ static inline void gsc_writeq(unsigned long long val, unsigned long addr) > > #define ioremap_wc(addr, size) \ > ioremap_prot((addr), (size), _PAGE_IOREMAP) > -#define ioremap_uc(addr, size) \ > - ioremap_prot((addr), (size), _PAGE_IOREMAP) > > #define pci_iounmap pci_iounmap > > diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h > index 0732b743e099..21bd3e8bffce 100644 > --- a/arch/powerpc/include/asm/io.h > +++ b/arch/powerpc/include/asm/io.h > @@ -900,7 +900,6 @@ void __iomem *ioremap_wt(phys_addr_t address, unsigned long size); > #endif > > void __iomem *ioremap_coherent(phys_addr_t address, unsigned long size); > -#define ioremap_uc(addr, size) ioremap((addr), (size)) > #define ioremap_cache(addr, size) \ > ioremap_prot((addr), (size), pgprot_val(PAGE_KERNEL)) > > diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h > index f2f38e9d489a..790bea22c9b5 100644 > --- a/arch/sh/include/asm/io.h > +++ b/arch/sh/include/asm/io.h > @@ -302,8 +302,6 @@ unsigned long long poke_real_address_q(unsigned long long addr, > ioremap_prot((addr), (size), pgprot_val(PAGE_KERNEL)) > #endif /* CONFIG_MMU */ > > -#define ioremap_uc ioremap > - > /* > * Convert a physical pointer to a virtual kernel pointer for /dev/mem > * access > diff --git a/arch/sparc/include/asm/io_64.h b/arch/sparc/include/asm/io_64.h > index 9303270b22f3..d8ee1442f303 100644 > --- a/arch/sparc/include/asm/io_64.h > +++ b/arch/sparc/include/asm/io_64.h > @@ -423,7 +423,6 @@ static inline void __iomem *ioremap(unsigned long offset, unsigned long size) > return (void __iomem *)offset; > } > > -#define ioremap_uc(X,Y) ioremap((X),(Y)) > #define ioremap_wc(X,Y) ioremap((X),(Y)) > #define ioremap_wt(X,Y) ioremap((X),(Y)) > static inline void __iomem *ioremap_np(unsigned long offset, unsigned long size) Acked-by: John Paul Adrian Glaubitz (SuperH) -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913