From patchwork Sat Jul 29 02:35:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pintu Kumar X-Patchwork-Id: 13332980 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 BE0B6EB64DD for ; Sat, 29 Jul 2023 02:35:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E3FF96B0071; Fri, 28 Jul 2023 22:35:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E20606B0072; Fri, 28 Jul 2023 22:35:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CDE3C8D0001; Fri, 28 Jul 2023 22:35:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id BE19B6B0071 for ; Fri, 28 Jul 2023 22:35:54 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 8ABB71C9663 for ; Sat, 29 Jul 2023 02:35:54 +0000 (UTC) X-FDA: 81063084228.29.EEBC464 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by imf21.hostedemail.com (Postfix) with ESMTP id 589BD1C0005 for ; Sat, 29 Jul 2023 02:35:52 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=MJiKUzwX; spf=pass (imf21.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=1690598152; 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=UhCe6In43FCrljOeoCP6IaxqfLrOJVXxJPpLg+djOW4=; b=MwaZ3s1b/95lUqET+O0dQl86R/rNpvyg0yT7gBwV4pbOxPF7OqKSoba6IHFe+FFQzbdk89 5/kHXVGhp6SD1HQpvJ81+BGRcK9zvXJOxc35GHz9ojQsK1zt0KIt4k+wNz9ympkBqyhaDn 6337wiKD81J9T4HBbbwBaVqFSGKGonQ= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=MJiKUzwX; spf=pass (imf21.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=1690598152; a=rsa-sha256; cv=none; b=jOucCoNZqwC1wKhIHAusxvxe0Ztsb2Xmvo80cmbCkWCFVHxDHgdgLUDBp5NXCGd1a24nqO L9kBFctB+MdcfhU4utaZv0dwo7mol0f4szAv74wJv2muhpGFjI5cy7HjhvorqAvA/NR5tq 4g6QjMzjD46y7i0guvWMQsIGv1rScFw= Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36T2Sbma019420; Sat, 29 Jul 2023 02:35:48 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=UhCe6In43FCrljOeoCP6IaxqfLrOJVXxJPpLg+djOW4=; b=MJiKUzwXTiUL4cxRftma/uuA5NDsboJHppypat3sDMQiwR4xj2HZh5rTEI5QFlQhF02Q 8Yqax9X9/3GaW8vjgnfZBri64DBPqiHrWq0Udr+ckQ+AYWARpHBrE4mx6A4yvyakGDcP yh078EE442YGgBp0mTw4nKXTIpylnHWGMAeqddRCqKFMTGC4JcnOaWAygZ7iFCaMsF0i rdfVGjLfFDy2VTthXYP44KK5bu8pF9qhulziaMc/9OPNyCZSpG0QYH4eiJhSiAUOgDno uMkWZI24+903Lv4kcDmNwhOioH83Ub0s3YrMcSZmLJkRKv6dtdU2K7yb4Dl/t6r3pYsE MQ== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s468r2dhm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Jul 2023 02:35:48 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36T2Zk9M016800 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 29 Jul 2023 02:35:46 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; Fri, 28 Jul 2023 19:35:44 -0700 From: Pintu Kumar To: , , , , , , CC: , Subject: [PATCH v2] dma-contiguous: define proper name for global cma region Date: Sat, 29 Jul 2023 08:05:15 +0530 Message-ID: <1690598115-26287-1-git-send-email-quic_pintu@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1690567693-22082-1-git-send-email-quic_pintu@quicinc.com> References: <1690567693-22082-1-git-send-email-quic_pintu@quicinc.com> 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-GUID: _6iX0h66HcyeLJUcw2MSgekfzWvhWpdJ X-Proofpoint-ORIG-GUID: _6iX0h66HcyeLJUcw2MSgekfzWvhWpdJ 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-27_10,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxlogscore=850 bulkscore=0 adultscore=0 malwarescore=0 spamscore=0 suspectscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307290021 X-Rspamd-Queue-Id: 589BD1C0005 X-Rspam-User: X-Stat-Signature: msj15kcgdy8oq9u9zsqhopj55w6c71g8 X-Rspamd-Server: rspam01 X-HE-Tag: 1690598152-18122 X-HE-Meta: U2FsdGVkX19CTQW7xbfy+rezpDyi22CNnvmQ53jIY+SoBWYHzp0Ktzw265IqJoLbcFlWIZBtUc0owpkF5M1ZG9qZFJ61qQVpLaWiYvW6ZmsUtRiFPwnUPhMF/D5KupjDaln8X79jvNqwLGX1fNsMVUM2aCd2aYXqPEKsawBAi/C3Nk1MAsbYMf+D22nwo6qkirCJzDYp86Aq12/o2fcGMAhViPSvgQB8O8OALAA98BAfYgwYb0CbKm9VcuSIoQ7rihQO3sBrI+5WrI/11DMY1IvLWcaI9zreb0lMg8VRlhoCrM9e3n2OdjuuSj8H4GbAr4FVhKhWDs7pzM04Gu2lQktRVNVIsjbojM8ntIxHIh4rlJpzVFrkRk4Oa+tECKqaO54XzecpIc8KBmkuaUdXMIMnD1tk582YUes/iDtUu8pUIshb4RdCvvDMigHSNCHb+BUWAOAoiNfDAHkTPX6U7d9Se+AqIuz4tgnICAp30dflsFNKI9tUTohRqHD3798VYKOlr5npvvjbaSTKARsni3NHSfl7h/vdgtWpJ5reYU9k67O2qsHa4XNO/KrovW9NeWyNkwmL6BEZPHpvLidtdBRjswL5w9EZSGR0LfDCfH+1zG270Sn1NLDiy6odS9rQqY0wZCqTzkXzJ0P7zcHHR0RCBjZ90TGtju+VohuXufq2x65/UviqLo7Zqdj7FtjIr3XlCHBgZjD+/DQ9rLyuswVT1+NzBrTgdphjcBvwV19kiX1PdePA8qqP8QTUvSo1Y5uSOuCL6MzAXKaieZD4lVv0GGkz5Ez/2h22NoGwsvbYgeKmp37ophLtVsiIfUYOEON227t98S6WPSdAYKHyLeylyB9EYtkpwnPJuLB5PsDEuIThoYGLTcqcThavJPkhGzNjCDhXMmX941tlH2xyOwJTOVfKO18C3WPsOf12dum/t4Eil84oM30usgKz7qqBBSnJGjmF3XrR6BTsNcx dfExc1jG tGSOvyuCcbN819/MeH6++5I/JjQC0g/XLzD6pwNIIejjeIdExNC86xCGjtrWNsln6bG3KnYjswwSYK6UEm1WU+BGBrTeY9iXtp6BT5VLZgHZo4fR6ZL6OYPDbe1fqr/nKqWnZ7EyjVfBOB1ITsnt5PFTbzRi2HLGMg2IrPRBNk+hHYEwHdm01ugc+B7GMo/Tl0a8uv6TPabKTAauz7W/aUkqTpjOcT5O+FGaspIx+cK4eAVW1CVK75Z4alkw04UHQ0VCxg1ZJtEAM0BoWObJrA5/pJM7W3TAaj/T4 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: The current global cma region name defined as "reserved" which is misleading, creates confusion and too generic. Also, the default cma allocation happens from global cma region, so, if one has to figure out all allocations happening from global cma region, this seems easier. Thus, change the name from "reserved" to "global-cma-region". Signed-off-by: Pintu Kumar --- kernel/dma/contiguous.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/dma/contiguous.c b/kernel/dma/contiguous.c index 26a8e53..4628b62 100644 --- a/kernel/dma/contiguous.c +++ b/kernel/dma/contiguous.c @@ -237,7 +237,7 @@ int __init dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base, int ret; ret = cma_declare_contiguous(base, size, limit, 0, 0, fixed, - "reserved", res_cma); + "global-cma-region", res_cma); if (ret) return ret;