Message ID | 20230706085819.827761-5-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 8FEBEEB64D9 for <linux-mm@archiver.kernel.org>; Thu, 6 Jul 2023 08:59:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 298DA8D0007; Thu, 6 Jul 2023 04:59:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 248D48D0001; Thu, 6 Jul 2023 04:59:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0EC898D0007; Thu, 6 Jul 2023 04:59:10 -0400 (EDT) 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 0079E8D0001 for <linux-mm@kvack.org>; Thu, 6 Jul 2023 04:59:09 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id C6ABAC0910 for <linux-mm@kvack.org>; Thu, 6 Jul 2023 08:59:09 +0000 (UTC) X-FDA: 80980587618.05.C858FB0 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf25.hostedemail.com (Postfix) with ESMTP id 62078A0017 for <linux-mm@kvack.org>; Thu, 6 Jul 2023 08:59:07 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b="dUDoM/ub"; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf25.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688633947; 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=au27mQkFBCX0j7yag6NPyyKfAD/tDcJxx1jGYEmeYuM=; b=YGMAeB3h9vo3Rx+AQ3Y7XEQ1FOsG2olZdXSaWRUq3DdeHZoNDb0Ywk42dBSCiZ3wKfWd/W qzpqCrYc0/GcSTMODXghqf/ttdoxSDmzjeJCumv44qKqBq7voJ29Ra5+VSl0MZJCy/qlXj mCE1YQGfXgIuVcUosSWZLqocxZbQrLg= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b="dUDoM/ub"; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf25.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688633947; a=rsa-sha256; cv=none; b=zIkPenHl2gHliytB03dpehBWCJUGDZMDJ3iHPC9zIqW83m6S/S1XrTH1lpgKkEn9YkaqYX W4CIRsGsKEaMi5z3+Oy1wL1rUnliWr2aiAvT4KXxyUjjt10qIL2sTscwLxSRb2Xm4Zjty9 RiB+NmHCsfRuH6veZOxnRmsIv/2IpUk= Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3668lZT1021944; Thu, 6 Jul 2023 08:58:56 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=au27mQkFBCX0j7yag6NPyyKfAD/tDcJxx1jGYEmeYuM=; b=dUDoM/ubOdN0Ov4y+9fGzKrIIHJdhGDS1aYTKSpj/5Vq2FbSXcty9KiW1e9Ww2NbZttD BzAM/rCQTVZLd2l7kgM47ESjqHqTz21pKVInFJXbVx1oJQTk/b6SmE/+rKJPRKne1cm1 BzYzBoPR4QZlJibpZ0DeXbPGitbslQs4cDV0GpG4wfv7MZUa8Dipr9z9mYs7mHsUjC5J WRDKmkh1YZYn8RYiJBB5AtmIkMBiWnSneFj+X9VUKpXTpuuGNC+wLDYL6ZhOkjq/5a3k UMty3RPNLya3T7Z49C33wpRo9WsbcG884eZT3n+GP7aMOOxzD1oqPmbv9GCEKkerHY9V 2Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rntdp0871-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:58:56 +0000 Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3668lcr8022108; Thu, 6 Jul 2023 08:58:55 GMT Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rntdp086j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:58:55 +0000 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3668GsHg016327; Thu, 6 Jul 2023 08:58:54 GMT Received: from smtprelay02.dal12v.mail.ibm.com ([9.208.130.97]) by ppma02dal.us.ibm.com (PPS) with ESMTPS id 3rjbs6n1cf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:58:54 +0000 Received: from smtpav01.dal12v.mail.ibm.com (smtpav01.dal12v.mail.ibm.com [10.241.53.100]) by smtprelay02.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3668wrlX22020720 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Jul 2023 08:58:53 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 57B8E58057; Thu, 6 Jul 2023 08:58:53 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B709B5805D; Thu, 6 Jul 2023 08:58:48 +0000 (GMT) Received: from skywalker.in.ibm.com (unknown [9.109.212.144]) by smtpav01.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 6 Jul 2023 08:58:48 +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 v3 04/13] mm/vmemmap: Allow architectures to override how vmemmap optimization works Date: Thu, 6 Jul 2023 14:28:10 +0530 Message-ID: <20230706085819.827761-5-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706085819.827761-1-aneesh.kumar@linux.ibm.com> References: <20230706085819.827761-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: -Y3c92Zldb-SvzqUci3xDTaBSNS3JySl X-Proofpoint-ORIG-GUID: XdHGGg3j-rkZUsQt9Jwc0XpxflgLdg2K 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-07-06_05,2023-07-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 mlxlogscore=999 bulkscore=0 spamscore=0 adultscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060075 X-Rspamd-Queue-Id: 62078A0017 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 53hzqeabrp9558fxgrgto5crb6ryyuon X-HE-Tag: 1688633947-439591 X-HE-Meta: U2FsdGVkX1/9lIYnOcSrWIO5bK55vaSWIfmISSO/mI4tp3sGyALvcMIi4iDqvQD5xkl2OBqCE+G9P5DN1k+EJxzZAbhsuwCSjPPAHItAdIKgq7jJnyQNCyR6fFiSTXFV7nHrPyAnDBW3U8tvHVSBm2/TDlME23Fdsq9TSpWFw3LD3jrR7SuB5ZRCneKU5ZUR0nSEu9cNkCoH6Q4Qsh1MqJJ8zJyt7n9nLXFz4PoGrKWpm1MFGgL/w4uMLE6XbWc4dQ2cQ1qR6HcGZf9YKZO3/WWurAeihj7NKhITU1TmqsH/L0XB+NMtfCPzptvZ7+8jbb1FH1N9Fmkr9DqHc+G4quGFK8EByw2oN4gA/ICk/HPWk2FQNj995BCyYT8N38N5bGtX9TERS6MCz0V9/c4Jcv2BY1LRpeHQz57+ara1ioCtpPRaVFl9AvzC8V1Ef8TtJVll0HerjWymfi8P6bN0UQ9JNerv+w/V4sAESqOHI/iO+KtOdu0X84EKMSSHC9f6fWf4lLw5yaDaA2c6PF2JoSTT+pmQlfQW/QJrjZ/WHMqCnCO7y8JfCdit8YWF5dSNhUX0Qjm+p6RQLnuxLdtodM6mcuD1iLyPyTKmAta//fWqNXoS0dnhWGTk+y8XU/OO5xzQnlZoT30w2zPIvDbH7WepSwjs6WvHB5fgXBakFRar4aQ35SjydYHxTJsnsVn2UyVHFcCre9oIGgPwM8mNotmNGwXnD7omf7j0GbdmYXeRlRxEDhUeeswKgrLamJIiOlVQ8ahIRgE2p5tGk3hkig7gSyJ1JxvAUURNlVq80iFT9uGUXMTl7D8PaBp2p2ZEnv3JFZtA76tFDOvdnggU36zAj27uNh3DtRAEnQ/Rndq3u/x1RPgjf/Jx7Wl/F3MCt1d1PtaDaGRro30E1I2NQ1n7QBd/G2ZMRGOj3xc8BsH+d+0ZguxJ8Gxd/cTzwgQ6ZtJMQmniMUs4pbFoidx ts1byih3 Ow/MuQqFGT6DfMXnjhAzMnxlH8S5f1hAm9dbELJ57BYwgYXDqOJeiERhhf2FkKSiCuIogypqDvdU2gJLEdTq77ibEdwYAnrR/chusnktd4+bWwhEH4ZL2TieQqYTKk6l3bi+aaNOHUVfMPlxx41i0T9VU4Cqb3+g2G1g4un5jjS7yeIKAyLoGZQgznX6Tm4+pRQhzbk8vhd/Jvn0uwHY980MIP/f+dh3JN0tUe8vzpc1zvNo= 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 a044a130405b..541b3f69a481 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(+)