From patchwork Tue Dec 17 05:13:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Popple X-Patchwork-Id: 13911040 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBE5CE7716A for ; Tue, 17 Dec 2024 05:16:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4C5896B00B0; Tue, 17 Dec 2024 00:15:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 44D566B00B1; Tue, 17 Dec 2024 00:15:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 253D66B00B3; Tue, 17 Dec 2024 00:15:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 032666B00B0 for ; Tue, 17 Dec 2024 00:15:53 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id B87F616048F for ; Tue, 17 Dec 2024 05:15:53 +0000 (UTC) X-FDA: 82903287558.03.20CCDCD Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2050.outbound.protection.outlook.com [40.107.92.50]) by imf26.hostedemail.com (Postfix) with ESMTP id 16C9314000C for ; Tue, 17 Dec 2024 05:15:27 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b="f/x2m0i2"; spf=pass (imf26.hostedemail.com: domain of apopple@nvidia.com designates 40.107.92.50 as permitted sender) smtp.mailfrom=apopple@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734412536; h=from:from:sender: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:dkim-signature; bh=ANnS9ugPhWXEhOP/c+FzNHxXqu35Gn0O+fqlriZg1uw=; b=eU6c+oYxH0U9OnMgjnLf/nTMFwOmkFHJO2GxS8S6x5H5tACABp4PkPE/ETuLpHFAj88RC6 frCNAhuxZkBlbH7fDBdRHYL8HkiEOs0nXyEjDYjPrFE6h0lJ8y4hhhpEdcLUnbCo/v0Fhp 3AWtIFwk5Xc9qf9hSMhM/3CksbqqedY= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1734412536; a=rsa-sha256; cv=pass; b=mFMg4/u0mYtnFqAf8KCwGTliiB+h/qADMTSz5ew/vEnMoED7PfyfBM+mmGw4CeOTzM/nGS gYApAsuqjqdu0XV1WZj9mZTRtB329HMLuziuSvNpXsImF8/X1UROGl3zSXIZoZVD/lfKaY c2jp08LZYflt7oL4WEHaScdibtBiL/o= ARC-Authentication-Results: i=2; imf26.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b="f/x2m0i2"; spf=pass (imf26.hostedemail.com: domain of apopple@nvidia.com designates 40.107.92.50 as permitted sender) smtp.mailfrom=apopple@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rvBUTQWwTKir3Mmhh2kRCoUdrEAwlY4T3vWCkbMYvfX94iMwNS+GWSuhewrYepNCTrHzXge9KX8ppPIPqR1WPr8H5fdsMcuFm+PT38hMTeBYUB5V5grmngKwunEU0UXOM4ku3n7pEmN+T1sHTUzzjLvJ1J0oQJ1Gs4TWdyan5GclJGpRtPSdIWGBKdEYQI+PakjZB01zgtXyZPcY57Br6oKWzEwuMc5ssVM3Bud3YO7LWpSikeo/aB1gcEl1kYCfOrXJAyqJshRyaODGfHirhgZNBMEvvRR7VdfB8wC/aGDxSlL/gVhMaXlyUp9phgAQt27sDxijSgBgZTEQ+fFubw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ANnS9ugPhWXEhOP/c+FzNHxXqu35Gn0O+fqlriZg1uw=; b=tHsHJF4D8w73O3tOFYzxBhTdIQuPYr9FmElXFnJR3gfUvw0TAwCdLXWdZasjK+0NkaQ2Z7pZXW/3I3+C3ENs7ooh1zqWWy8fK09yOsp9vYsR0KH92Elgjst2YP07vOSpmzF/rfQCzusa0BKeGawY0w6XGXZDm8meDYmQoqdMvD4pQ5dznfVQGJJmo5PQm/wcrT3VaPj5vf4yUDdQENL/qphtUi8OMOFL5qQYl6wsB94XGAh3mxnK04ICI99jh0cesQYQzkJeY5IF3MtCTrRYXUIcEEPyMAhNnH4Qq68KwPJ2Gsohg7T7IDcZPmkR6MnaLcwwtdEW97vGWgkIaAZFrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ANnS9ugPhWXEhOP/c+FzNHxXqu35Gn0O+fqlriZg1uw=; b=f/x2m0i20+SIkEJeGdmYa7Czv9/lOVCWPcqimzb/pQI1cT7nUQMHUF/3XgDmQcbIZ6eacCuBYPSswSXZ/qR3XCCMe3+duqI9HboHKU4NerGCTzhJGNkfhushCumt9cZecLr9wzz5RWC+kdGnKrcfOgwNZGkZlJbkJ/R9ZBtxXSwa8CGzfWvKXIGT57WuvVsfOWbS+esD1sL7Av9QmHL5kqCCAme3zz/qArFky4ggr4lleRpNnFCbmwlMZEpp/QPEfBVUE5nQX+yt5M9mRWC41zkft7ge23lnmA0a5k6B6yYXfDkguNmkHK5ab0R5DU/a5hj4chYqIM6XJZkhTpwyYQ== Received: from DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) by DM6PR12MB4388.namprd12.prod.outlook.com (2603:10b6:5:2a9::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.22; Tue, 17 Dec 2024 05:15:48 +0000 Received: from DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe]) by DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe%4]) with mapi id 15.20.8251.015; Tue, 17 Dec 2024 05:15:48 +0000 From: Alistair Popple To: akpm@linux-foundation.org, dan.j.williams@intel.com, linux-mm@kvack.org Cc: Alistair Popple , lina@asahilina.net, zhang.lyra@gmail.com, gerald.schaefer@linux.ibm.com, vishal.l.verma@intel.com, dave.jiang@intel.com, logang@deltatee.com, bhelgaas@google.com, jack@suse.cz, jgg@ziepe.ca, catalin.marinas@arm.com, will@kernel.org, mpe@ellerman.id.au, npiggin@gmail.com, dave.hansen@linux.intel.com, ira.weiny@intel.com, willy@infradead.org, djwong@kernel.org, tytso@mit.edu, linmiaohe@huawei.com, david@redhat.com, peterx@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, jhubbard@nvidia.com, hch@lst.de, david@fromorbit.com, =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= Subject: [PATCH v4 25/25] Revert "riscv: mm: Add support for ZONE_DEVICE" Date: Tue, 17 Dec 2024 16:13:08 +1100 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: X-ClientProxiedBy: SYBPR01CA0070.ausprd01.prod.outlook.com (2603:10c6:10:2::34) To DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB7726:EE_|DM6PR12MB4388:EE_ X-MS-Office365-Filtering-Correlation-Id: 69f1d358-a91c-40a8-27f5-08dd1e59de38 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?t6EceDQzKaeAdKy+DORUh49eA0EwobT?= =?utf-8?q?7MXbTLrwRxHKTWqsOoBc10LsjIvblS2q2aQt/II/ilnPz8IaDwmteDBXmSUU/gkvB?= =?utf-8?q?23KsmG6DpWAx6Yy55BDURShzfchb58g9fbuz8DpVFgH0ANB+qkpQ/idhJC6QW+CY3?= =?utf-8?q?K43OewpOKKYPrKtMt8AgIaMgNs+dL87LYNHfoWO8g96Wgfm/tksd6BSwQspdLe/mr?= =?utf-8?q?yXOIZFIgRBlDO1/kN2hZ5lutaLBwsK7iFIukMwuRlpWqHc6fBZm0de6oUMq+NwkJz?= =?utf-8?q?x62xL8r9B4bBJUpyZ+u4Y7CoD2UXada/gtJ95TVFhNhmdfa3pf4ojCOIdTUxCD3KA?= =?utf-8?q?zHGvwNifZR0ZHLKus1iXF5lccN6DpG1bGv4aXipsCwyll/ST7zd6Lywv411a+ELsb?= =?utf-8?q?yBVs/PGpnBntA7m98Juqhm32ufFB4E9K7f3lKnf5W+73pnGACYr8YPNEt7WXEa9Km?= =?utf-8?q?j3Opq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sBPLxM?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR12MB7726.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?HoWwSSHUsVxrpXiEyjH8tCRq3PSe?= =?utf-8?q?W5MPIOKHIxVSOUO1cYYdgu30nyDFdWeU3MXaWC+TrbX+hAu0bytQ2k8UAeRmw/cCA?= =?utf-8?q?1Cg/WzZ3+fsA0EHej1RlnMinOzcYDx1tk23kdWHwl+3wiF6Y9DGkVUKj/dpmatVKG?= =?utf-8?q?PiORu+eZy1cR2+D6IBlsSCTEFhN12wfJNXFgWkYLbUkB/4a1BBxgacEYzVNrbdwIi?= =?utf-8?q?xSEhG1bZ0MnxlhCGl1FK9v0guobscqX9PRs+FpcVeftdkyaxJWcY7FusAnvD0mK/1?= =?utf-8?q?Gro4rEM69v9EOWFo9fOKYtL3KIKTfO+kYuhaPC1q6ZUDu1YFLbxjTFKbfVLtABMNW?= =?utf-8?q?QyywL91Cz+3FweNsHXkrdvpdshFtlO0ERv5eeuGVOvI8WWxCrevVgOsHqQY/7/j5l?= =?utf-8?q?UAS6S2UZNiDQRHufcFa5RcdWwCKJBSSdUjrSESzBGjYcBCh1XUt1Ncm5CtS60XwZH?= =?utf-8?q?9ninNUkzd695hukWS9JFr8Ryt1rwSuCbRbZ45kwO2skTm1QakFbvyGx/bzKhTE/2y?= =?utf-8?q?pQ+Dr7r20kqK35/SASfanHX0x5Q98TajmigFhJbPJbdzUALl8bDEgP3aTRURVi/IV?= =?utf-8?q?Xh2VkacX8cXI8bPU0CnJGxlK3/X4IcyGWzgGONSzMCNtGPL44IRaXQPyiR7Xhkm4D?= =?utf-8?q?RnHcx4mNh/lhwyqSmeWTfFLZ4Zie+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Exchange-CrossTenant-Network-Message-Id: 69f1d358-a91c-40a8-27f5-08dd1e59de38 X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB7726.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2024 05:15:48.8439 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7bmnmlltikPBk+zZkAjZXgIdfqrni/a275gORI57E5PuOhe9lQuodMq0DUHl6G4v1hQGBaQrsGgn4m9WZ29YeA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4388 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 16C9314000C X-Stat-Signature: 5m6brdh6qxdumcfa5wgg8ybugfdpbdq3 X-Rspam-User: X-HE-Tag: 1734412527-264801 X-HE-Meta: U2FsdGVkX19ElSOs6sbNnZMqw3T1G4ZLN9prO9Nd+VqFDp/KBgh0D3rklRer9g0f7eVolnaPjNOP5j/+sVRAbJmE/EUeilyECcuSisvDytla6fG9GpVCm9tJbLEIA5Ph9dVqrDeUghvVlidq/Yg6QQ2mxLvpljs+nf0igxsgruZ0A8MNIcdRPRq7jrBb5fn1+jyhhWEFwrr0fDtEmYwChcPIwAWQS1T2k5j9zoauw6xPswP1cJg1oYa2EHMhEPhKObX4jRdvn/7djxzCav3dGSaA40lKHwCLED4XJdkV3X5oIaFTpcaZYgxAMeRuv3xOP6YE13cCpFWMqwj13sLwdlSlP7W+Tog7WlKPADBH2JyilT50yYxv56QfGRUKv+QOzdMVH+IQsPlu2GAf9ovrFzoeIxBuq3o7gEhgGzEuHDN5SBknrG7aRUYZDdZc2McS1/0WRGIU7+3uyMtUVEW9of/ryredk4wI6KjXqAw3PpJKRfIUDCgBaWfJljzh54KvCOxF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=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: DEVMAP PTEs are no longer required to support ZONE_DEVICE so remove them. Signed-off-by: Alistair Popple Suggested-by: Chunyan Zhang Reviewed-by: Björn Töpel --- arch/riscv/Kconfig | 1 - arch/riscv/include/asm/pgtable-64.h | 20 -------------------- arch/riscv/include/asm/pgtable-bits.h | 1 - arch/riscv/include/asm/pgtable.h | 17 ----------------- 4 files changed, 39 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 7d57186..c285250 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -43,7 +43,6 @@ config RISCV select ARCH_HAS_PMEM_API select ARCH_HAS_PREEMPT_LAZY select ARCH_HAS_PREPARE_SYNC_CORE_CMD - select ARCH_HAS_PTE_DEVMAP if 64BIT && MMU select ARCH_HAS_PTE_SPECIAL select ARCH_HAS_SET_DIRECT_MAP if MMU select ARCH_HAS_SET_MEMORY if MMU diff --git a/arch/riscv/include/asm/pgtable-64.h b/arch/riscv/include/asm/pgtable-64.h index 0897dd9..8c36a88 100644 --- a/arch/riscv/include/asm/pgtable-64.h +++ b/arch/riscv/include/asm/pgtable-64.h @@ -398,24 +398,4 @@ static inline struct page *pgd_page(pgd_t pgd) #define p4d_offset p4d_offset p4d_t *p4d_offset(pgd_t *pgd, unsigned long address); -#ifdef CONFIG_TRANSPARENT_HUGEPAGE -static inline int pte_devmap(pte_t pte); -static inline pte_t pmd_pte(pmd_t pmd); - -static inline int pmd_devmap(pmd_t pmd) -{ - return pte_devmap(pmd_pte(pmd)); -} - -static inline int pud_devmap(pud_t pud) -{ - return 0; -} - -static inline int pgd_devmap(pgd_t pgd) -{ - return 0; -} -#endif - #endif /* _ASM_RISCV_PGTABLE_64_H */ diff --git a/arch/riscv/include/asm/pgtable-bits.h b/arch/riscv/include/asm/pgtable-bits.h index a8f5205..179bd4a 100644 --- a/arch/riscv/include/asm/pgtable-bits.h +++ b/arch/riscv/include/asm/pgtable-bits.h @@ -19,7 +19,6 @@ #define _PAGE_SOFT (3 << 8) /* Reserved for software */ #define _PAGE_SPECIAL (1 << 8) /* RSW: 0x1 */ -#define _PAGE_DEVMAP (1 << 9) /* RSW, devmap */ #define _PAGE_TABLE _PAGE_PRESENT /* diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h index d4e99ee..9fa9d13 100644 --- a/arch/riscv/include/asm/pgtable.h +++ b/arch/riscv/include/asm/pgtable.h @@ -399,13 +399,6 @@ static inline int pte_special(pte_t pte) return pte_val(pte) & _PAGE_SPECIAL; } -#ifdef CONFIG_ARCH_HAS_PTE_DEVMAP -static inline int pte_devmap(pte_t pte) -{ - return pte_val(pte) & _PAGE_DEVMAP; -} -#endif - /* static inline pte_t pte_rdprotect(pte_t pte) */ static inline pte_t pte_wrprotect(pte_t pte) @@ -447,11 +440,6 @@ static inline pte_t pte_mkspecial(pte_t pte) return __pte(pte_val(pte) | _PAGE_SPECIAL); } -static inline pte_t pte_mkdevmap(pte_t pte) -{ - return __pte(pte_val(pte) | _PAGE_DEVMAP); -} - static inline pte_t pte_mkhuge(pte_t pte) { return pte; @@ -763,11 +751,6 @@ static inline pmd_t pmd_mkdirty(pmd_t pmd) return pte_pmd(pte_mkdirty(pmd_pte(pmd))); } -static inline pmd_t pmd_mkdevmap(pmd_t pmd) -{ - return pte_pmd(pte_mkdevmap(pmd_pte(pmd))); -} - static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, pmd_t *pmdp, pmd_t pmd) {