linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dma-contiguous: define proper name for global cma region
@ 2023-07-28 18:08 Pintu Kumar
  2023-07-29  2:35 ` [PATCH v2] " Pintu Kumar
  0 siblings, 1 reply; 10+ messages in thread
From: Pintu Kumar @ 2023-07-28 18:08 UTC (permalink / raw)
  To: linux-kernel, akpm, linux-mm, hch, m.szyprowski, robin.murphy,
	iommu
  Cc: quic_pintu, pintu.ping

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 <quic_pintu@quicinc.com>
Signed-off-by: Pintu Agarwal <pintu.ping@gmail.com>
---
 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;
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-08-10  0:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-28 18:08 [PATCH] dma-contiguous: define proper name for global cma region Pintu Kumar
2023-07-29  2:35 ` [PATCH v2] " Pintu Kumar
2023-07-31 11:21   ` Christoph Hellwig
2023-08-01 17:12     ` Pintu Agarwal
2023-08-01 17:18       ` Christoph Hellwig
2023-08-02  5:39         ` John Stultz
2023-08-02  9:47           ` Christoph Hellwig
2023-08-03 17:34             ` Pintu Agarwal
2023-08-09 15:04               ` Pintu Agarwal
2023-08-10  0:57                 ` John Stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).