Message ID | 20230718022934.90447-2-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 3E1C9C001DE for <linux-mm@archiver.kernel.org>; Tue, 18 Jul 2023 02:30:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EA3608D0001; Mon, 17 Jul 2023 22:30:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E53826B0075; Mon, 17 Jul 2023 22:30:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CF3248D0001; Mon, 17 Jul 2023 22:30:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id C1FC66B0074 for <linux-mm@kvack.org>; Mon, 17 Jul 2023 22:30:13 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 8AA18A06C0 for <linux-mm@kvack.org>; Tue, 18 Jul 2023 02:30:13 +0000 (UTC) X-FDA: 81023153106.22.C7B1C62 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf22.hostedemail.com (Postfix) with ESMTP id B7432C0009 for <linux-mm@kvack.org>; Tue, 18 Jul 2023 02:30:10 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=KTeDiupj; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf22.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 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=1689647411; 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=gIwGa+3hYJLNa80XYFGwUC4kKd8ZksGVnKEaSGKTCEk=; b=gfSoGvZhFOR8rhZoZKhjHEQwkxYX6lftzTR+4XeZeFFIWW9fCL8BDTqnpuISgd/UCW9PsR q3PkGe4mEhkUOLZmBF5ryWGvIE4FD7iEtrNrLIH9BuOwmPmDAdyey5FgJa7YLKUqxA7k2u OCfMhBMF03w3QKoVshUC/h3kb3p/ry8= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=KTeDiupj; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf22.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689647411; a=rsa-sha256; cv=none; b=c4bf+bupym1mRqBxz7hnGr+LMV5OpINCbRQq/kBKd/2RuRH8Q78hmdRT//yLr2uo2dq0Yq EskkePPW4FOvzaQdgISsdFyU+daMrW5qRh2YVc6yE/+AnY8sb098MFiMD8lWik/h/6Y1JH b8FImX8etF4xCgcCp4W7gduW1xnELWA= Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36I2PsEH019814; Tue, 18 Jul 2023 02:29:52 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=gIwGa+3hYJLNa80XYFGwUC4kKd8ZksGVnKEaSGKTCEk=; b=KTeDiupjo6svdrQexBBEeIMkmmijOd1Y7csorQfA5wB93s2gQo8YvSPYBK7nBTKEvKyW pAoWMIih7n4Omh/XST3LEtS10MqUgXyhYjRswAMzGMgWYA3z0LQ332zpFwGB5bbYVG1u Lzn330Q6IBdTB2SImX96rgwxkTDn+ggV5MYDUJSPHRcj9OGKklZrqDEIi8VWrS5c4vmg DpnBwZWBKGfbNnC0e84SZO7EQ+gmiePVA7GBIBOGXJUaAwANF2eQw2W7g/xAkGx8U24M R9sWl5odFvNigQ2RdqshqPDyKs/mm4FQ/RxjpC9SUaxCpVPz0VhlRY4rbxXHk3Wr6jpn gg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rwhxv02cp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jul 2023 02:29:52 +0000 Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 36I2RMeM024225; Tue, 18 Jul 2023 02:29:51 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rwhxv02cg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jul 2023 02:29:51 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36HJqUR2030668; Tue, 18 Jul 2023 02:29:50 GMT Received: from smtprelay04.dal12v.mail.ibm.com ([172.16.1.6]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3rv79jhgvw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jul 2023 02:29:50 +0000 Received: from smtpav01.dal12v.mail.ibm.com (smtpav01.dal12v.mail.ibm.com [10.241.53.100]) by smtprelay04.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36I2TnL46423114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jul 2023 02:29:49 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C4BAF58061; Tue, 18 Jul 2023 02:29:49 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C000658058; Tue, 18 Jul 2023 02:29:44 +0000 (GMT) Received: from skywalker.ibmuc.com (unknown [9.43.62.199]) by smtpav01.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 18 Jul 2023 02:29:44 +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 v5 01/13] mm/hugepage pud: Allow arch-specific helper function to check huge page pud support Date: Tue, 18 Jul 2023 07:59:21 +0530 Message-ID: <20230718022934.90447-2-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230718022934.90447-1-aneesh.kumar@linux.ibm.com> References: <20230718022934.90447-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 7NCCJLDqV5Pd9sh_iqiJdYXLNjlh0FlB X-Proofpoint-ORIG-GUID: l5VtyCyon77C3CdDkvvprbeJuTvt6gEQ 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-17_15,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 clxscore=1011 impostorscore=0 adultscore=0 phishscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307180017 X-Rspam-User: X-Stat-Signature: dcwpckyf833zdnopzq5m3oo58cs1d44p X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: B7432C0009 X-HE-Tag: 1689647410-762923 X-HE-Meta: U2FsdGVkX198e+F8pot2xHSbRykVq+tdUcOceLm16fKqwheN2vOikMNaJ5sTwJuHLdpbXoVpG1mvIAJhbYDpaVF4airvmwXuSlQBCiKmwEtVenPYdPeDtXrwu/6mzxJYtmcMiECF2bK9fojwtsofwUtxDmhMvCPtBMe3x+MifBV7oOpzVn5nw9H8TIQ8zsZdJ6TqvAq2cdP4PFX9OVaZbjkOQdeRlx9LMErFw+6i88rJAJS/uPc9CAYR5euQQ4oTc/9hAlR0jaNR7kbo1UtuIWRxPX0DFxxMwfdqvmXDvRUOdFaZYe7D+I0TmyAvWQb2ns56uqHwXM7mOdnxyI/ejTqi75lh2AbEbW7gnfNNAAXBBifcdi/PDK7OKhUyZ0tVDDyG6TGSf2IpEGXP8lJiWLPOhWP96hsErZY8zZgNM6U8H6O+6qDAK4LEGyGvsChBHrATEXrPsJquPUoPzMRMPJpp5tzp+4kkg3dL/hBXop/gszbvnXZ/FzHricE8OUCb2JdnOONbYZg/+dsSKM1BjnZONsZKjO0Qc6Xjb43T/Qlr5GRbZVZl3XwBqA3UcQpYDrVxZ8QLG0O9dcX8+zv86VxPsxNPmpdXwDxqiKm+f074l19ssIV5lqPzUf2EB2SyQLW2hEj9ATLkI6knWPqQZL94HgDBhhSjOegLT93Vq/CXtFljoSm5hDlVk9xiIMMFU3e0vNexsDFnTjFi2KSLU+YgM6mxhTck84UXgZIGZEdeM3myvQ1mCy3WN3ye/0RtVIHN8UrsgT4EwihUrxg40h8niIzHCQTgU3Hn6/UFuZ+1+3EfBDLhDzQAaHDWpJEYOwDwqss9MQvRqvWwvAHqaZ42KsXM/rw0qELdQeOAFHd5Q4xCeoOEFFVSL5rvJNvSpfixifwixd+js5MGB7IikOlaXAp0PpTE2ftjSSUIcflBmlriMEDtZytbp5i/LycXVOf0jY4xpfjjaPNN+Tw eC7a0OnB Xc8nQ6xWsZrvcmnxJmbMzKPMtTeXlWE2O+haSMbjcE8bKKxBszESWw2+Gh6a4xKp/iJi+QfAUmJ4XsRG4jlce1HEaD4DNxk3G0LK+BqhAcnKoOgGVMo0l73G2EfxGJO+Cg0U87lnz0ox66ogggA5tIx1LsedPJ1mPchhe0hHRQFsyNQNZe4JnqH32ZjnEAiKHnmJjgoVAa2dgoms= 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/drivers/nvdimm/pfn_devs.c b/drivers/nvdimm/pfn_devs.c index af7d9301520c..18ad315581ca 100644 --- a/drivers/nvdimm/pfn_devs.c +++ b/drivers/nvdimm/pfn_devs.c @@ -100,7 +100,7 @@ static unsigned long *nd_pfn_supported_alignments(unsigned long *alignments) if (has_transparent_hugepage()) { alignments[1] = HPAGE_PMD_SIZE; - if (IS_ENABLED(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD)) + if (has_transparent_pud_hugepage()) alignments[2] = HPAGE_PUD_SIZE; } diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 5063b482e34f..cf13f8d938a8 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -1499,6 +1499,9 @@ typedef unsigned int pgtbl_mod_mask; #define has_transparent_hugepage() IS_BUILTIN(CONFIG_TRANSPARENT_HUGEPAGE) #endif +#ifndef has_transparent_pud_hugepage +#define has_transparent_pud_hugepage() IS_BUILTIN(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD) +#endif /* * On some architectures it depends on the mm if the p4d/pud or pmd * layer of the page table hierarchy is folded or not.