From patchwork Fri Jan 10 06:00:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Popple X-Patchwork-Id: 13933710 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 C7C4EE77188 for ; Fri, 10 Jan 2025 06:03:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 553E36B00BA; Fri, 10 Jan 2025 01:03:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4DA4A6B00BC; Fri, 10 Jan 2025 01:03:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 26C586B00BD; Fri, 10 Jan 2025 01:03:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 018386B00BA for ; Fri, 10 Jan 2025 01:03:33 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id AF08C14084C for ; Fri, 10 Jan 2025 06:03:33 +0000 (UTC) X-FDA: 82990500306.06.938A1B8 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2050.outbound.protection.outlook.com [40.107.101.50]) by imf29.hostedemail.com (Postfix) with ESMTP id CF617120006 for ; Fri, 10 Jan 2025 06:03:30 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=eJqtczIV; spf=pass (imf29.hostedemail.com: domain of apopple@nvidia.com designates 40.107.101.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=2; s=arc-20220608; d=hostedemail.com; t=1736489011; a=rsa-sha256; cv=pass; b=jgtnvTN531nlgLUHXcuJ2rS36wbIKVt2KiY1LOxLGjJBVZU2tvLzBQJ1nyx6+txe5Hpbnh ZjQ1vDhKQaWulH9xcDWGEIMOobeQRE6RjCgOosj+zbY4k3bT6ysS1wpuy6+/QFDcn8bxv0 AD/4Dyjqi1+6sX3yH4cofqQrBEoPXXQ= ARC-Authentication-Results: i=2; imf29.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=eJqtczIV; spf=pass (imf29.hostedemail.com: domain of apopple@nvidia.com designates 40.107.101.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=1736489011; 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=jQTaKq4z+cGyQ4XtabsugWeDCJg8kOAHvWq9HnNpxrmZIxHikrN9/EkAbav9yk+M14rn+M 0uwA7rHxitfWP/H9dKgXhpZMbD2TdyHu2FEaIqVGDoaA6SF8fJ+ltLWx2G7tyCknBHhpgw J6gki8qsUAiQO5/5MH7J9jbUFxym5g8= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pecagJ9KKGI7M8e5D3OLuqXN9L1HIPoflIuoo1gdnW0xwpaPyzE7PmRcBovg9ml1LtEwvVF40XrnDQEHF1CoxnFGLorZOsNg8l8aWF7K0mLZhtnaS1LVJnXFss/Q4Mb6R1UO4eMG5JyVB9Zut6hpdAy+GBYyJ3y3pKAeEvo54Ce7FENrKhmsCQZgjihqHDsfsbpdt0Ffdz/iHwHfr4Fa7chLqzPl3Ig0UmgcTIOJ146oabnIItd/jcLp8YOwkYN0SuOFLNlIu/0gqGARVAnRF4GjIUovN6RpnjDZ5TLi9LsHYLBUB8jc0+HHPEO0nVzDYI9nEj/5fw5ATXZGj4KcCg== 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=rdV11lwFNOuw3GAS8hYPKRug6DI9mttHZCB6OA2sPAe/j8+Bf4g9Mgk+cjetBy8WG8o4wgM0hMS9Sd7R90GvUZLD/FMxYMZjnlVYEFYP244XSJx324ahy3UqVO9XpAA7inGPx+cfU0m/Ns66B8+OraiQa65eO+O69ykvDWByzAZ1cS+CAd41hjKSiVtMIYrwvQIzf2Ay/l9Ps8QnEbfi8RRjAtUbaQisqtKR99LBgzRpEacpcLtCWWImlJqul/uh+/SogbFD6RcCUd7re946/yRhzkSFka6eY1miwgrzamWiEqWrJPpZeDbNxyR0qrlgjI/hrNsSdKmKxp7aPNTHkA== 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=eJqtczIVlHKK9NrayjGhTQaaBAa+mJNCYgFw6IP3lSPJHxq6vSl4SamgeqwDl1Dhp30zFbn4+ii8dALKEVAPcKPy2XQUECbwCgF1kbDmLu/B883bb/fWw8UF8001tOodLZIFimUN65ZCovL1DpG9czclisNzd5h2wqV8Ya5dLopL4KxI2tOtmJ/2S/TwXUEI35gkm90JeSeukBaIDliUto91X16xwGibsyFXdsnRbIR4WaljV0gYxqj1ZX8sjYuQ/8/efx4hiOyB1kWvIa9uinZ52RvxJp5HYFqSVJRlPyQWOBvQ+vjXDr4c9Td0coXxmm5eploJmfgvrrypKzM/XA== Received: from DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) by IA1PR12MB6331.namprd12.prod.outlook.com (2603:10b6:208:3e3::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.11; Fri, 10 Jan 2025 06:03:27 +0000 Received: from DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe]) by DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe%7]) with mapi id 15.20.8335.011; Fri, 10 Jan 2025 06:03:27 +0000 From: Alistair Popple To: akpm@linux-foundation.org, dan.j.williams@intel.com, linux-mm@kvack.org Cc: alison.schofield@intel.com, 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, chenhuacai@kernel.org, kernel@xen0n.name, loongarch@lists.linux.dev, =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= Subject: [PATCH v6 25/26] Revert "riscv: mm: Add support for ZONE_DEVICE" Date: Fri, 10 Jan 2025 17:00:53 +1100 Message-ID: <4983dede0d60686508513b3d9cfd26aed983fb7d.1736488799.git-series.apopple@nvidia.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: X-ClientProxiedBy: SY5PR01CA0063.ausprd01.prod.outlook.com (2603:10c6:10:1f4::15) To DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB7726:EE_|IA1PR12MB6331:EE_ X-MS-Office365-Filtering-Correlation-Id: 0906086e-222e-41ba-b703-08dd313c7fd9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?c0XjyHPRue65VZFODscsN93y1N4ekMu?= =?utf-8?q?EsZXxgOrU41utT9g7mcdxPd9nN4m1kBZ32OOhLZmgT9kBGumpR8QvCCiWFYHlTEcH?= =?utf-8?q?2w12Akaim4uzMKmbVVTtzrr5PAf+t5zxPMqPooFzX60t4Nq+Uhw9kpFyGLDU9nY8i?= =?utf-8?q?VF5OWPmmoTUYlPJ7wvbiMUuMTmbHKaTIGA47GssWEIPL71LYNGM59Jb8saE1t+xP2?= =?utf-8?q?POaSOrQgjRizK+JYrQ1+318y7jvnf3OPDrN+GvhG+bzLpxse+ILfctbH7z7bxMLA6?= =?utf-8?q?U+hmYzsX+SEe8Km4RGnxCHSmbRWtXhAYcMc4YsnsrQPsC329woMiFvMzYr289K8ZD?= =?utf-8?q?/kQiUtsVGNUFFGW6WNRDsHZQw/GNYyaqo3jy9AllO+ictIOp9rJefm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Q7I4E7aGz?= =?utf-8?q?JfgdtZHL1PBzQRSEP/0bKKHWTLI9clbnK9sw/nz6892FYV4GryHH9HJpAzEk29GCl?= =?utf-8?q?EEjD/8oycXVC?= 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)(366016)(376014)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?BHGPdmAAK/vHjuQVLwEvUleifO9O?= =?utf-8?q?cT0egidoqXno5LG+E6wSBY/qbbJiV8GsMtanlxwURWPEfZjGNph4wPuRHm8PxqbRR?= =?utf-8?q?0w+Iy8O4HIt1YYhnjzBAD9SYnZdujJzhZE1pDHwEDBm5zYd9L/JtkBN7+eiSBUaQm?= =?utf-8?q?QQ9gf6g90WaZirtsxvR/ILHR5hL+33Tm+64sLD25TPZL1lEpgpLiy+dEFZatR+rL/?= =?utf-8?q?mFXnvpaBm1owjMPOLZZvsdsV1pt4NwJ7QNLpJZRIUYT5bkEgs2K3+FriyevDFLtq9?= =?utf-8?q?cyvxrQHs7wIedJYYTLyitBkxxx912MlA7lj4RP4OsaDU+fSo7MB65qKPuLmeAU2Mv?= =?utf-8?q?8S6OrKqyADR5c/DYo6xDrVBdWyieC4mujUFmDGIBDlXJkc1ldAV9DoYpeXgokO1Iv?= =?utf-8?q?NVndsu2eNEnY8HBiX85yak5z+x7lxRgS670PqSQceezLx6BguXRMUYkdNi/RlCn1A?= =?utf-8?q?fKcLc7STyMtey49+RunbSakzFmxU861CAeDYbbR9j9peOPWZcN0z7mKHU83EUcrUW?= =?utf-8?q?5cHbc3cIlFMIpPkIxfiLFnZxoN9tOjjs1Sywl8ymLUvrUAojQU+kWweeJlRojrc57?= =?utf-8?q?kPlDsHG4WBX7NMNyFMVYY0k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c1BcKe1l4ipxp7wZTHl8Axdh0fn1jTf5+dN0I538ngeZpcUH?= =?utf-8?q?pJv0J+N6xzia?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0906086e-222e-41ba-b703-08dd313c7fd9 X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB7726.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2025 06:03:27.2130 (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: UKbIjNar9c3KNeNThk/fQPLETjSND1sBNp1/q5G9bXsINHuRAFHLiSpcJdNMqhWkuXXn+PdmVUjM7ODQwLM9Rg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6331 X-Rspamd-Queue-Id: CF617120006 X-Stat-Signature: ps6xn9e8fiu4rrfya9xtfyat9bsrenhw X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1736489010-376421 X-HE-Meta: U2FsdGVkX18JT9J8rhD4qjmMD21Kys9gm7VtzT8PJOoT7tjy5u+d/Kmvt4qolFTnzjgIA/9i3a3iOIgQwNC5UjOJd5OOUgeld097zUoALbBBAScjK7KG5sCu6Q0iLmrisuDNW+fWQ9WxyxAknzm5LakkFN8Pi5rpOfGA1WhYkjdj5voTkNyg97x5joO8/EDO0CSfbIv3qutJJHWlk6Myt7y9p/Fs37OofIT46w+PPGOq9PETvrBFroTatCs2D0rYHXTcfOuilcICgXuS9P5hxukr9pFVxE+hizObfqD754OJRBtPC7vvqW/yr1hn6VnIA2hmlLVxL5bvYR39mErFV/ll/fQLHgBuO3SCLpwkVGJpsgdoh3jM+lQsxiX33sJgcu497LrEXuEEqVz9dBvFC+MrtBbVtPrl64OhaARFZ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S138iSG19Pz6PdVQnmlV40W/fDyFQzaiENqgPCSSQv2sme/o3Ec4/gjSG4DPhvp/Grl4iA/OWKjmAIqNfCpzBY3/97LftCcTKUlNHBklKxrQURdh0QO6+SvQRA6IREEJuz7ntDaCQa0aG5+p0Y7I83Q== X-Bogosity: Ham, tests=bogofilter, spamicity=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) {