Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1107651rwa; Sun, 21 Aug 2022 00:54:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR4GBVvk2Q20CXpbhAY526NKujOOQltbOasR/TgvJVrWJ8Q62TfbYIIgFl6MU3T/cdWZ0eca X-Received: by 2002:a17:907:7ea8:b0:731:4fa1:d034 with SMTP id qb40-20020a1709077ea800b007314fa1d034mr9600243ejc.758.1661068469235; Sun, 21 Aug 2022 00:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661068469; cv=none; d=google.com; s=arc-20160816; b=HZIhthhxGMcmyTy1p7Mw+EcAmU/zgWYa8j9luwBvMMoirZMBh3zULS8VwwiNSMufYg fzHfQErRNBJInmF6NJ6ebEzGDJRaqglvR/2fm6qUBPcEPdA2EJvXMiJukJOs6OdSPTvW wXe6k7nrgiKiTu/t+Qsgy+YlGiCxHIdamU5ZDklinWVxlvWP49L6qorYJHyiCZB7Uugu sImkpkr3YW1qMw43Vy4Zyydwwa7A3998qpcvZS4SxgCRywhP567pdgijHXtS9c3NLkMY B8K00oZbE/KH4XZmTNyq6xHjP79jhzPVUWvm/XJrTrT9tsZQEHJTUGjW0ebqaYloWhVn Q52g== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tbA8GPJvpZPjyT8xHzEYgyx5w9Okhk3popffrDAY7oI=; b=A6fL+YUzd5FGJijOAI6ktYEM3pTj3WkhMeRFzFPIhpUhKb2yIqtVtdqI4tCGhkR2YW OcrkWlNV0G2sXeNaK+pq8u1WyFY5LvAYBXhWSVpuXWaMRI3RAEuavF2vNpni1UGaNXGa WbUZ1eQm61lR1gGfpWSea3S6/pMDON5TRD6oHo/G+QyDwQNtGafGrFPsJWb0qR63OY2E injD607n8Go9877yT+Vncf3mcFxStkFMf3W+KY2O5x3E5kCv4CYRNPFoXllB20vqCQZK rVgvSo777i9n6ru1IRmJj3k6yp9KoxwjbO2Uko1ejJvsOAiOqEjoW5D16rvs4DmsoxSV LpeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=YQLHw+2H; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eq16-20020a056402299000b00446af98e042si648096edb.101.2022.08.21.00.54.03; Sun, 21 Aug 2022 00:54:29 -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=@infradead.org header.s=bombadil.20210309 header.b=YQLHw+2H; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229630AbiHUG5i (ORCPT + 99 others); Sun, 21 Aug 2022 02:57:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiHUG5g (ORCPT ); Sun, 21 Aug 2022 02:57:36 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EDDD1D32B for ; Sat, 20 Aug 2022 23:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=tbA8GPJvpZPjyT8xHzEYgyx5w9Okhk3popffrDAY7oI=; b=YQLHw+2HeEkLn1TFXnAvnkNWuQ CMyJ6wld0ZyFCBh86KeBcBe+lLp2TWnlT6BiMubAZLJ0ABQA26Nhcz7LIp4ysQytdifnmFp/uPWab majGosilWVAwMpzMrnkoxMRXSsB1DVftzKSWOvBM/sna7VtHeYFEGArhRaH/wJyqe0nMdgy0L0Ha6 QtYT1Xby+15OePctot8MDtVp27E8nBpwmzewLKX6qX2Yz2Aadsae2jvS+LFIsaFbdRkntWv6B4g0Y ouqQQjGQb4h7XHQHzTsUbVEvMjB0sdNSsziNUhkgiYus8hjbVwXhS9jOvm5AH0kqlhBikY4I458hD 0K1JB16A==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPetl-0071xF-ID; Sun, 21 Aug 2022 06:57:30 +0000 Date: Sat, 20 Aug 2022 23:57:29 -0700 From: Christoph Hellwig To: Baoquan He Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, hch@infradead.org, agordeev@linux.ibm.com, wangkefeng.wang@huawei.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 03/11] mm: ioremap: allow ARCH to have its own ioremap definition Message-ID: References: <20220820003125.353570-1-bhe@redhat.com> <20220820003125.353570-4-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220820003125.353570-4-bhe@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Sat, Aug 20, 2022 at 08:31:17AM +0800, Baoquan He wrote: > Architectures like xtensa, arc, can be converted to GENERIC_IOREMAP, > to take standard ioremap_prot() and ioremap_xxx() way. But they have > ARCH specific handling for ioremap() method, than standard ioremap() > method. Do they? For arc, the arc_uncached_addr_space case can be easily handled by arch_ioremap, and the xtensa case looks very similar to that. I'd really like to kill off arch definitions of ioremap going forward, as they should just be a special case of ioremap_prot by definition.