Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3542124rwi; Wed, 12 Oct 2022 03:40:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5uNPDPI3XsZUnYeYaeVyUkGktiAM62tdGPd3Pg8s82qdLmVU/3E9jRLVdjLUIRdVmqe2j4 X-Received: by 2002:a17:902:e547:b0:178:43de:acac with SMTP id n7-20020a170902e54700b0017843deacacmr29444522plf.39.1665571198119; Wed, 12 Oct 2022 03:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665571198; cv=none; d=google.com; s=arc-20160816; b=pvruJV0dGN4ZZ/+tUCrz5O4M+vpplxRh++Ux2zkZOELtRWxB4crqtEOGB2YuJ3zmEr bgSkR4BTFP0/Ox++ApyyAGPO5DaRo3J4EJof8OjmSkhoA10OfBd09zXAHI4xZzMn+ddg QcQNEtMFzku5ImDg61oZ+Fz3saD93hR+eUDQ426z9JvZYomrGilWzLeH8w8Q5OKEK5hO nVUL9Dy+BpktdTBJkn/s9xzOtDzWzzzv/bPZj9TMd2hr48+zSdIfKYu1bBA4aXqfEvf7 P0lBA7RoYrSiGSnZQZ2JuwYobGCXptGWwhAGz5/kF84yQyStdWz5v2tsJWYY/bPz+68s 2S3A== 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; bh=uV3de8tfLB5io0Pc4RGCso6wjSea6d3Hjh2RPOWfx7U=; b=Ra1pF+eeM1qTkpKzPdJmcxGd+3kZrpZPiW8919HDZj7F8VRIAfoDU+JzDkq4efIIBr BpdWLU89NTZmyUwVUDgcrFMeKfTpZuVSJ6gbM/PgaranAPQNQWWiu6ZQHETaFZN4juO3 Palt4724STgcCJ465KjH6iQw7pSrDPHdj/UCHpTt9cn9cgtWTqByxbnfsC84eSZyAOPb wWofIh60zueCscpOSsCp1RsVVre0WC8QTmPxcFRZgmYaav8a2UoRPzX7vTaxpHSHJSNR Vqlzw4Ewm6z5QYTsx0nIXeYw/k6/EeeMDk9rbxkOiv1vuseKCdGDx/rqeDKRjEXkAu/f Gzdw== ARC-Authentication-Results: i=1; mx.google.com; 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 j3-20020a170902758300b00176b7e66c9asi16207950pll.155.2022.10.12.03.39.41; Wed, 12 Oct 2022 03:39:58 -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; 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 S229477AbiJLKKb (ORCPT + 99 others); Wed, 12 Oct 2022 06:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiJLKKM (ORCPT ); Wed, 12 Oct 2022 06:10:12 -0400 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFB172FC3D; Wed, 12 Oct 2022 03:10:07 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4MnT0s0w21z9smn; Wed, 12 Oct 2022 12:10:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GbtNKkzFQGBY; Wed, 12 Oct 2022 12:10:05 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4MnT0r72dfz9smC; Wed, 12 Oct 2022 12:10:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id DA9368B770; Wed, 12 Oct 2022 12:10:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id lM_RYFeq6Elz; Wed, 12 Oct 2022 12:10:04 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.232.127]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 9B03D8B76C; Wed, 12 Oct 2022 12:10:04 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 29CA9oZU1165765 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 12 Oct 2022 12:09:50 +0200 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 29CA9mL71165760; Wed, 12 Oct 2022 12:09:48 +0200 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: Baoquan He Cc: Christophe Leroy , 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: [RFC PATCH 0/8] mm: ioremap: Convert architectures to take GENERIC_IOREMAP way (Alternative) Date: Wed, 12 Oct 2022 12:09:36 +0200 Message-Id: X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1665569381; l=1985; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=qbQ5kiECI3xAGYRd2tHO6GsSKBbKenBkBtxcE+svX30=; b=j91j73TEntd2i4rb6Z5GxHS2S/s4t3KOUF5BfEWDBhSV8rZQmS7XmJGvVQALTIK44dOT9K0XRGDF u59gxZ6KAI6EwAGY8jSZ7DgdUAOBOAv8zgTDp4VNKLQ6RbPZyXab X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 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. Open for discussion. Baoquan He (5): hexagon: mm: Convert to GENERIC_IOREMAP openrisc: mm: remove unneeded early ioremap code mm: ioremap: allow ARCH to have its own ioremap definition arc: mm: Convert to GENERIC_IOREMAP ia64: mm: Convert to GENERIC_IOREMAP Christophe Leroy (3): mm/ioremap: Define generic_ioremap_prot() and generic_iounmap() mm/ioremap: Consider IOREMAP space in generic ioremap powerpc: mm: Convert to GENERIC_IOREMAP arch/arc/Kconfig | 1 + arch/arc/include/asm/io.h | 7 +++--- arch/arc/mm/ioremap.c | 46 +++-------------------------------- arch/hexagon/Kconfig | 1 + arch/hexagon/include/asm/io.h | 9 +++++-- arch/hexagon/mm/ioremap.c | 44 --------------------------------- arch/ia64/Kconfig | 1 + arch/ia64/include/asm/io.h | 11 ++++++--- arch/ia64/mm/ioremap.c | 45 ++++++---------------------------- arch/openrisc/mm/ioremap.c | 22 ++++------------- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/io.h | 11 ++++++--- arch/powerpc/mm/ioremap.c | 26 +------------------- arch/powerpc/mm/ioremap_32.c | 25 ++++++++----------- arch/powerpc/mm/ioremap_64.c | 22 +++++++---------- include/asm-generic/io.h | 7 ++++++ mm/ioremap.c | 33 +++++++++++++++++++------ 17 files changed, 98 insertions(+), 214 deletions(-) delete mode 100644 arch/hexagon/mm/ioremap.c -- 2.37.1