Message ID | 20230616110826.344417-10-aneesh.kumar@linux.ibm.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 3CD47EB64D7 for <linux-mm@archiver.kernel.org>; Fri, 16 Jun 2023 11:44:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9C60F8E0001; Fri, 16 Jun 2023 07:44:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 976586B0075; Fri, 16 Jun 2023 07:44:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 83DDB8E0001; Fri, 16 Jun 2023 07:44:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 71A8F6B0074 for <linux-mm@kvack.org>; Fri, 16 Jun 2023 07:44:58 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 3264D1A0CB5 for <linux-mm@kvack.org>; Fri, 16 Jun 2023 11:44:58 +0000 (UTC) X-FDA: 80908429476.26.8D31513 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf02.hostedemail.com (Postfix) with ESMTP id ACF0D8001C for <linux-mm@kvack.org>; Fri, 16 Jun 2023 11:44:55 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=Rg0zefpY; spf=pass (imf02.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686915895; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=1NxvrTnWx0fd6TkC5h2RjLp00KHmM+IO3O6L7cY61sI=; b=uK9kxJHhAGvi9oWn8IUYNwprwiLernRf4tHN9zobEW8xRJlt+vqR/GXOvnYCIA2afDwSMQ KwtFRDCNxjfLh6IVe55oRkxuLV/EEmEzIS/a0cct1AIkO7Q6XIkHSzLynw3mBAir11wU2r kdP/bLOK45WT6N5wQ+ZYM+DnqqOT+Hg= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=Rg0zefpY; spf=pass (imf02.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686915895; a=rsa-sha256; cv=none; b=OZZUJ2IK6QT5ceu0tPctm4oKSLIDtWMgmHK7n4x8UAdBl1CEG2RVWpB8Rxvac34V+Sfh5s WKhcsv3j2vSpxEdzeIZif9PE1AYMmSkcrka+jJxZnTe5MeSaBVtloFAk8k2BDFPFIlHoH8 1dY++NoYfGbEcMLLxHy6y6jPnbVs9bw= Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35GB89Ve015549; Fri, 16 Jun 2023 11:44:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=1NxvrTnWx0fd6TkC5h2RjLp00KHmM+IO3O6L7cY61sI=; b=Rg0zefpYgAFyJUK6vxVNJinXSR9JUBvc6Ky5MCdaVosIABHttzrKPCKuO6RIkl4YzohN XuDJhgvot9UURJtdWFjH9WQy3garnaM0ECzLSg3Q5vV1PUJ0NyP7D/ev1J98ol02WCpE YzYTGdDT1kCyy7zXedGTWNdNS1Q0o+OX6kIGEOO4pss09B16mjkQltX2eBB/8Z00JzvQ JLFOT5lwqLoq0CMmTm2bhRCEE5WYZ7oqix2vC2icRFUg/qqhxO2doIp2Kxdr212Gm4x7 vP2zOV4MFQ37Vw28JaRJEIhoPFVEQ8b7N4ny32TXH42iEGJ7RByKA1nRr12mRi0jNgsL yg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3r8p9m93u3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 11:44:43 +0000 Received: from m0356517.ppops.net (m0356517.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 35GBfBId030991; Fri, 16 Jun 2023 11:44:42 GMT Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3r8p9m93tn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 11:44:42 +0000 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 35G9PiKo030258; Fri, 16 Jun 2023 11:09:43 GMT Received: from smtprelay06.dal12v.mail.ibm.com ([9.208.130.100]) by ppma03dal.us.ibm.com (PPS) with ESMTPS id 3r4gt529ce-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 11:09:43 +0000 Received: from smtpav02.wdc07v.mail.ibm.com (smtpav02.wdc07v.mail.ibm.com [10.39.53.229]) by smtprelay06.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 35GB9gmH2687546 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Jun 2023 11:09:42 GMT Received: from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0C7A658058; Fri, 16 Jun 2023 11:09:42 +0000 (GMT) Received: from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 03F375805C; Fri, 16 Jun 2023 11:09:36 +0000 (GMT) Received: from skywalker.ibmuc.com (unknown [9.43.52.24]) by smtpav02.wdc07v.mail.ibm.com (Postfix) with ESMTP; Fri, 16 Jun 2023 11:09:35 +0000 (GMT) From: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com> To: linux-mm@kvack.org, akpm@linux-foundation.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, npiggin@gmail.com, christophe.leroy@csgroup.eu Cc: Oscar Salvador <osalvador@suse.de>, Mike Kravetz <mike.kravetz@oracle.com>, Dan Williams <dan.j.williams@intel.com>, Joao Martins <joao.m.martins@oracle.com>, Catalin Marinas <catalin.marinas@arm.com>, Muchun Song <muchun.song@linux.dev>, Will Deacon <will@kernel.org>, "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com> Subject: [PATCH v2 09/16] mm/vmemmap: Allow architectures to override how vmemmap optimization works Date: Fri, 16 Jun 2023 16:38:19 +0530 Message-Id: <20230616110826.344417-10-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230616110826.344417-1-aneesh.kumar@linux.ibm.com> References: <20230616110826.344417-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: GMpZt1GP3KN7acv2igOUSqdfrjzguVxv X-Proofpoint-ORIG-GUID: qZv9AyAbTlUNYM2GAQgBNx4vAn01YRIw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-16_08,2023-06-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 mlxlogscore=999 bulkscore=0 impostorscore=0 priorityscore=1501 suspectscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306160104 X-Rspamd-Queue-Id: ACF0D8001C X-Rspam-User: X-Stat-Signature: 9o4t3ts885ahjd3jnc7ckio1gb8kziuk X-Rspamd-Server: rspam01 X-HE-Tag: 1686915895-206738 X-HE-Meta: U2FsdGVkX19NGceW8M4Qsz84cJZuG/JecZPACWD1Q0yiRsW4DHMJP/3n44zQ0HT6hNxBWnT1p5OY5qDACU5N7HKnn1Qu1/RFaFHF/jUYSTzU+RzIiQ07wo8+h96TvNXpILRFaEn8ZUDCBnvPN2KC5PhCjr28vAc+Cn1QQwLLGgwgwT8YDZr5XvOEAy+vpxY1FnfFxnBBk222UcyCB/9bJ2iWJZors5cTSOhvYlYBVS4t4z1dEKK59hyjqWOJcNyQhXJJt5Wt+ZoIXt9+RFeIRoAGog4zKhFq92L+zTdlAjSub1W1FhKr7/vmrQCyK1o92XN0itdwVQB/aK0hN7GtoWXf2V36V7fIEypHUyXUIaT3qh+7CaUDeBgfqij/Jp6YsYOp5a/707ayb7Qr1hMf0DHba0GUwduikCa1xOLrvCeR+eFhWWxk63keJb2uCRE77SqxCCiQ6bqSEjtDwSJQCN+vtljyRHoPJ0kz4Y71IP5Z9q0nbfQr9CgahG0ZF8rWoedRdeghE7Iboo5TAMrC+NfrL2ifpM/xMkiEhIzl2TqA03m3U/Ko9O2MtJxKEtemeqMMssMlpE1JKuxJ/eOayIW4KQWs7hwWRo5QxIaI7jARcN+S1qxb1KZv4JSh+9SUVoWti5NFHcWYkp5LWb9TF5rj98p5DCRqqWoDwwPWfSm/qb5HANsL75WcFEG6ZEc/fTl8jcCj6CFY1a0G96uH3053bAWctJRFnhnCoXQiiOELDUQmnE3+WyDmB/QBPid6M0s++1ZwGrc6vVZAqyTkhR/loJ6XeVaxujXZNBzFa42qmMR57wgIEJW+bi0ZdBc0CQKp0Z4xSDy4p0e28HToGxAgD5WCxS4m3qYUgFYjR0yXRargQuImGLOCApy/HKggyftCEViv+5Bbfkol/FPdgh5nD8GzPn1feHYqn6izJm0PDgtrep7UxJsOWIOlc5NRa6PGhERR3a+ZL8VldNW wV4lU8J7 QnEI5UBCGWPVD/h2bHTvnRlPQdbfbLVVMDndvBSglzxmTSGtheYYYXRl+PxUZ+aVC06DGjqBE5iKDIu0tVkHDLpiOTo3ZVZcLPb0bqupZU5OiXVABXrtHShAXhmTXHdD2AGOJyKI3SBpogAM= 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: <linux-mm.kvack.org> |
Series |
Add support for DAX vmemmap optimization for ppc64
|
expand
|
diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c index 10d73a0dfcec..0b83706c08fd 100644 --- a/mm/sparse-vmemmap.c +++ b/mm/sparse-vmemmap.c @@ -141,6 +141,7 @@ void __meminit vmemmap_verify(pte_t *pte, int node, start, end - 1); } +#ifndef vmemmap_populate_compound_pages pte_t * __meminit vmemmap_pte_populate(pmd_t *pmd, unsigned long addr, int node, struct vmem_altmap *altmap, struct page *reuse) @@ -446,6 +447,8 @@ static int __meminit vmemmap_populate_compound_pages(unsigned long start_pfn, return 0; } +#endif + struct page * __meminit __populate_section_memmap(unsigned long pfn, unsigned long nr_pages, int nid, struct vmem_altmap *altmap, struct dev_pagemap *pgmap)
Architectures like powerpc will like to use different page table allocators and mapping mechanisms to implement vmemmap optimization. Similar to vmemmap_populate allow architectures to implement vmemap_populate_compound_pages Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> --- mm/sparse-vmemmap.c | 3 +++ 1 file changed, 3 insertions(+)