Message ID | 20230724190759.483013-14-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 D5119EB64DD for <linux-mm@archiver.kernel.org>; Mon, 24 Jul 2023 19:10:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2CE248E0002; Mon, 24 Jul 2023 15:10:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 27E8F8E0001; Mon, 24 Jul 2023 15:10:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 11F428E0002; Mon, 24 Jul 2023 15:10:59 -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 002818E0001 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 15:10:58 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id C7C92A0B46 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 19:10:58 +0000 (UTC) X-FDA: 81047447796.06.5C3D82F Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf12.hostedemail.com (Postfix) with ESMTP id 6210240013 for <linux-mm@kvack.org>; Mon, 24 Jul 2023 19:10:56 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=SJhF+xtm; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf12.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=1690225856; a=rsa-sha256; cv=none; b=XvNfS3UqEHR5PA4Snb1yrZ3knYNApBa9SFyMbYo3Pqcn0vEdqVAI5lCIg9i7I8F2XLT6sE bHa64wxKMvj2d+5+cRdaBoQHFlGaf+ew3eBc1Z84Jjf8DNMalf9+E/Y+H6qR/19SycNj8v OGdK1PMnajaV7FemnLkg24EktVr+2Qk= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=SJhF+xtm; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf12.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=1690225856; 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=OzgVSyWVI3AAxB+6uLj8jPMnZtHSwhw7otMqlC/gYFU=; b=8XwZ8MY27iSPHIJieFGSmPxNxlqOQjyxHFP61CyOzXGdz3fCj6AvYd7JgprFeSobQRoZA5 ryvgMDm628xkv3mCfy19yxh9FmGgzwShMc4JI0YEAwYHfy67VwctQESr8tr9qScakYxKGK GPlUg85Fo2dTsOyv0Xt25BShSnCDfXk= Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36OJ9KE5021802; Mon, 24 Jul 2023 19:10:44 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=OzgVSyWVI3AAxB+6uLj8jPMnZtHSwhw7otMqlC/gYFU=; b=SJhF+xtm7br5nhXq0yijocNcrGjNVGUJwxuJvUdlgwgBWKPpcrcXbAeYFTqnbzUWxxDk PQEhzrW5nScaeMITi0+8M20mzz8MccUcK4d0Z00mOP5elC5siwxZuGa71q8bCMHvaXtO 1luJ9Ack1eY4awmbj5UooJBJY3vdaPf2Q5YDh5X5ZRyLQI3xpUqPg3ewQpjFfd+XbeN7 texfZWvqqN30Ca9EXFGzaexabQnlnDC4B7FWlTdmz7bJpXAB11EfDc2RsLAka6pI0kso GIww+EkkfFU8QCar/345nOgF/GpWo8zPmX672H0IVtgvnhauiLfWMxWNIWgkRrNABQYF qg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3s1w3eb1cf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 19:10:44 +0000 Received: from m0360072.ppops.net (m0360072.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 36OJ9N1Q022158; Mon, 24 Jul 2023 19:10:43 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3s1w3eb1bh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 19:10:43 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36OIjlFq002278; Mon, 24 Jul 2023 19:10:42 GMT Received: from smtprelay02.dal12v.mail.ibm.com ([172.16.1.4]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3s0unj5bh8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 19:10:42 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay02.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36OJAgLF28574434 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Jul 2023 19:10:42 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2C9C258055; Mon, 24 Jul 2023 19:10:42 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 40CFB58067; Mon, 24 Jul 2023 19:10:37 +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:10:36 +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 13/13] powerpc/book3s64/radix: Add debug message to give more details of vmemmap allocation Date: Tue, 25 Jul 2023 00:37:59 +0530 Message-ID: <20230724190759.483013-14-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-GUID: 9LVlmaQWoRJPTWWZX7l3NZ4mXIM5w0dC X-Proofpoint-ORIG-GUID: DL7WikEFZZ4S5awmx-Hh0G-n0geze-Ec 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 suspectscore=0 mlxlogscore=999 mlxscore=0 bulkscore=0 impostorscore=0 phishscore=0 adultscore=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307240168 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 6210240013 X-Stat-Signature: pqexseywbj7k7uhsuktj9bmx74y9uido X-HE-Tag: 1690225856-204197 X-HE-Meta: U2FsdGVkX1+wcd9EvpP73T+PksXQ3sejb4l3QHWO+ZsT4mPvs9aoeXSfbsW7NyttFexkQot1C5Mx1ovKaYtbnWwweV58aT3NaFUfAQglGiyXgQmZdTVJSqm941A7wTqGNOPvaqGuKFZuQeOR4Y6Hqpa5XXUFkTZQysX4sF0uHrvc+LRXzT6e4fkAis3j3Vam9ivdDSCkAaBeSQtWAjeYE0Tp0RyO7VynbSQ58ECuKiFd1omdTy23HPmvje7HDux2cCq3a6BIrD/iBqURV9oFQRHRGNxKwWnu+3eoVzm9dKCQE7ydQDpDCda/LMw4bZhSUOmlPVdmE9dgQ88PNT6ySM14hH9WTqRdkkhvAdNXzXHDZln9TMofn5in7xIKnqk9Sm4+k1MeZ8Olxe2oAi+FGLqbNSs2uAQu4iyHuggbF54sS3ex1+nU/z832iu7K/RaO17By8sHld7japLnE69gfZc6NCDB0e0trIDtY81qRH+fDFQERPwQ+zWC9uM1hw6nkYi6h59IPnxar/Djbm+GnlNivcQGZm5HrOuIJ3lVfSUb/2Hik5XXpp9A8BtNdpb1d/hnT5qWu4LERP3PpIlhKLiHw9yPbKqrb9fRdxccS6ytTTsA249jdY528Vm7xcySn26ggYZUOiLN44djpdQbbaW3LX9aph/7DL+jsV/ACMy0FYzzwV1okPMivsYHPpvoLkuypSL7Fj2estF2crkGotI6Csa8kGeu+tI8F6LNcWgx8n1yIRkBJhsfu4BFFFdVvsNlGMx+j/XJ/y5Rm51AOHRV3QlgsEVpIjbQtm9Nh7hXfQ5sCV+bGl/ieqQ4QI3ocnfYp4c9puGME1G562tUkx2uAhdrd/P8DNzUZPvDCSpmlBE0C8Gz/C86lgdXnpZySo9K8UWeJWIpYEj2GVCDcoGbIIuyovpUg+HCa5jrIFQkGrGrxjqPjoL74/bj2RtmLV+Rd3qzWW108jYBqKZ OIPMA2hX RpDzb/X7E/rKHhl+S0j73aWJnmdUJcROD0B0mAYgExMtF6pnTgu0pyj2Il5PXfqT4ElN6HcDGPf3skhTVUnhTkvDCzum63UUmRhRAKw8GltA2MIHavZWvD9lGmL4Fn+gLwxbe31Lc76igqb6z7mD3TI+UqHEGG2ZuV8K3tjznUHAOMkDbaENvR7FMxaKIKPY1WJvBrPiybRTEy6VRrtXrFKF4ISn/u5RH+8vOhJm6quoBDYg= 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/arch/powerpc/mm/book3s64/radix_pgtable.c b/arch/powerpc/mm/book3s64/radix_pgtable.c index 25b46058f556..59aaa30a7c0d 100644 --- a/arch/powerpc/mm/book3s64/radix_pgtable.c +++ b/arch/powerpc/mm/book3s64/radix_pgtable.c @@ -1033,6 +1033,7 @@ static pte_t * __meminit radix__vmemmap_pte_populate(pmd_t *pmdp, unsigned long p = vmemmap_alloc_block_buf(PAGE_SIZE, node, NULL); if (!p) return NULL; + pr_debug("PAGE_SIZE vmemmap mapping\n"); } else { /* * When a PTE/PMD entry is freed from the init_mm @@ -1045,6 +1046,7 @@ static pte_t * __meminit radix__vmemmap_pte_populate(pmd_t *pmdp, unsigned long */ get_page(reuse); p = page_to_virt(reuse); + pr_debug("Tail page reuse vmemmap mapping\n"); } VM_BUG_ON(!PAGE_ALIGNED(addr)); @@ -1154,6 +1156,7 @@ int __meminit radix__vmemmap_populate(unsigned long start, unsigned long end, in p = vmemmap_alloc_block_buf(PMD_SIZE, node, altmap); if (p) { vmemmap_set_pmd(pmd, p, node, addr, next); + pr_debug("PMD_SIZE vmemmap mapping\n"); continue; } else if (altmap) { /*
Add some extra vmemmap pr_debug message that will indicate the type of vmemmap allocations. For ex: with DAX vmemmap optimization we can find the below details: [ 187.166580] radix-mmu: PAGE_SIZE vmemmap mapping [ 187.166587] radix-mmu: PAGE_SIZE vmemmap mapping [ 187.166591] radix-mmu: Tail page reuse vmemmap mapping [ 187.166594] radix-mmu: Tail page reuse vmemmap mapping [ 187.166598] radix-mmu: Tail page reuse vmemmap mapping [ 187.166601] radix-mmu: Tail page reuse vmemmap mapping [ 187.166604] radix-mmu: Tail page reuse vmemmap mapping [ 187.166608] radix-mmu: Tail page reuse vmemmap mapping [ 187.166611] radix-mmu: Tail page reuse vmemmap mapping [ 187.166614] radix-mmu: Tail page reuse vmemmap mapping [ 187.166617] radix-mmu: Tail page reuse vmemmap mapping [ 187.166620] radix-mmu: Tail page reuse vmemmap mapping [ 187.166623] radix-mmu: Tail page reuse vmemmap mapping [ 187.166626] radix-mmu: Tail page reuse vmemmap mapping [ 187.166629] radix-mmu: Tail page reuse vmemmap mapping [ 187.166632] radix-mmu: Tail page reuse vmemmap mapping And without vmemmap optimization [ 293.549931] radix-mmu: PMD_SIZE vmemmap mapping [ 293.549984] radix-mmu: PMD_SIZE vmemmap mapping [ 293.550032] radix-mmu: PMD_SIZE vmemmap mapping [ 293.550076] radix-mmu: PMD_SIZE vmemmap mapping [ 293.550117] radix-mmu: PMD_SIZE vmemmap mapping Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> --- arch/powerpc/mm/book3s64/radix_pgtable.c | 3 +++ 1 file changed, 3 insertions(+)