Message ID | 20230301102208.148490-1-bhe@redhat.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3551128wrd; Wed, 1 Mar 2023 02:25:35 -0800 (PST) X-Google-Smtp-Source: AK7set91ygASspixyOmr08UUvRvMiEdplYEh8pwUmKTAQzvYCEqe3nYWM5g+8HqCpInXc3AGrCyX X-Received: by 2002:a17:906:2c11:b0:8b1:ce91:a40c with SMTP id e17-20020a1709062c1100b008b1ce91a40cmr5393096ejh.53.1677666335541; Wed, 01 Mar 2023 02:25:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677666335; cv=none; d=google.com; s=arc-20160816; b=hBQjv0pgRfkSDDC6TlDTBmal71UyO8tgd37UFwnzARaGIS1ZMaWY8NY4ZF/i7uCzFe ZXZjV6oE/68b0RrU6gWkLuWhGug19/bQkUXMRqyms2iqPNkarF4HeuMk9QszSSupBNAY D5xoxEclHk15GcULAvhdRoeTkr3QusaIlVljWi7y00yDo2WondpY9uj/hzTQe0WG2BAy FMUEK43JiZjPA7Yws/CLJMkdFX1ZDH0Hx0RNxitcpkj02VVYMq5p41CQYHBh+7E4kKvl 5LWc9LZOhZbkku2w5pJzn//9T00g6UJPlOdSVgMiJXviIB+ZUaBGVqbhhYbqs7b2hwsG lKKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MMRQRl3t6hAKjtY5VRuUkJZdfgn6RD+/9pcPLSeWAJw=; b=AAuhPcdyhbK5pyENIZy43mWYAq4Yleuty+bLGAm7dkX/D7UGnn3WNQhEgELwPxkS7l c/MpC1iGM2lTAPF9fug7/L5szMQHAzFumkbB567VhECsbdJZa/6pxD96fcbH8i7J1tEw iM2PDLsyW8jnT+xn7ps7XQyMb3kWKkpSzDt9+yG1R+cTOZuwJSdeLALE9rgHMINxmEkG 5m1VouW9eagb5fTSFTE/PFvXjNgpJecFtXnQ1Ry40hrF/IZsfMl4kRZo99wPJN4B7C31 KxUGG38xS54Jpgw2pPNzPweaIg2ChHl/QqJIJjn7QW+MpM6oF+bqlbkJp2lYTGRO8aUa EfGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HoRo+6Ez; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q27-20020a170906389b00b008c7c78fee7asi4060957ejd.307.2023.03.01.02.25.11; Wed, 01 Mar 2023 02:25:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HoRo+6Ez; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229546AbjCAKXI (ORCPT <rfc822;dipsyhu@gmail.com> + 99 others); Wed, 1 Mar 2023 05:23:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjCAKXF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 1 Mar 2023 05:23:05 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCE0D3B3C0 for <linux-kernel@vger.kernel.org>; Wed, 1 Mar 2023 02:22:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677666139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MMRQRl3t6hAKjtY5VRuUkJZdfgn6RD+/9pcPLSeWAJw=; b=HoRo+6EzGujNBLtHNB5WLIOVf0pjPzE9TPsBW8HJPIMmOb6EuszSeCo2aFniqVXvssifYA mgYNO4PoByWDjPPqOvWj1SnsRsT/HNXP73pgK/gzKDox16v4ZLKv8EihQAUhZ8WYjsQHmk DYahyqY4CrtRtb/BS7BXnSw+MzaOCjA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-151--ajzeegeMgyallSEeClPog-1; Wed, 01 Mar 2023 05:22:15 -0500 X-MC-Unique: -ajzeegeMgyallSEeClPog-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 58311882820; Wed, 1 Mar 2023 10:22:15 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-13-180.pek2.redhat.com [10.72.13.180]) by smtp.corp.redhat.com (Postfix) with ESMTP id ED85D492C14; Wed, 1 Mar 2023 10:22:11 +0000 (UTC) From: Baoquan He <bhe@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, linux-mm@kvack.org, arnd@arndb.de, geert@linux-m68k.org, hch@infradead.org, mcgrof@kernel.org, Baoquan He <bhe@redhat.com> Subject: [PATCH v2 0/2] arch/*/io.h: remove ioremap_uc in some architectures Date: Wed, 1 Mar 2023 18:22:06 +0800 Message-Id: <20230301102208.148490-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759160655145347145?= X-GMAIL-MSGID: =?utf-8?q?1759160655145347145?= |
Series |
arch/*/io.h: remove ioremap_uc in some architectures
|
|
Message
Baoquan He
March 1, 2023, 10:22 a.m. UTC
This patchset tries to remove ioremap_uc() in the current architectures except of x86 and ia64. They will use the default ioremap_uc definition in <asm-generic/io.h> which returns NULL. If any arch sees a breakage caused by the default ioremap_uc(), it can provide a sepcific one for its own usage. v1->v2: - Update log of patch 2, and document related to ioremap_uc() according to Geert's comment. - Add Geert's Acked-by. Baoquan He (2): mips: add <asm-generic/io.h> including arch/*/io.h: remove ioremap_uc in some architectures Documentation/driver-api/device-io.rst | 11 ++++-- 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 | 47 +++++++++++++++++++++++++- arch/mips/include/asm/mmiowb.h | 2 -- 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 - 10 files changed, 55 insertions(+), 16 deletions(-)
Comments
On 03/01/23 at 06:22pm, Baoquan He wrote: > This patchset tries to remove ioremap_uc() in the current architectures > except of x86 and ia64. They will use the default ioremap_uc definition > in <asm-generic/io.h> which returns NULL. > > If any arch sees a breakage caused by the default ioremap_uc(), it can > provide a sepcific one for its own usage. Forgot mentioning this patchset is based on below patchset. [PATCH v5 00/17] mm: ioremap: Convert architectures to take GENERIC_IOREMAP way https://lore.kernel.org/all/20230301034247.136007-1-bhe@redhat.com/T/#u > > v1->v2: > - Update log of patch 2, and document related to ioremap_uc() > according to Geert's comment. > - Add Geert's Acked-by. > > Baoquan He (2): > mips: add <asm-generic/io.h> including > arch/*/io.h: remove ioremap_uc in some architectures > > Documentation/driver-api/device-io.rst | 11 ++++-- > 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 | 47 +++++++++++++++++++++++++- > arch/mips/include/asm/mmiowb.h | 2 -- > 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 - > 10 files changed, 55 insertions(+), 16 deletions(-) > > -- > 2.34.1 >
On Wed, Mar 01, 2023 at 06:22:06PM +0800, Baoquan He wrote: > This patchset tries to remove ioremap_uc() in the current architectures > except of x86 and ia64. They will use the default ioremap_uc definition > in <asm-generic/io.h> which returns NULL. > > If any arch sees a breakage caused by the default ioremap_uc(), it can > provide a sepcific one for its own usage. Feel free to add: Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Luis
On 03/02/23 at 11:57am, Luis Chamberlain wrote: > On Wed, Mar 01, 2023 at 06:22:06PM +0800, Baoquan He wrote: > > This patchset tries to remove ioremap_uc() in the current architectures > > except of x86 and ia64. They will use the default ioremap_uc definition > > in <asm-generic/io.h> which returns NULL. > > > > If any arch sees a breakage caused by the default ioremap_uc(), it can > > provide a sepcific one for its own usage. > > Feel free to add: > > Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Thanks for check. I made some changes according to comments, will repost. Please help review.