From patchwork Fri Jul 28 18:08:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pintu Kumar X-Patchwork-Id: 13332244 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 BBC4EC001DF for ; Fri, 28 Jul 2023 18:09:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3C6C78D0001; Fri, 28 Jul 2023 14:09:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 34F4F6B0074; Fri, 28 Jul 2023 14:09:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1EFE58D0001; Fri, 28 Jul 2023 14:09:32 -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 0C1496B0071 for ; Fri, 28 Jul 2023 14:09:32 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id B9B2CA06F2 for ; Fri, 28 Jul 2023 18:09:31 +0000 (UTC) X-FDA: 81061808142.02.8156EF8 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by imf09.hostedemail.com (Postfix) with ESMTP id 8FE1B140009 for ; Fri, 28 Jul 2023 18:09:29 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=paurwDYT; dmarc=pass (policy=none) header.from=quicinc.com; spf=pass (imf09.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690567769; 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=MiNih1TreF2bQ84DR5ZYkbhz39CI8jbZhgMSwNvh2mI=; b=3f/xwm6NFJ4gPt415ORzGiONxbqDW9KCj5+60EQZl2EiV8y7eF06tvEOBd0s4aADnihcC6 Rv4VNPaJSr7zGD3pgOXDJr4H79eBvw8TYNOMaa3edpL7X5ao952LqzJgbB1Y8zQizYsDDr GaasEGiu7zKb9lk9BHVlEqT/x3yWGNU= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=paurwDYT; dmarc=pass (policy=none) header.from=quicinc.com; spf=pass (imf09.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690567769; a=rsa-sha256; cv=none; b=0+UQWbAVqnffPSyEOZB9eGdblPfGMrsQDfrL1uY+Wrz3QuNt+W3fruxsfHBfYBrP+ME/ON C7Wtmjw6hja/uE6qDrVtT3rBfDOuZ8MTyBg0LszHRZp+TtyLyYqCsUdfbyYBAk/wpjQ5Tn Xw8VSNcTRF7HqfVXlxWKjoK/+vTN//M= Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36SHL8VH022569; Fri, 28 Jul 2023 18:09:25 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=MiNih1TreF2bQ84DR5ZYkbhz39CI8jbZhgMSwNvh2mI=; b=paurwDYT+4t4xkgJyao4rlCHxsnFnYWhROz/3k8TzbKzc9bug2aFHLNUeigJcC2K2hRc LHXsEQO2M9LCerqgS/HsFH9/MPCqmdGWa6xrquATlEpJZHE3TRKss606L5DvIZs66rh/ l/qCqvdjfJQ9S5PrEy36nxpUzg499uUlejDzK2nd3AI1kMuPEO8A0YHort3y36/EpELS xkGsWoGiFZhIqHOzAw2lUZQifpf6WiVkqUbv7kkGTcn+UjUHUJ09ypZB6kLDDm0uafc2 uajS52hamZv8rvJAE/MPAW45GzlV9QGoXcHHToMpD6EkJut760dtjCXNOvQPYrT5al89 3w== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s4j0g0356-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Jul 2023 18:09:25 +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 36SI9NG6022496 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Jul 2023 18:09:24 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 11:09:20 -0700 From: Pintu Kumar To: , , , , , , CC: , Subject: [PATCH] dma-contiguous: define proper name for global cma region Date: Fri, 28 Jul 2023 23:38:13 +0530 Message-ID: <1690567693-22082-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-GUID: cgVwNJ-yHOn6m5eNHYQPWeBb3RDzPQkv X-Proofpoint-ORIG-GUID: cgVwNJ-yHOn6m5eNHYQPWeBb3RDzPQkv 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 suspectscore=0 clxscore=1011 lowpriorityscore=0 mlxlogscore=737 mlxscore=0 malwarescore=0 spamscore=0 impostorscore=0 phishscore=0 adultscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307280164 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 8FE1B140009 X-Stat-Signature: bpquxam59stw4b3rag4idq9mqy1uex4a X-HE-Tag: 1690567769-315609 X-HE-Meta: U2FsdGVkX19drddei3L41U/RIH15W68J1gRpfwIAtNoOewfYyCVpUDFBpQnSrCzh0rFb6SjpO0ZlyMiVKWZtTiI+8yDZQpF5TYIFjJE/IfsbkDcFS1ZHiWN2lxo9PFUxP7AsrlCi9A3zOeU8wJDma6Z1Te8WpPBXc0HUiCPwGm2bYLWQKyFqW3JczJdZNK4A5urqv+iLVFGvAbmt6o74FCntpqOGZFYSi58PsF35sZ9GiZYErm857ZbmFqW9Bqtadq29ZqtuyC6FPVrqX+S+mkeXplEdsH184b2zWT1HMibznbe2Z7cDX8SmDbWWRrUBepzz1UM9aOGuOwHWgRO/NPGmaNI2zf0TNNXQluGaWgmsXPOJieU7YCAjaTno48ocl06KEANrsHHLpGfZyuy+H6T8PeIWXH8MU8FxiAhl1KYEq/0cIQKKC0D7npmAvtz1onw6NGeemzq3aG84me0in1OmSL3A249AWihTeQdQWVKcVrs6DCzJpjo71uKknZdRWz+8O9s+y7NSadH6Qr1ET8USwYA969YfBzsBp4vhMiqDOtEhcPFu7fdMeCC5oCMAuErqLtiL79i8wFYh80jchZE+leC1lHXJqzP0XsSYOSAFGZvRMQ1FqrJG/wd4YJ5b6L7o1Exk11L7/tqdTu44dbluT0A4SZ44YDqnUB/cbk8KlA7OVhgz/9RuqHlI5HvYD8c+S3UeFgJG/JCm7bobV+4XAPxEwe2G/dh7dgJOJvO+5EqotNdE1TW8qW8bz5yMDX0aMICm1zYZBZLSpdbUjB5PENQflS7DyO2wzOfHhJalE4kbT4UGBNgYApkxlOiDe/98FgGLnFBJvDaV1wxBNFqa66S2CnVq1cX133dIbEk4nlvx4V6fAP/1Q2ejibIXhRaM23QpajJJiw6f1u7o5NL5Ep17yKsJHEGdVaEC4uUFgHibl2RyygtQ98jpUByqQSkj/WHo50XazoNmetJ C+FDOZYf OF9U+zdDMrWv+khrjfJF+ahTdvJn6ET6mZ0KmcqLzLo2nKYEYNBZ0Ejc/aquBWJKveIZjvmV/c3po0UFDTA5FmdIiWsadnRnojbIkQK18KvWthasJxfMZWxjDdB10LHtGZdrbfXhqFaRS8lWXQhAVpn/NtVNUCLKbdKLU4nk8ciU//qel0VliymPZWQv3VI6xtaWv2qBbD6V6WzKhq/MxDzyHzcQq53jQuV3Dg0Gk44+1W/VZm0gxFdOrhnwjx5HPtTCV4MW8YWVyH+rxH14eFAGbVowfvREL2U6gkYV3+b2aL8RxK0C2bxlIjg== 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 Signed-off-by: Pintu Agarwal --- 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;