Message ID | 20230706085819.827761-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 61BA2EB64DD for <linux-mm@archiver.kernel.org>; Thu, 6 Jul 2023 08:59:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F1C0F8D0005; Thu, 6 Jul 2023 04:59:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ECBE78D0001; Thu, 6 Jul 2023 04:59:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D461A8D0005; Thu, 6 Jul 2023 04:59:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id C61828D0001 for <linux-mm@kvack.org>; Thu, 6 Jul 2023 04:59:02 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 70F0AA03C4 for <linux-mm@kvack.org>; Thu, 6 Jul 2023 08:59:02 +0000 (UTC) X-FDA: 80980587324.12.FBFAD01 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf23.hostedemail.com (Postfix) with ESMTP id 23D4914000F for <linux-mm@kvack.org>; Thu, 6 Jul 2023 08:58:59 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=qj4VM0+l; spf=pass (imf23.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 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=1688633940; 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=SO8r5VbGmdwJ3q2RNf1QQ4rNQ+vbk/APFGvtlYo2uGM=; b=DqjDcQ87bVMVZZWCCE/RRs9lpdCiFPCPN+H1MWp/mxyogNpkjZ2JtPDr3UvRKNxh9QkJPv 9Z3PeOqFKedAG4y8s91Kmg/KPk4I6bfjrJwa+81bDUhs40idNyAzuxj+N0Os3hd39izWHh Ux1O8NHvhvQqIPLAIW4WrQLBP60ZvKo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688633940; a=rsa-sha256; cv=none; b=0AnYuWH36+IwyUyhjJcK2lj/fdYcQy3uzhRFX+GX5ZAcpbMeFpki2/SgKNBgwvkJfebv2k 9BOaJQRyJSjPj7+O3AxJfeUa1Bcfvh6DK/UQIiVEPINEY3kwkYxhci4/YFeT+yTUP1N8wk OWu4g842XSy4WYakso7GleD75apWVSw= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=qj4VM0+l; spf=pass (imf23.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3668qadW013823; Thu, 6 Jul 2023 08:58:40 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=SO8r5VbGmdwJ3q2RNf1QQ4rNQ+vbk/APFGvtlYo2uGM=; b=qj4VM0+l9pDHoT5/UHKVgRVF6axZw2HM3H0Mj0bqFGArtaHyDwedi6eBBU3jr+GnhM97 J3a4JrYvtHI2tB4oQHyFYXtRJtED2T4jCNtDhjInMrKanjUDDStRgUq+zjMaZvcJZb8U uB+m+KvmYW9Yodn0cVw/qpkamfhyHvH8FqIXhmjq6KUPxkANA6CUZmeSqL7BSNYsdoJS qi+MiwR4cZu0XVX759rxKCPA1f6KorjhB5dPdtynhS8jFfx8uHDTyfCrO++Iv+6MMbt1 YKlvkitpbIB8cUFORlyBd9m0pGv/bzSnAjHLacni4F4ZDDdRsOCIxf2G+NkbeXEOcTog DQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rntfpr40f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:58:40 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3668sBQL019390; Thu, 6 Jul 2023 08:58:39 GMT Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rntfpr405-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:58:39 +0000 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3667knaR002598; Thu, 6 Jul 2023 08:58:39 GMT Received: from smtprelay05.wdc07v.mail.ibm.com ([9.208.129.117]) by ppma05wdc.us.ibm.com (PPS) with ESMTPS id 3rjbs5yxu5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:58:39 +0000 Received: from smtpav01.dal12v.mail.ibm.com (smtpav01.dal12v.mail.ibm.com [10.241.53.100]) by smtprelay05.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3668wbXZ65339776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Jul 2023 08:58:38 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9C4D358059; Thu, 6 Jul 2023 08:58:37 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D486058057; Thu, 6 Jul 2023 08:58:32 +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:32 +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 01/13] mm/hugepage pud: Allow arch-specific helper function to check huge page pud support Date: Thu, 6 Jul 2023 14:28:07 +0530 Message-ID: <20230706085819.827761-2-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-ORIG-GUID: 3IIzO4X39zwkmKxpAzglX5tlHicNfMUx X-Proofpoint-GUID: yXhgcgU-CZmSvaocgdEUuZmGVnoTxV9y 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 mlxlogscore=999 mlxscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 priorityscore=1501 adultscore=0 suspectscore=0 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060075 X-Rspamd-Queue-Id: 23D4914000F X-Rspam-User: X-Stat-Signature: anepkf58dbu966jm9yq6homd8fxr3fxm X-Rspamd-Server: rspam03 X-HE-Tag: 1688633939-359458 X-HE-Meta: U2FsdGVkX18OvJ1ue0pegQT8VMjNt2+eclo223girjmjnjrVlTpDFN6Q4h+IlB/dv6XYZw1NiODLLdGMN7p9yASyy+Ynji9wHxJi2iryX9l/Ru1sIjwGrxnLZLkOo2f/yu0dco6KstJCsE33DzwFF6DhOpjZxoNphtExZ29OYVsE7SxeVUM+NAbtZrDy83kYT+bQdYZSsz0e6svLQU+55vy1L4D8nhXxf3ujQ23xCmMe4N06/v18iU7Sg1PJGWMuJj2SVZQzBBB3qcqikd7JxuG2zm6z4ziJjUA/Qs72MLZfSK+7+nK0ikbh6/QdHbKtkcJSirIwkJ+i66ihAX9P/1Q+L4Qq519nTZAxnwL7HjFsQ54dOz5p2qMy37dLr+nhW3nbcdBQn565CLNPmhbRPAvX+xIuE/s33m5LxjIHQARUuSRawkXAzfNrl3KNrK0maoM3M34/THyTMoSfy5jKz/GzbrzAFERf74au1A1aqDUlx95YriI/XH7aEkibpGT9ebe/6K/cTS94aNmBgBduvMXYe+/H2bfKWWI7HWX/44FGjgHpfbfF82V9Ny9eVniyJt2G5ujkDBUouN4zrsdf7OVuvLUtFEmDAUcUuH8Z6VA7uCkRfIFDlOZ5olEy2WRbwJ00cvT6FjI7SyEpnHUc55o4B9YSHblHwMHPSlqrUi0yuGo9D9r0MPIivC3tjGFc+jpnY8SbMXw+S3CDlkQ9hj/gIYCMoBzdcrDNr0H4VOMNdPLl4P6V1A3c2UbZYBGoLvMUK5vaISpo0OmyVQr97UyoAbnjy0a/F0HhDSLgKjxLyOD248I6spQM4OtrwNtP76SHfPp+p+l7cDwW+S/TOi2o/WyurnyZ7pkBb66TjIdaV8S6d0aZX6WXljIZNTr6TNB/gQWvRmMZxnFbNIL4z7wXuNE5gU+rbiWbRd6LTt24ZDQASWOImVxxXIjfMXxJNJA6tiFWJ+2KcfEdnpv QUphqDMR wFr6i+a/EvQiZH/NMzkCs7XJOSNZ5MjsEbw9leq96UkiadPUqSYdpaUIEBD+Ti+70aroiOYFbg8cKEXLW5ABi4pFYs52pyMVywrAz953+SnFG/RCqoQPfnCvX3aL9x2CDt3Gjg151bXBpg/YdsZqItJxK5VTVC1s9tupqC3CFk2A2I9TEuYI0jQ9VEWguBEJFSysOnV+XVS9Zm5FxED6/PoOxUDEQjFOH8uDNuTOs3KMjUps= 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.
Architectures like powerpc would like to enable transparent huge page pud support only with radix translation. To support that add has_transparent_pud_hugepage() helper that architectures can override. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> --- drivers/nvdimm/pfn_devs.c | 2 +- include/linux/pgtable.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)