From patchwork Thu Jul 6 18:33:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pintu Kumar X-Patchwork-Id: 13304050 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 EDA29EB64D9 for ; Thu, 6 Jul 2023 18:34:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8CBAC6B0072; Thu, 6 Jul 2023 14:34:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 87BE26B0074; Thu, 6 Jul 2023 14:34:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7437D6B0075; Thu, 6 Jul 2023 14:34:12 -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 627BF6B0072 for ; Thu, 6 Jul 2023 14:34:12 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3A56FA040F for ; Thu, 6 Jul 2023 18:34:12 +0000 (UTC) X-FDA: 80982036744.25.F6F4061 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by imf23.hostedemail.com (Postfix) with ESMTP id AEF2C14001B for ; Thu, 6 Jul 2023 18:34:08 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=ibFl8Ce5; spf=pass (imf23.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.180.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=1688668449; 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:in-reply-to:references:references:dkim-signature; bh=ojbBXIyB80quZcyQc7gM+InzCsPHAEd1XC8UsJOufNY=; b=F0XnHwm+CdoDzSBBKDI0pgCUbTvLWqfQUodGCXHb9Y7pZ1mQQNQDutxotPglRBugMex8zz kjQaJM5haR8jaB9B7RDzbMi1zA+SMu0w/CMlTVkUgULW/bzbGjS8vebFvmi+EKjLjGGBHr DK/w1ABU5V0FeL1Lx8jbH81Iz4yeMGk= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=ibFl8Ce5; spf=pass (imf23.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688668449; a=rsa-sha256; cv=none; b=VIVr2lfBkENwC73WWpyyo7rawP2g2FjHYf9BwlfGSoE3SskzHhm3Raic7xUuOvleyNp6UI RzMqXM1MPrDuPqvhDJze9qhJ/Rew6ORMdwx1DlD1pC2x1649m5V9kh0eHpOzo+/UHydCfx IxxiAvdJ7VTeu5UFoHOf1QVeznEBrqs= Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 366ETa63002849; Thu, 6 Jul 2023 18:34:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=ojbBXIyB80quZcyQc7gM+InzCsPHAEd1XC8UsJOufNY=; b=ibFl8Ce5z2qONYRbw1xdW7Q4Thi2QinlATH7uku0w1qMOaCB6ShPvJ0woRKUjEgatmAc NQyFEkfxomWn0fvWJrT6KjNP1oSfnrEp43UFVQ2PHvZh/wvnm2WErLG3853hty5gPL9W MD76Ac9TUoTe50L1V33pU7stPdISm2monSi4Nz8fAEn7uDgrXfVCTWV0or2ils/XHTkE TVdxVbKKrnv47cdXpI5tYZBXMgHe9qCw0GsQ/lEdcoW1e7caTrkRMPPZzn6Vn214g9hj s1zGTSR2NeQqsaJoctaxTPNcmRbb3oszZZOa9qQGzmjfyd0fPqUFjIoJRAj630f8bZzy 6Q== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rn5ht3y9r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 18:34:07 +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 366IY5hT026669 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Jul 2023 18:34:06 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:34:03 -0700 From: Pintu Kumar To: , , CC: , Subject: [PATCH v2] mm: cma: print cma name as well in cma_alloc debug Date: Fri, 7 Jul 2023 00:03:34 +0530 Message-ID: <1688668414-12350-1-git-send-email-quic_pintu@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1688668070-8408-1-git-send-email-quic_pintu@quicinc.com> References: <1688668070-8408-1-git-send-email-quic_pintu@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: Vu31gbRtfVCEy2GJhRtQrn_nCbI8yiXZ X-Proofpoint-GUID: Vu31gbRtfVCEy2GJhRtQrn_nCbI8yiXZ 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 priorityscore=1501 adultscore=0 clxscore=1015 malwarescore=0 suspectscore=0 bulkscore=0 mlxscore=0 mlxlogscore=735 lowpriorityscore=0 impostorscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060165 X-Rspamd-Queue-Id: AEF2C14001B X-Rspam-User: X-Stat-Signature: teaf5hgk1yhymtrzord1nqtkyz4598yq X-Rspamd-Server: rspam01 X-HE-Tag: 1688668448-602937 X-HE-Meta: U2FsdGVkX1+8a1QhuxNqwo9wkSVbrSXyoSWW2VHtS7ppNireNSjtHbeNCDd9xrj3kxOMlNVlsYgFx0IwzEaFxDRjUD6MJ5KW/ZZKUfjLxZbK2ioc9qavS/vfn/9LMn6KTZRB8/lhfVPvND0H0XoHnyxV96cV/c0Gdr99pE0m7QINPPGB+Nk4aREig7FEbnBOqqJHEmVHTv2tb/FIfLxvPkaVo06sN/k5zJjRkoR2nPZlLxRjDYzn3w8Iotb3BL9Z74Co/Ke4ltu/kuSS6Q07aBXTiFdOCUqFoidLC3lO7jodoj2J5WaNuKfUfxrQvDglSzwxFtC301cNEKWx8Oag9d8tZkVIHlm4DNAxMPbrQF0dZa2ajhi+McbwVwfsI3ROBlua/GFvCvhKhdc616pXu/AwuygIY0cbJoIQ81pSX+wq4r4I9+0WbpWcJtpZiQdy3dxz8bMkjVOGSLDM83GZ2EXR3hoqUf744Oij0vKQI2vivE7urHCusyqT5ISQVzxBzPNQarZCymp8rV0IPP9Qtvj72JzHwQRoqBpHVKEERa/SF4CwgnVEF7gGgwt2X1jBWyLYy/NBiwb1J/5Aihw+XzeNTt/UViS4MxD9VgjfvxO9AXTaLTi7jGdWRse7p1oWn/0e+MTo9VDN/HmIT36K09mLQR+m+EEixDsXJnUiftWKsC6j2vI9HCwy8gY0ieLQXlv2n7bzqKZlE+e3qSuzjMdpzs2PWfNNYYO182jOB5Xiy5oNfnpagqeNzeF5c8dwoZHn+iY6bvbrUZEqq6UOCwmVAbgiOw6DhDWt2boEB2N6ona6OT3g+AO+n2vtzDAx7EqMMweC5Mgu4vYb43PVGDCUXMJW3z7JWZX+GfrVw2pm0c3f2ltpfxPKN/6RPO19F9CCtanHQoNKgCVGT5gAkNyGjdUiwTcjIA0wkm+KOkse+EItcc6D5tNZe9GuS1QsyVBaKeeJZzL1SYAezA1 o/aDzQL1 EqvIE2dcuCnjwYVn2WnJxTz2hMY0fdtNur3MBUXFy7dEm+d5Bx+NcoYJQgj9Jkb490gvVExFCbl8mVn9qoT9y1494NUwFQUsJMVvJP26ImSsYAnMBpHrgovf0JqlU5TZPUOEnmsi2ScUTVraz8tONlB/bg3M0ZX0hca5ZQsAV4B3MZmmMRj3FcSqmCTKmIYrdOLCnCLbP5En48xtkVl0CweZV+lCpkl+2sBuVI6NxKxIwWXwbLrYOCW+DV98Ac8/SEUXVgzIJ9P41I7xyHryinwi7RSBXk+qQtehfXD/d1BSjkebM02C8CF13paocivP2EcdRM/i/3BFu94Cfd+PVo5m/WvHtNHvmrppu+cVfjTbJXzj59jPw9fN3Sg== 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..4880f72 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_debug("%s(cma %p, name: %s, count %lu, align %d)\n", __func__, + (void *)cma, cma->name, count, align); if (!count) goto out;