Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp787637rdh; Thu, 26 Oct 2023 16:19:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEiAk6ZCS9Y9OYZUDTIcUh07MHoriEHeRb18k230CjrFFjhd7HPl6LC2ZnZqmWs9asDSCH1 X-Received: by 2002:a25:548:0:b0:da0:c9e4:fab9 with SMTP id 69-20020a250548000000b00da0c9e4fab9mr929068ybf.57.1698362366897; Thu, 26 Oct 2023 16:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698362366; cv=none; d=google.com; s=arc-20160816; b=i5/slwTMUjXiaYTn+KhMfO8cWIq7IjuDe4OMi4haFM2ASMVlWSLYTyXk5v6VxDbluU 5j0KPMqwo63ZpbeyeGLyYFRHIcvK2xRoY8a3z/C+HuFvjgjjklHmWG12Oc5xhylv6432 1l3dTcj5ZyYIPTiIP84rtE1Z8/neG8jos4pBC6pOk4qxAwRjmyh0DZalUJg4mURKRjQs DV+JAy3xP7ez4sLQIuFDlmZ79BUckdUE58ldW/LvKlLT+40tCLeKbDl1D0K4EzdXN+0d CyfjjYggC2UAQfL5UGrob+iU96LMwQrdvTtBr3mg+IEg7cGsqYKp+VH6vmXEiXXmIheC zUow== 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=0k7pol6Ox9Lg+5J8guMydD0qxLzYw54p+yc1TXTXwYg=; fh=b3ACXy2wM2ETDMJb1Dj9DcL7RiMPAuqSrE/Tsot/ypw=; b=oRX8i3Fr/vS9QtcXy/fULFfFS/So+sY4FMJhWtGUJGYDWRtXJXpyfBRQ7SSysxp/B6 83C5vECq7cYY1s0fdyiET0XgZlqqrK5Sq18X10bqrudzX8par5Bi6VKWErDCPnbdKYN9 cSffppfUIBRnOM6WoTvoNF2d2zvY3nSrMS34YtBfG1newPsUT+nltbroGsDawUnQ+hJK Glau1vqyJu7A6qpRNTCsF2uyHVO7i+g2pOBOf5CfvKk1+RbNlfxgjKn5rZ2J6vTSSSgT 1Nm5cxZkGJHPFMDapzDrB3Xmw6l2XV1VSqx++nTF3tHcX66Q9/ORLjSfytoTY1livBVQ 9gVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g9GL2scB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id e129-20020a253787000000b00da034186eaasi665939yba.431.2023.10.26.16.19.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 16:19:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g9GL2scB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 15B3081F37A4; Thu, 26 Oct 2023 16:19:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231410AbjJZXTN (ORCPT + 99 others); Thu, 26 Oct 2023 19:19:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbjJZXTM (ORCPT ); Thu, 26 Oct 2023 19:19:12 -0400 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 2535A1A7 for ; Thu, 26 Oct 2023 16:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698362303; 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=0k7pol6Ox9Lg+5J8guMydD0qxLzYw54p+yc1TXTXwYg=; b=g9GL2scBif2VS0n/SGOeZeIAdYI7a6xqSsPPelGDMMUtJcMRApkpaxBTbEz7MsJKzkfe7f wwbJFGBGDq9IU03/dllwvvlZsw1aI5P/okT+0Clv5fOC7m/kHCI4b1BPzo8ioihGN/5914 b6ei9DkFsaDScGDvC2DjZeBc30vtYoM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-9-PWo8HKZGOeOYXY8-GQq6lw-1; Thu, 26 Oct 2023 19:18:20 -0400 X-MC-Unique: PWo8HKZGOeOYXY8-GQq6lw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A35C784AEE2; Thu, 26 Oct 2023 23:18:19 +0000 (UTC) Received: from localhost (unknown [10.72.112.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 692E92026D4C; Thu, 26 Oct 2023 23:18:18 +0000 (UTC) Date: Fri, 27 Oct 2023 07:18:15 +0800 From: Baoquan He To: Jiaxun Yang , Andrew Morton , Arnd Bergmann , Thomas Bogendoerfer Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, mpe@ellerman.id.au, Geert Uytterhoeven , Luis Chamberlain , hch@infradead.org, Florian Fainelli , deller@gmx.de Subject: Re: [PATCH v5 0/4] arch/*/io.h: remove ioremap_uc in some architectures Message-ID: References: <20230921110424.215592-1-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 16:19:23 -0700 (PDT) On 10/26/23 at 01:36pm, Jiaxun Yang wrote: > > > 在2023年9月21日九月 下午12:04,Baoquan He写道: > > This patchset tries to remove ioremap_uc() in the current architectures > > except of x86 and ia64. They will use the default ioremap_uc version > > in which returns NULL. Anyone who wants to add new > > invocation of ioremap_uc(), please consider using ioremap() instead or > > adding a new ARCH specific ioremap_uc(), or refer to the callsite > > in drivers/video/fbdev/aty/atyfb_base.c. > > > > This change won't cuase breakage to the current kernel because in the > > only ioremap_uc callsite, an adjustment is made to eliminate impact in > > patch 1 of this series. > > > > To get rid of all of them other than x86 and ia64, add asm-generic/io.h > > to asm/io.h of mips ARCH. With this adding, we can get rid of the > > ioremap_uc() in mips too. This is done in patch 2. And a followup patch > > 4 is added to remove duplicated code according to Arnd's suggestion. > > > > Test: > > ===== > > Except of Jiaxun's efficient testing on patch 2/4, I also did cross compiling > > of this series on mips64, building passed. > > > > For whole series: > > Tested-by: Jiaxun Yang Thanks for testing, Jiaxun. > > Hi Arnd and Thomas, > > I've got some work pending based on this series, however I'm unclear about > which tree this series will go since both of you give acked-by. > > Given that there are some tree-wide modifications, I guess it should go into > Arnd's asm-generic tree? Previously Andrew merged my below patchset. This patchset is solving the left issue during reviewing below patchset and discussing. Maybe Andrew can help pick this patches? [PATCH v8 00/19] mm: ioremap: Convert architectures to take GENERIC_IOREMAP way https://lore.kernel.org/all/20230706154520.11257-1-bhe@redhat.com/T/#u Thanks Baoquan