Message ID | 20230724190759.483013-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 55149EB64DD for <linux-mm@archiver.kernel.org>; Mon, 24 Jul 2023 19:10:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D554B6B0075; Mon, 24 Jul 2023 15:10:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D05076B0078; Mon, 24 Jul 2023 15:10:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BCD2E6B007B; Mon, 24 Jul 2023 15:10:09 -0400 (EDT) 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 AE0E66B0075 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 15:10:09 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 49A25B22CE for <linux-mm@kvack.org>; Mon, 24 Jul 2023 19:10:09 +0000 (UTC) X-FDA: 81047445738.09.2D79705 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf30.hostedemail.com (Postfix) with ESMTP id B5CA78001F for <linux-mm@kvack.org>; Mon, 24 Jul 2023 19:10:06 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=tWpaEUCU; spf=pass (imf30.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=1690225806; 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=LTGdpg9vP6Z9t1EVUl4AJKSRgiUAw7qTPzDp7kO8kxk=; b=yPXrseXuOHGU/k9egLYF9w0SGX7Y3Morm3hm1pqosQWiEC5pz3wDBTwuqpCBo/wLp6caRa qyt56XvG5jStuUVmhM144SHCf6W52nw/bJshPhLVzDYds1yl9Kqjd0uKyVLrt+/fNMex8A MQL2aR4ihIiiO/ATV0SCbd5jqlfyu6U= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=tWpaEUCU; spf=pass (imf30.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=1690225806; a=rsa-sha256; cv=none; b=pNivDWL/DctjUgrgkrjjbx1N+gEgVLDsTfMCD9ncpYjBu6lhYlxnFAGg+pkCInlCbMDpZa A79DSBkkioGzuAZ14RjGDI6ffCQUBaAJ3sfrud19/EtU7DoLptxeh5H2TAHl2moTtE4Vqs TxVGM2d904NH+5eNqAZt0fE0D4oBDQo= 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 36OIvTdF022075; Mon, 24 Jul 2023 19:09:55 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=LTGdpg9vP6Z9t1EVUl4AJKSRgiUAw7qTPzDp7kO8kxk=; b=tWpaEUCUcHII3znEroRxANvVIW19m0X5Yns6tnmykyiQ0InVVPgtJvM/YU+II+RHhARS lC8Hk3bnHyriICGoFizOMuHaI5R8PMIPOSrU9hiU1P3s7oUBAuetJRvq0qqe2bJmoZlT CP/eKrM/3XQGLvRPPcs81lFSpieBIQERKJFxvqESjxG8/TUG/NmQT/Mu02q/OlLTWU5o lTED5xuY3AkSyTeo+E8yuNXAAxEtsuQKypYSS9AVje5kDO2Kt0qEPDdhXX5+jzOSrVkU osFcEU0jV7dx0BE0prl/ltPoEm8lkzKcC47l3okIU8R0TpCZVOYReeYHnv8z5YlonErh rw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3s1xcj97fd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 19:09:54 +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 36OJ4ieG015204; Mon, 24 Jul 2023 19:09:53 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3s1xcj97et-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 19:09:53 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36OHa25o002068; Mon, 24 Jul 2023 19:09:52 GMT Received: from smtprelay03.wdc07v.mail.ibm.com ([172.16.1.70]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3s0temns6a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 19:09:52 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay03.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36OJ9qwk1442526 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Jul 2023 19:09:52 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0552D58059; Mon, 24 Jul 2023 19:09:52 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0EADA58055; Mon, 24 Jul 2023 19:09:47 +0000 (GMT) Received: from skywalker.ibmuc.com (unknown [9.177.66.22]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Mon, 24 Jul 2023 19:09:46 +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 v6 04/13] mm/vmemmap: Allow architectures to override how vmemmap optimization works Date: Tue, 25 Jul 2023 00:37:50 +0530 Message-ID: <20230724190759.483013-5-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230724190759.483013-1-aneesh.kumar@linux.ibm.com> References: <20230724190759.483013-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: ysJLL6sReH2rTHRL1ZY8_-oWui3wUOtk X-Proofpoint-GUID: x9Nh3Sq4xQokZ0n30kdaKCzoB0ay9Jft 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-24_14,2023-07-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 mlxscore=0 adultscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307240168 X-Rspamd-Queue-Id: B5CA78001F X-Rspam-User: X-Stat-Signature: dtgp8h4ob46xyurg6z3ypk6p1e1bhire X-Rspamd-Server: rspam01 X-HE-Tag: 1690225806-548673 X-HE-Meta: U2FsdGVkX19iGqhv2/e1KWhm2nKCqKNJw+k+uTgjGiE5KTIuQXmHKvCv/dEbquE1hZLXovVtNUwCJ70gqK8Y3pgoN2s0Lbuo1KbPzIasmEaRCGd6l4yYYoYOWTnUffLb2uN4qbGL29GYBPAG/0p6Br5TZhmmk3gX4SCdi9dZzEbl2Ipm6OzvQunC8Ew/6ri89u9fPpI740H93rYj02PXbSzgAb0hnKh17d+QmtgMaSFz4Bb/ZMSxK7XsKnmP5CiP2biFQL0j+vaQ56qDTxQrEleMy8Aagaw7Vg2ilyyXGfT14bAhMqM+5nLLNsifjiEsFChlsNJK1xJcpCe+FGmSB74FK+ko0DfGGzt6HRvrOpQrn8FlchJ+ulTZECZqTfnF/qIL3dQHXkrQvUIwW2VU9f6OkQqnHGLLwyGcVMR6ifEdC8XijFM9s9eRbCleVmUIl3mgPDXjUAXtz3oIbBef/7RsP4iWNUq449EePm/OCk37yT3tZ4ZqxbCHbOZKXF53pDdBmFzIb1R0VUooeUIIUdikypc4c3QyAFCYAZyirU6IfUUWSFN+/KCBEDehEcIDKTQjpMb/Gsw2rOsv5V5NWI2AAEJozDua279GUCH/EoecZD9fslwzQxf63qs3ShaYeAbL+P4vcMQ9ICqaj8LvETh9lO54kOM/CRV8lpklfJxbZNjXZ3ASfZrcMfqDnWNHlYHZ1fRXn0/Hnzb4jVJKqIvIA8FrAGKtLsTsRgh9iHEjVWJZV1QkvY2aHICUHrG92Utbm/HiLgtAFQMr+5dhnPBDrqnK7aKcUSSKNPZlXiYa55RSXlVuOXW7noo8a0fylzWU4d5j9PYABD0EzpOZ9o7W1Myn3OTPbsgd2O0toVuSAAQK/PbcBIzR8R/+vUdjkmSSfA+aWCysk1ZVbUC4dTKJMXbVfdQxWrIVujEmS7HOQRybsISbnPnmE8Ov2Plr/xFDuTcxgI+Lv2aylm2 JBDsBOrh lgDCdh0D5Mr7wMJAFr85axEaXOIa8krMbu2g0ku8q/DJH90sxXItQfIBLBh9C6PED6Ir+qgmPjak+Vjuk7rN3WoUtnOZmDhom1mu5dBmZeUboXN09vI2GTKoT50W6G3MZZqyvepY9N4abizo= 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..a2cbe44c48e1 100644 --- a/mm/sparse-vmemmap.c +++ b/mm/sparse-vmemmap.c @@ -358,6 +358,7 @@ int __meminit vmemmap_populate_hugepages(unsigned long start, unsigned long end, return 0; } +#ifndef vmemmap_populate_compound_pages /* * For compound pages bigger than section size (e.g. x86 1G compound * pages with 2M subsection size) fill the rest of sections as tail @@ -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(+)