Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91A6EC6379F for ; Tue, 21 Feb 2023 11:46:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234360AbjBULqd (ORCPT ); Tue, 21 Feb 2023 06:46:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234327AbjBULqa (ORCPT ); Tue, 21 Feb 2023 06:46:30 -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 DE7F627D6A for ; Tue, 21 Feb 2023 03:45:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676979843; 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: in-reply-to:in-reply-to:references:references; bh=rMHzw2ydkY11A8KH8mnM5ZEO8BtRWeaIPv7LTXKpT14=; b=bfjx5sXDtC71SpcN0Lo2knoSDfccVz+S0lk4Yqzc5JRT/swSxeHjE/k5Hj1c8FnrCfT8LW LEE1GFDvn/OSvqPC4hYzV/Te2B4eDhq9xIKPkJ5ROkHV0CzxYyTHC9DnXZatLVUb0q/eRQ GyO64HA/wf4BJnm9e0AMTvW+IG3F6VU= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-131-LeicoknDNlaydltwoh845g-1; Tue, 21 Feb 2023 06:43:58 -0500 X-MC-Unique: LeicoknDNlaydltwoh845g-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6C497380673E; Tue, 21 Feb 2023 11:43:57 +0000 (UTC) Received: from localhost (ovpn-13-7.pek2.redhat.com [10.72.13.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 38D12C15BA0; Tue, 21 Feb 2023 11:43:54 +0000 (UTC) Date: Tue, 21 Feb 2023 19:43:51 +0800 From: Baoquan He To: Christophe Leroy Cc: Arnd Bergmann , Matthew Wilcox , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Andrew Morton , Christoph Hellwig , Alexander Gordeev , Kefeng Wang , Niklas Schnelle , David Laight , Stafford Horne , "James E . J . Bottomley" , Helge Deller , "linux-parisc@vger.kernel.org" Subject: Re: [PATCH v4 12/16] parisc: mm: Convert to GENERIC_IOREMAP Message-ID: References: <20230216123419.461016-1-bhe@redhat.com> <20230216123419.461016-13-bhe@redhat.com> <107be2c9-021b-85f6-d32d-ddb9e75ce24f@csgroup.eu> <97732d97-06a7-9307-7ad1-ef69d980f3d2@csgroup.eu> <73f98755-9230-c4d5-0e12-38e6f3b0a189@csgroup.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <73f98755-9230-c4d5-0e12-38e6f3b0a189@csgroup.eu> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/17/23 at 02:35pm, Christophe Leroy wrote: ...... > > Not so many: > > > > $ git grep ARCH_HAS_IOREMAP_WC? | grep define > > arch/loongarch/include/asm/io.h:#define ARCH_HAS_IOREMAP_WC > > arch/mips/include/asm/io.h:#define ARCH_HAS_IOREMAP_WC > > arch/powerpc/include/asm/io.h:#define ARCH_HAS_IOREMAP_WC > > arch/x86/include/asm/io.h:#define ARCH_HAS_IOREMAP_WC > > > > And also make sure they define ioremap_wc : > > > > $ git grep "define ioremap_wc" `git grep -l "define ARCH_HAS_IOREMAP_WC"` > > arch/loongarch/include/asm/io.h:#define ioremap_wc(offset, size)??????? \ > > arch/mips/include/asm/io.h:#define ioremap_wc(offset, size) > > ?????????????????????? \ > > arch/powerpc/include/asm/io.h:#define ioremap_wc ioremap_wc > > arch/x86/include/asm/io.h:#define ioremap_wc ioremap_wc > > > > > By the way there are so few, you can make all at once: OK, I will try to pack this into one preparation patch. Thanks. > > $ git grep ARCH_HAS_IOREMAP_ | grep define > arch/loongarch/include/asm/io.h:#define ARCH_HAS_IOREMAP_WC > arch/m68k/include/asm/kmap.h:#define ARCH_HAS_IOREMAP_WT > arch/mips/include/asm/io.h:#define ARCH_HAS_IOREMAP_WC > arch/powerpc/include/asm/io.h:#define ARCH_HAS_IOREMAP_WC > arch/powerpc/include/asm/io.h:#define ARCH_HAS_IOREMAP_WT > arch/x86/include/asm/io.h:#define ARCH_HAS_IOREMAP_WC > arch/x86/include/asm/io.h:#define ARCH_HAS_IOREMAP_WT > > Christophe