Skip to contentSkip to conversation

Documentation: arm64 supports cma

PATCH In review Tian Tao 3 participants 4 messages Sep 18, 2020 Documentation

lore
Share & tools
lore

Tian Tao

author
#0 lore raw

PATCH 1/1 Documentation: arm64 supports cma

arm64 also supports cma, updated documentation.

---
 Documentation/admin-guide/kernel-parameters.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/admin-guide/kernel-parameters.txt +1 -1
index 7ebe3be..38a1602 100644
@@ -591,7 +591,7 @@
 			some critical bits.
 
 	cma=nn[MG]@[start[MG][-end[MG]]]
-			[ARM,X86,KNL]
+			[ARM,ARM64,X86,KNL]
 			Sets the size of kernel global memory area for
 			contiguous memory allocations and optionally the
 			placement constraint by the physical address range of
Signature · 1 line
2.7.4
#1 lore raw
Quoted 27 lines

-----Original Message-----
From: Tian Tao [mailto:[email protected]]
Sent: Friday, September 18, 2020 3:16 PM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: Linuxarm <[email protected]>
Subject: [PATCH] Documentation: arm64 supports cma

arm64 also supports cma, updated documentation.

---
 Documentation/admin-guide/kernel-parameters.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/admin-guide/kernel-parameters.txt +0 -0
index 7ebe3be..38a1602 100644

Documentation/admin-guide/kernel-parameters.txt line 594

Quoted 5 lines
Documentation/admin-guide/kernel-parameters.txt +1 -1
@@ -591,7 +591,7 @@
 			some critical bits.
 
 	cma=nn[MG]@[start[MG][-end[MG]]]
-			[ARM,X86,KNL]
+			[ARM,ARM64,X86,KNL]

Yes. It supports ARM64. On the other hand, it also supports other architectures like MIPS
S390
MICROBLAZE
...
So I am not sure if it is a completely correct fix.

CMA only depends on MMU. It probably doesn't depend on arch too much.

Is it better to just move to [KNL]?

Quoted 5 lines
Documentation/admin-guide/kernel-parameters.txt +0 -1
 			Sets the size of kernel global memory area for
 			contiguous memory allocations and optionally the
 			placement constraint by the physical address range of
--

2.7.4

Thanks
Barry

reviewer
#2 lore raw
Quoted 40 lines · Song Bao Hua (Barry Song)
Quoted 27 lines

-----Original Message-----
From: Tian Tao [mailto:[email protected]]
Sent: Friday, September 18, 2020 3:16 PM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: Linuxarm <[email protected]>
Subject: [PATCH] Documentation: arm64 supports cma

arm64 also supports cma, updated documentation.

---
 Documentation/admin-guide/kernel-parameters.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/admin-guide/kernel-parameters.txt +0 -0
index 7ebe3be..38a1602 100644

Documentation/admin-guide/kernel-parameters.txt line 594

Quoted 5 lines
Documentation/admin-guide/kernel-parameters.txt +1 -1
@@ -591,7 +591,7 @@
 			some critical bits.
 
 	cma=nn[MG]@[start[MG][-end[MG]]]
-			[ARM,X86,KNL]
+			[ARM,ARM64,X86,KNL]

Yes. It supports ARM64. On the other hand, it also supports other architectures like MIPS
S390
MICROBLAZE
...
So I am not sure if it is a completely correct fix.

Quoted 3 lines

CMA only depends on MMU. It probably doesn't depend on arch too much.

Is it better to just move to [KNL]?

How about [KNL,CMA]? CMA is already listed as a build option/restriction in Documentation/admin-guide/kernel-parameters.rst.

Quoted 5 lines

Documentation/admin-guide/kernel-parameters.txt

Quoted 5 lines
Documentation/admin-guide/kernel-parameters.txt +0 -1
 			Sets the size of kernel global memory area for
 			contiguous memory allocations and optionally the
 			placement constraint by the physical address range of
--

thanks.

Signature · 1 line
~Randy
#3 lore raw
Quoted 57 lines

-----Original Message-----
From: Randy Dunlap [mailto:[email protected]]
Sent: Friday, September 18, 2020 4:00 PM
To: Song Bao Hua (Barry Song) <[email protected]>; tiantao (H) <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: Linuxarm <[email protected]>
Subject: Re: [PATCH] Documentation: arm64 supports cma

Quoted 29 lines · Song Bao Hua (Barry Song)
Quoted 29 lines

-----Original Message-----
From: Tian Tao [mailto:[email protected]]
Sent: Friday, September 18, 2020 3:16 PM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: Linuxarm <[email protected]>
Subject: [PATCH] Documentation: arm64 supports cma

arm64 also supports cma, updated documentation.

---
 Documentation/admin-guide/kernel-parameters.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/admin-guide/kernel-parameters.txt +0 -0
index 7ebe3be..38a1602 100644
@@ -591,7 +591,7 @@
 			some critical bits.
 
Quoted 5 lines

Documentation/admin-guide/kernel-parameters.txt line 594

Quoted 3 lines
Documentation/admin-guide/kernel-parameters.txt +1 -1
 	cma=nn[MG]@[start[MG][-end[MG]]]
-			[ARM,X86,KNL]
+			[ARM,ARM64,X86,KNL]

Yes. It supports ARM64. On the other hand, it also supports other

architectures like

Quoted 6 lines

MIPS
S390
MICROBLAZE
...
So I am not sure if it is a completely correct fix.

Quoted 6 lines
Quoted 3 lines

CMA only depends on MMU. It probably doesn't depend on arch too much.

Is it better to just move to [KNL]?

How about [KNL,CMA]? CMA is already listed as a build option/restriction in Documentation/admin-guide/kernel-parameters.rst.

Sounds good to me.

Quoted 7 lines
Quoted 6 lines

Documentation/admin-guide/kernel-parameters.txt

Quoted 6 lines
Documentation/admin-guide/kernel-parameters.txt +0 -1
 			Sets the size of kernel global memory area for
 			contiguous memory allocations and optionally the
 			placement constraint by the physical address range of
--

Thanks.
Barry