From patchwork Thu Jul 6 18:27:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pintu Kumar X-Patchwork-Id: 13304048 Return-Path: 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 4CC87EB64D9 for ; Thu, 6 Jul 2023 18:28:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E4D606B0072; Thu, 6 Jul 2023 14:28:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DFC5A8D0003; Thu, 6 Jul 2023 14:28:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CEB538D0002; Thu, 6 Jul 2023 14:28:13 -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 BFEF76B0072 for ; Thu, 6 Jul 2023 14:28:13 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 9A8D3160C7B for ; Thu, 6 Jul 2023 18:28:13 +0000 (UTC) X-FDA: 80982021666.14.61F9059 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by imf11.hostedemail.com (Postfix) with ESMTP id 283B440003 for ; Thu, 6 Jul 2023 18:28:10 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b="DwCbp/Eb"; spf=pass (imf11.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.168.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688668091; 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-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=uC9lIJHCOOldEmNMSWaPvJCJ3FW/F8uLoL3pWDa3K8M=; b=7O6LAMR1m/QCEW8d8MKRInoXLyng8r8b93l4svR52DuGiOXqGdLmt8rFjUIgDJLUu8N8xP rMlpIj6l9Bv6/v6dKbETey6lkPiHQmqT/xYkKrzXE5DHn3TIPU/8EYqptWkAh/0vegps2W GWonfmsc6lElnCW3Sui05sE03TrtwVg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688668091; a=rsa-sha256; cv=none; b=YGwwJAoKZC7ccHGLHJetkEU6d2lqlVUQ+VmCds38ZXPSV7dFncm4FsrCw7gEFmsaTJYsNV RkcwCfCjgHogkm3Gg8HJkip2/+rbAJcpOLHzlT2jcrxkOKTkXXL/sQcuSIxVd/yQtvM0se GTct4HKsp2vHubDruC9+jAFHDp0YnlI= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b="DwCbp/Eb"; spf=pass (imf11.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.168.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 366ID4LW022096; Thu, 6 Jul 2023 18:28:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=uC9lIJHCOOldEmNMSWaPvJCJ3FW/F8uLoL3pWDa3K8M=; b=DwCbp/EblslmW0qKBUSibsK6WT/VPUTfZJ03FJMF0E4x20c4mlaC9ShDkW+TDFi3Egmx yj/YRfpK7IoqOn/Z7Xx8t/Pgn3MFzs8UbOCveBbO9tXezCv7qnqb9juTYMQaFztXUTjx uKvqa89UFpnJMLFngpt/mG7Jfi7ImGkBRZsdBrid8EL53yvu+nWp6y0rFDOBJhcxNn+K dhGmIw5hvdYHgZtk/DSoJ6AWUpOJsjK8wUIkstL1uaOh+fxO3nvwxauBpcNwQV6alFao 3CNb0tKkyvf4x0hJG0af3uOC0hncHHP6TzxILSbBxeW5E0OaK44w8LJcIKPG3UoFne8D iA== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rnx4x0qtn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 18:28:08 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 366IS7Zm018031 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Jul 2023 18:28:07 GMT Received: from blr-ubuntu-498.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 6 Jul 2023 11:28:05 -0700 From: Pintu Kumar To: , , CC: , Subject: [PATCH] mm: cma: print cma name as well in cma_alloc debug Date: Thu, 6 Jul 2023 23:57:50 +0530 Message-ID: <1688668070-8408-1-git-send-email-quic_pintu@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: V6Hzbj6Z9y9Fx6pzsJ_TC9_gHDnHu2OJ X-Proofpoint-GUID: V6Hzbj6Z9y9Fx6pzsJ_TC9_gHDnHu2OJ 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_13,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 mlxscore=0 malwarescore=0 suspectscore=0 clxscore=1011 spamscore=0 mlxlogscore=713 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060165 X-Rspamd-Queue-Id: 283B440003 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: nfpy8zzdyqoreb1pz41fbx4y99p15g73 X-HE-Tag: 1688668090-942870 X-HE-Meta: U2FsdGVkX1/4SK7bY1DtIXVB2y8VPqqbgCjv6wHxg75hl8P8lbnHQIyOJixZg1vZ1xeQOdiQSxb94JugatD6ttyf92+QVMxZngny82zoyPhVKlLyOjBvFUw+BNeiKpy/2djXm7ci10E+0m5L46BR6CjaXeaLrbVQ5/8pjAk/bbkFPG/71G1v7w6tsGDwRllzw04kv5U1jgIbVC6HAREVqJFPeVOLf6OkL2QqKlXOEtaOFoOTzfS9zqKJ81fI2CtnKZUbcFT9dr1kKRdSTthnc4w7sJpOIjXNf7WiP5lI8ZoX94QAwZe2SGAhNAdTLi3Xd6wFtAX9Vl27U0A/BayG91NTk1NLbu2FJWF4jrcNH5yniCwsQNZFqJOSWcyfmbP7hSkegtzV7sHFjgfdFyyIHYvBmCp/QH0oABIjceNPWx4U6HVq2neHhjBV3pxfu27Lig7kIvupJSbo5UbXNzprYUTw+P61Q+vB/ffkpWbjZ/CpJQj+KsHZWFeRkZMyguDP72dbf0ewCjtPC33oDxP0xRqhUWATKUprtaTI0LiYxDyu7lg4wIDMf+cBD2AQ7dK1GrfUamyk1GBoMqXQUZxCWGOk14NnhQxcMKlfl07oBez1+dJ9efW3Y7rGnQ8ArwKkLsvCtOVISmfe9U8fPZsparvyao2AGLKbBjrvjsSXxSjK1h8l1bBYfdhW2q/Vn3PQchSWzT1AEbQ1b9OpC4Jft4aeYHr3apaLxfpQs6tgUh6Z1w2uRhv0A4DPtES3KrsVs7gN0b066rHbFLvUtIBmEfHUcB9yjeZnD4Igqh1WbHvBzdZojsyXrSKOMyJsHdnlLhJYztRHKMPu3FIUfvwrYbWjGZmBMRIS+jJPGk7n3mCZ+Oo8GdCzy1+Ug8YQra5k3/GdJM22gFCsXhCHTF5587bI6IaH8Ocn17yVR+06B43mUoJMyil5o8t64HVzaiKocbNkUeXueAdX9jPheYH 4x2WnMpy v78Uo62PG0h5HWYOg19WXIZGJT2qJcU8ymUGrgb2dz+4R5c0zaV3JBuWYrrdAV8uLPTQp+SlRX0WoeDLPsOKCT1cSzefJXld3ytCce0/oExfyTGFaagWlF1FnMrNc81suC2Cosvzg6krqqiQd7siKc9Lu6/IXRoSIKH1kXENf7fN/8CkCACuq1GsXd3z6VBiFccZg9Kh5bZBVd/1eCj35oFjg0kzD3jGxEVYlZeazAGWLWk+BPD1ZG57BKSIxL6xW4PGTey15SL0CF022reFtmXVZYcHp72OfWxLm4PmbTltxq510I9zL5+9jEGfLBKFqR42RGUGEg5NcZxhtSbSYnfufHlIqPezsEa9m0d77RGOy+dVv3ZSpi6WCBw== 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: CMA allocation can happen either from global cma or from dedicated cma region. Thus it is helpful to print cma name as well during initial debugging to confirm cma regions were getting initialized or not. Signed-off-by: Pintu Kumar Signed-off-by: Pintu Agarwal --- mm/cma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/cma.c b/mm/cma.c index a4cfe99..96718b53 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -436,8 +436,8 @@ struct page *cma_alloc(struct cma *cma, unsigned long count, if (!cma || !cma->count || !cma->bitmap) goto out; - pr_debug("%s(cma %p, count %lu, align %d)\n", __func__, (void *)cma, - count, align); + pr_info("%s(cma %p, name: %s, count %lu, align %d)\n", __func__, + (void *)cma, cma->name, count, align); if (!count) goto out;