From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D2B2C433F5 for ; Wed, 27 Apr 2022 12:03:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2By8IsG8D8XId/M/BdH3mbSLDoJHqllFB1o456MbnFM=; b=OKiohUSPzbmrIx xmb1VLrVxYpx95aQkFo9wD5xN2PEinKThRJt5f6piJZxONEi4AtlcSBMR3yRf1UkkBo5sSLarqvT4 qUSzof6cBdr5WoAInjKSwcQ27ojp0m6h+y7PC5csIai3zFYBpLKStfQH4euJ+167wacwd9TagAct4 RAmU9s9ht92fkOaHzwg9v+Y9YESUdvS+Q4ETHjeQnf92rspZRHzTCG1xAgfQJ2bMdzhteX9z7mlS7 nYS2skHZRX17wlFctUbBXRfLABRy3nL4k8Q0wgWVu0WXyUujJLuMGYMQdQHUo57HD0TVG5kxhC1dh 4m02jlIrNVZawSl6cfvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1njgNN-001CUN-Ad; Wed, 27 Apr 2022 12:02:33 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1njgNJ-001CPv-QR for linux-arm-kernel@lists.infradead.org; Wed, 27 Apr 2022 12:02:31 +0000 Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KpHNr6hSFzGpNK; Wed, 27 Apr 2022 19:59:40 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 27 Apr 2022 20:02:17 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 27 Apr 2022 20:02:17 +0800 From: Kefeng Wang To: Catalin Marinas , Will Deacon , Andrew Morton , , CC: , Kefeng Wang Subject: [PATCH 0/4] arm64: Cleanup ioremap() and support ioremap_prot() Date: Wed, 27 Apr 2022 20:14:09 +0800 Message-ID: <20220427121413.168468-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220427_050230_050369_2AED8C0D X-CRM114-Status: UNSURE ( 6.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Let's arm64 use GENERIC_IOREMAP to cleanup code, and support ioremap_prot()/HAVE_IOREMAP_PROT, which could enable generic_access_phys(). Kefeng Wang (4): mm: ioremap: Setup phys_addr of struct vm_struct mm: ioremap: Add arch_ioremap/iounmap_check() arm64: mm: Convert to GENERIC_IOREMAP arm64: Add HAVE_IOREMAP_PROT support .../features/vm/ioremap_prot/arch-support.txt | 2 +- arch/arm64/Kconfig | 2 + arch/arm64/include/asm/io.h | 14 +-- arch/arm64/include/asm/pgtable.h | 10 +++ arch/arm64/kernel/acpi.c | 2 +- arch/arm64/mm/hugetlbpage.c | 10 --- arch/arm64/mm/ioremap.c | 86 +++---------------- include/asm-generic/io.h | 3 + mm/ioremap.c | 21 ++++- 9 files changed, 56 insertions(+), 94 deletions(-) -- 2.26.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel