Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp271903rwi; Tue, 18 Oct 2022 17:36:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6b3NSJ4h7wJfUEs/SY9u4ixxrezN7AjarXAog6wHXN1qDKf1Zh9Wu06r9SggeQhFIhCNs+ X-Received: by 2002:a17:90a:7787:b0:20d:3093:ae7f with SMTP id v7-20020a17090a778700b0020d3093ae7fmr40332774pjk.226.1666139802260; Tue, 18 Oct 2022 17:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666139802; cv=none; d=google.com; s=arc-20160816; b=eAKIeocs/0k9PAqpyqLNqOArHkNULpvckReJPMl7YHToyZRVQRvqo2dHNyAqN/nNzc vf/Me4G64/PN9QRdYh4Gmov47D6t3IU8SzIf67Du1MirLD/LsC55xBN5CCZEHRyrlcEj lBWQEJ3WoEA1kVSqbCVdgNd3kyBRth2qlmGcOlKoAScFbcVBnooi2OmZU93NNvKx0qs0 HYTFfBw3V6bjVHviMqfOWX+pFQSinR671a/nccYIal2zK/UnWPQpVVZIJISBGyqAan6m ySb16ikU0VQJedlDLfFdVINkEMvHgnRvx6pAF8OHm0Br2SUXaun5HWAgOaU/CwmxXZYX 9n+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OeOa45B93JvYwgR1hDKpdl7iPLUwP3auE5S9Nrg+8/s=; b=FthifASniYNK/M4W5Gl1es1ki1QvJxvWRLz5q1KlOulLxbLYb45oUPdRX+aYj7C/oc iwtlWGQGPslLGzHf3XcQHdSrR58UTXL7XRU/ZKqPaTnbT2XFfnOQzAdwQHwV+e1H41/Z Bh4FHehOG1FITjBSVy8O2NULQUSBOoYqwszyqfAvWJFj+XDFs31LnvNOnjzrRItvHCBQ YJu2mHwqEMORDwAOthSB+AcOZTnaHUva8TnBje2foPcTLGxJRKEhQytj6eqZ9XV3V7Uy EX+C+p34ZABcb7DbLBooPLLlykqcSuYy4cFF3tyKaE8c9QXO/PZizYT+4V4bZypbu7tE BWDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=goxk4O0y; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 33-20020a631261000000b004629ce15656si17447193pgs.196.2022.10.18.17.36.30; Tue, 18 Oct 2022 17:36:42 -0700 (PDT) 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=goxk4O0y; 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 S229841AbiJSA0A (ORCPT + 99 others); Tue, 18 Oct 2022 20:26:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbiJSAZz (ORCPT ); Tue, 18 Oct 2022 20:25:55 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA0AEBC468 for ; Tue, 18 Oct 2022 17:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666139153; 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=OeOa45B93JvYwgR1hDKpdl7iPLUwP3auE5S9Nrg+8/s=; b=goxk4O0ywAouGcPCh2vx7two0VfoAA19EfyOwSD/cKnyQUPcSI7k/FN/L8sjDVu+z0RnUe cO74Lg9y6euxkEt/t3MtC8C//2dz+ONoiaapUxcups6sua/lamn2sLGb0rV3mhzH4+G4ra Ve/cdg+CypVqaCTv0T++LMJSgK2xRyU= 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-520-OqOberSEOZ2v8-pjdQdPsw-1; Tue, 18 Oct 2022 20:25:50 -0400 X-MC-Unique: OqOberSEOZ2v8-pjdQdPsw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6830980280D; Wed, 19 Oct 2022 00:25:49 +0000 (UTC) Received: from localhost (ovpn-12-35.pek2.redhat.com [10.72.12.35]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AE99C84426; Wed, 19 Oct 2022 00:25:47 +0000 (UTC) Date: Wed, 19 Oct 2022 08:25:42 +0800 From: Baoquan He To: Christophe Leroy Cc: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "akpm@linux-foundation.org" , "hch@infradead.org" , "agordeev@linux.ibm.com" , "wangkefeng.wang@huawei.com" , "schnelle@linux.ibm.com" , "David.Laight@aculab.com" , "shorne@gmail.com" Subject: Re: [RFC PATCH 0/8] mm: ioremap: Convert architectures to take GENERIC_IOREMAP way (Alternative) Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Spam-Status: No, score=-2.4 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=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org On 10/17/22 at 05:06pm, Christophe Leroy wrote: > Hi Baoquan, > > Le 17/10/2022 ? 02:37, Baoquan He a ?crit?: > > Hi Christophe, > > > > On 10/12/22 at 12:09pm, Christophe Leroy wrote: > >> From: > >> > >> As proposed in the discussion related to your series, here comes an > >> exemple of how it could be. > >> > >> I have taken it into ARC and IA64 architectures as an exemple. This is > >> untested, even not compiled, it is just to illustrated my meaning in the > >> discussion. > >> > >> I also added a patch for powerpc architecture, that one in tested with > >> both pmac32_defconfig and ppc64_le_defconfig. > >> > >> From my point of view, this different approach provide less churn and > >> less intellectual disturbance than the way you do it. > > > > Yes, I agree, and admire your insistence on the thing you think right or > > better. Learn from you. > > > > When you suggested this in my v2 post, I made a draft patch at below link > > according to your suggestion to request people to review. What worried > > me is that I am not sure it's ignored or disliked after one week of > > waiting. > > > > https://lore.kernel.org/all/YwtND%2FL8xD+ViN3r@MiWiFi-R3L-srv/#related > > > > Up to now, seems people don't oppose this generic_ioremap_prot() way, we > > can take it. So what's your plan? You want me to continue with your > > patches wrapped in, or I can leave it to you if you want to take over? > > I don't plan to steal your work. If you feel confortable with my > proposal, feel free to continue with it and amplify it. You have done > most of the job, you have a clear view of all subtilities in the > different architectures, so please continue, I don't plan to take over > the good work you've done until now. > > The only purpose of my series was to illustrate my comments and convince > myself it was a possible way, nothing more. Thanks a lot for all these you have done, I will post another version with the introducing generic_ioremap_prot() way you suggesed.