mseal sysmap: add arch-support txt
Subsystems (2)
PATCH 1/1 mseal sysmap: add arch-support txt
From: Jeff Xu <[email protected]>
Add Documentation/features/core/mseal_sys_mappings/arch-support.txt
--- .../core/mseal_sys_mappings/arch-support.txt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/features/core/mseal_sys_mappings/arch-support.txt
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +30 -0
@@ -0,0 +1,30 @@ +# +# Feature name: mseal-system-mappings +# Kconfig: ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS +# description: arch supports mseal system mappings +# + ----------------------- + | arch |status| + ----------------------- + | alpha: | TODO | + | arc: | TODO | + | arm: | N/A | + | arm64: | ok | + | csky: | TODO | + | hexagon: | TODO | + | loongarch: | TODO | + | m68k: | TODO | + | microblaze: | TODO | + | mips: | TODO | + | nios2: | TODO | + | openrisc: | TODO | + | parisc: | TODO | + | powerpc: | TODO | + | riscv: | TODO | + | s390: | ok | + | sh: | TODO | + | sparc: | TODO | + | um: | TODO | + | x86: | ok | + | xtensa: | TODO | + -----------------------
Signature · 1 line
2.49.0.rc0.332.g42c0ae87b1-goog
Quoted 47 lines · On Thu, Mar 13, 2025 at 12:06:23AM +0000, [email protected] wrote:
From: Jeff Xu <[email protected]>
Add
Documentation/features/core/mseal_sys_mappings/arch-support.txtSigned-off-by Jeff Xu <[email protected]>--- .../core/mseal_sys_mappings/arch-support.txt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/features/core/mseal_sys_mappings/arch-support.txtDocumentation/features/core/mseal_sys_mappings/arch-support.txt new file +30
-1@@ -0,0 +1,30 @@ +# +# Feature name: mseal-system-mappings +# Kconfig: ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS +# description: arch supports mseal system mappings +# + ----------------------- + | arch |status| + ----------------------- + | alpha: | TODO | + | arc: | TODO | + | arm: | N/A | + | arm64: | ok | + | csky: | TODO | + | hexagon: | TODO | + | loongarch: | TODO | + | m68k: | TODO | + | microblaze: | TODO | + | mips: | TODO | + | nios2: | TODO | + | openrisc: | TODO | + | parisc: | TODO | + | powerpc: | TODO | + | riscv: | TODO | + | s390: | ok | + | sh: | TODO | + | sparc: | TODO | + | um: | TODO | + | x86: | ok | + | xtensa: | TODO | + ----------------------- --
Quoted 2 lines
2.49.0.rc0.332.g42c0ae87b1-goog
I mean fine, but why not in the existing mseal documentation file where you already document system mappings?
Plus I feel this need expansion a bit 'N/A' is because of being non-64 bit right?
Actually this will change soon btw, based on Matthew's idea I plan to drop the 32-bit vma flags limit.
Anyway yeah, let's move that over there please.
Quoted 46 lines · Lorenzo Stoakes
Quoted 44 lines · On Thu, Mar 13, 2025 at 12:06:23AM +0000, [email protected] wrote:
From: Jeff Xu <[email protected]>
Add
Documentation/features/core/mseal_sys_mappings/arch-support.txtSigned-off-by Jeff Xu <[email protected]>--- .../core/mseal_sys_mappings/arch-support.txt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/features/core/mseal_sys_mappings/arch-support.txtDocumentation/features/core/mseal_sys_mappings/arch-support.txt new file +28
-0@@ -0,0 +1,30 @@ +# +# Feature name: mseal-system-mappings +# Kconfig: ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS +# description: arch supports mseal system mappings +# + ----------------------- + | arch |status| + ----------------------- + | alpha: | TODO | + | arc: | TODO | + | arm: | N/A | + | arm64: | ok | + | csky: | TODO | + | hexagon: | TODO | + | loongarch: | TODO | + | m68k: | TODO | + | microblaze: | TODO | + | mips: | TODO | + | nios2: | TODO | + | openrisc: | TODO | + | parisc: | TODO | + | powerpc: | TODO | + | riscv: | TODO | + | s390: | ok | + | sh: | TODO | + | sparc: | TODO | + | um: | TODO | + | x86: | ok |
Quoted 9 lines
Quoted 5 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +2
-1+ | xtensa: | TODO | + ----------------------- --2.49.0.rc0.332.g42c0ae87b1-goog
I mean fine, but why not in the existing mseal documentation file where you already document system mappings?
you mean adding s390 in the mseal.rst ? I thought Heiko was going to add that ? [1], maybe not ?
From the example given by Heiko [1] , arch-support.txt is the official way of documenting arch specific support. But adding these info in mseal.rst won't hurt.
Quoted 3 lines
Plus I feel this need expansion a bit 'N/A' is because of being non-64 bit right?
Below is the definition of N/A in Documentation/features/arch-support.txt
| N/A| # feature doesn't apply to the architecture
It fits the arm case because mseal is not supported in 32 bit.
Quoted 3 lines
Actually this will change soon btw, based on Matthew's idea I plan to drop the 32-bit vma flags limit.
Okay, we can update this section to TODO when 32-bit vma flags are expanded. Based on past comments, I gather we want the document to reflect the current state of the kernel, not future features.
Quoted 1 line
Anyway yeah, let's move that over there please.
I'm looking at Heiko's direction first to see if mseal.rst will be updated as part of the s390 patch, technically that belongs to Heiko's patch series. I can also add that if Heiko doesn't care :-)
Thanks
-Jeff
Hi Jeff,
Quoted 7 lines · Jeff Xu
Quoted 5 lines · Lorenzo Stoakes
Quoted 4 lines · On Thu, Mar 13, 2025 at 12:06:23AM +0000, [email protected] wrote:
From: Jeff Xu <[email protected]>
AddDocumentation/features/core/mseal_sys_mappings/arch-support.txtSigned-off-by Jeff Xu <[email protected]>
Thanks for your patch!
Quoted 37 lines
Quoted 28 lines
Quoted 28 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +25
-0@@ -0,0 +1,30 @@ +# +# Feature name: mseal-system-mappings +# Kconfig: ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS +# description: arch supports mseal system mappings +# + ----------------------- + | arch |status| + ----------------------- + | alpha: | TODO | + | arc: | TODO | + | arm: | N/A | + | arm64: | ok | + | csky: | TODO | + | hexagon: | TODO | + | loongarch: | TODO | + | m68k: | TODO | + | microblaze: | TODO | + | mips: | TODO | + | nios2: | TODO | + | openrisc: | TODO | + | parisc: | TODO | + | powerpc: | TODO | + | riscv: | TODO | + | s390: | ok | + | sh: | TODO |Quoted 9 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 30
Quoted 5 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +5
-0+ | sparc: | TODO | + | um: | TODO | + | x86: | ok | + | xtensa: | TODO | + -----------------------Plus I feel this need expansion a bit 'N/A' is because of being non-64 bit right?
Quoted 4 lines
Below is the definition of N/A in
Documentation/features/arch-support.txt
| N/A| # feature doesn't apply to the architectureIt fits the arm case because mseal is not supported in 32 bit.
IIUIC, you can already s@TODO@N/A@ for all other 32-bit architectures, so we don't accidentally spend time on looking into adding the support?
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 51 lines · Geert Uytterhoeven
Hi Jeff,
Quoted 7 lines · Jeff Xu
Quoted 5 lines · Lorenzo Stoakes
Quoted 4 lines · On Thu, Mar 13, 2025 at 12:06:23AM +0000, [email protected] wrote:
From: Jeff Xu <[email protected]>
AddDocumentation/features/core/mseal_sys_mappings/arch-support.txtSigned-off-by Jeff Xu <[email protected]>Thanks for your patch!
Quoted 37 lines
Quoted 37 lines
Quoted 23 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +20
-0@@ -0,0 +1,30 @@ +# +# Feature name: mseal-system-mappings +# Kconfig: ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS +# description: arch supports mseal system mappings +# + ----------------------- + | arch |status| + ----------------------- + | alpha: | TODO | + | arc: | TODO | + | arm: | N/A | + | arm64: | ok | + | csky: | TODO | + | hexagon: | TODO | + | loongarch: | TODO | + | m68k: | TODO | + | microblaze: | TODO | + | mips: | TODO | + | nios2: | TODO | + | openrisc: | TODO |Documentation/features/core/mseal_sys_mappings/arch-support.txt line 30
Quoted 10 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +10
-0+ | parisc: | TODO | + | powerpc: | TODO | + | riscv: | TODO | + | s390: | ok | + | sh: | TODO | + | sparc: | TODO | + | um: | TODO | + | x86: | ok | + | xtensa: | TODO | + -----------------------Plus I feel this need expansion a bit 'N/A' is because of being non-64 bit right?
Quoted 8 lines
Quoted 4 lines
Below is the definition of N/A in
Documentation/features/arch-support.txt
| N/A| # feature doesn't apply to the architectureIt fits the arm case because mseal is not supported in 32 bit.
IIUIC, you can already s@TODO@N/A@ for all other 32-bit architectures, so we don't accidentally spend time on looking into adding the support?
Sure, my architecture knowledge is limited.
I just checked this, it seems to me that csky, m68k, nios2, sh, xtensa doesn't have 64 bits support, the rest have 64 bits. Is this correct ?
Thanks
-Jeff
Quoted 10 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 8 lines · Jeff Xu
Quoted 6 lines · Geert Uytterhoeven
Hi Jeff,
Quoted 2 lines · Jeff Xu
On Wed, Mar 12, 2025 at 10:21 PM Lorenzo Stoakes
<[email protected]> wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines · On Thu, Mar 13, 2025 at 12:06:23AM +0000, [email protected] wrote:
Quoted 4 lines
From: Jeff Xu <[email protected]>
AddDocumentation/features/core/mseal_sys_mappings/arch-support.txtSigned-off-by Jeff Xu <[email protected]>Thanks for your patch!
I used "find * |xargs grep -i CONFIG_64BIT" to look for CONFIG_64BIT under arch/, and together with internet search/wiki page, and below is the proposed update.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +1
-0@@ -0,0 +1,30 @@ +#
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 9
Quoted 8 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +8
-0+# Feature name: mseal-system-mappings +# Kconfig: ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS +# description: arch supports mseal system mappings +# + ----------------------- + | arch |status| + ----------------------- + | alpha: | TODO |
No CONFIG_64BIT found under arch/alpha, but search results show alpha supports 64 bits. Keep as TODO.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 13
Quoted 4 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +4
-0+ | arc: | TODO | + | arm: | N/A | + | arm64: | ok | + | csky: | TODO |
(N/A)
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 14
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +1
-0+ | hexagon: | TODO |
No CONFIG_64BIT found under arch/hexagon, but search results show hexagon supports 64 bits. Keep as TODO.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 16
Quoted 2 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +2
-0+ | loongarch: | TODO | + | m68k: | TODO |
(N/A)
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 17
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +1
-0+ | microblaze: | TODO |
No CONFIG_64BIT found under arch/microblaze, but search results show microblaze supports both 32 and 64 bits. Keep as TODO.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 19
Quoted 2 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +2
-0+ | mips: | TODO | + | nios2: | TODO |
(N/A)
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 20
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +1
-0+ | openrisc: | TODO |
No CONFIG_64BIT found under arch/openrisc, but search results show microblaze supports both 32 and 64 bits. Keep as TODO.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 25
Quoted 5 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +5
-0+ | parisc: | TODO | + | powerpc: | TODO | + | riscv: | TODO | + | s390: | ok | + | sh: | TODO |
No CONFIG_64BIT found under arch/openrisc, but wikipedia shows sh-5 is a 64 bit, so Keep as TODO.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 29
Quoted 4 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +4
-0+ | sparc: | TODO | + | um: | TODO | + | x86: | ok | + | xtensa: | TODO |
N/A
In summary: csky, m68k, nios2, xtensa, arm only have a 32 bit CPU and will use "N/A".
I will leave it open for a while, If no objection , I will send a new patch version.
Thanks.
-Jeff
Quoted 36 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 30
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +1
-0+ -----------------------Plus I feel this need expansion a bit 'N/A' is because of being non-64 bit right?
Quoted 8 lines
Quoted 4 lines
Below is the definition of N/A in
Documentation/features/arch-support.txt
| N/A| # feature doesn't apply to the architectureIt fits the arm case because mseal is not supported in 32 bit.
IIUIC, you can already s@TODO@N/A@ for all other 32-bit architectures, so we don't accidentally spend time on looking into adding the support?
Sure, my architecture knowledge is limited.
I just checked this, it seems to me that csky, m68k, nios2, sh, xtensa doesn't have 64 bits support, the rest have 64 bits. Is this correct ?
Thanks
-JeffQuoted 10 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Hi Jeff,
Quoted 9 lines · Jeff Xu
Quoted 8 lines · Jeff Xu
Quoted 7 lines · Geert Uytterhoeven
Quoted 6 lines · Jeff Xu
Quoted 4 lines · Lorenzo Stoakes
Quoted 3 lines · On Thu, Mar 13, 2025 at 12:06:23AM +0000, [email protected] wrote:
From: Jeff Xu <[email protected]>
AddDocumentation/features/core/mseal_sys_mappings/arch-support.txt
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Signed-off-by Jeff Xu <[email protected]>Thanks for your patch!
I used "find * |xargs grep -i
CONFIG_64BIT" to look forCONFIG_64BITunderarch/, and together with internet search/wiki page, and below is the proposed update.
That way you only find users of the symbol, not where it is defined.
You can use
git grep -W "config\s*64BIT" -- arch/
to find out which architectures are 32-bit, 64-bit, or support both.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +3
-0@@ -0,0 +1,30 @@ +# +# Feature name: mseal-system-mappings +# Kconfig: ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 9
Quoted 6 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +6
-0+# description: arch supports mseal system mappings +# + ----------------------- + | arch |status| + ----------------------- + | alpha: | TODO |No
CONFIG_64BITfound underarch/alpha, but search results show alpha supports 64 bits. Keep as TODO.
Alpha is 64-bit only. So the code under arch/alpha/ does not need to check for CONFIG_64BIT, hence you didn't find it;-)
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 13
Quoted 4 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +4
-0+ | arc: | TODO | + | arm: | N/A | + | arm64: | ok | + | csky: | TODO |(N/A)
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 14
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +1
-0+ | hexagon: | TODO |No
CONFIG_64BITfound underarch/hexagon, but search results show hexagon supports 64 bits. Keep as TODO.
32-bit only on Linux.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi Geert,
Quoted 21 lines · Geert Uytterhoeven
Hi Jeff,
Quoted 9 lines · Jeff Xu
Quoted 8 lines · Jeff Xu
Quoted 7 lines · Geert Uytterhoeven
Quoted 6 lines · Jeff Xu
Quoted 4 lines · Lorenzo Stoakes
Quoted 3 lines · On Thu, Mar 13, 2025 at 12:06:23AM +0000, [email protected] wrote:
From: Jeff Xu <[email protected]>
AddDocumentation/features/core/mseal_sys_mappings/arch-support.txtQuoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Signed-off-by Jeff Xu <[email protected]>Thanks for your patch!
I used "find * |xargs grep -i
CONFIG_64BIT" to look forCONFIG_64BITunderarch/, and together with internet search/wiki page, and below is the proposed update.
Quoted 8 lines
That way you only find users of the symbol, not where it is defined.
You can use
git grep -W "config\s*64BIT" -- arch/to find out which architectures are 32-bit, 64-bit, or support both.
Good to know, thanks!
Quoted 22 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +3
-0@@ -0,0 +1,30 @@ +# +# Feature name: mseal-system-mappings +# Kconfig: ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGSQuoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 9
Quoted 6 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +6
-0+# description: arch supports mseal system mappings +# + ----------------------- + | arch |status| + ----------------------- + | alpha: | TODO |No
CONFIG_64BITfound underarch/alpha, but search results show alpha supports 64 bits. Keep as TODO.Alpha is 64-bit only. So the code under
arch/alpha/does not need to check forCONFIG_64BIT, hence you didn't find it;-)Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +4
-0+ | arc: | TODO | + | arm: | N/A | + | arm64: | ok | + | csky: | TODO |
Quoted 8 lines
Quoted 5 lines
(N/A)
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 14
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +1
-0+ | hexagon: | TODO |No
CONFIG_64BITfound underarch/hexagon, but search results show hexagon supports 64 bits. Keep as TODO.32-bit only on Linux.
Ok. Thank you for correcting this.
Thanks
-Jeff
Quoted 10 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Hi Geert
Quoted 34 lines · Jeff Xu
Hi Geert,
Quoted 29 lines · Geert Uytterhoeven
Hi Jeff,
Quoted 9 lines · Jeff Xu
Quoted 8 lines · Jeff Xu
Quoted 7 lines · Geert Uytterhoeven
Quoted 6 lines · Jeff Xu
Quoted 4 lines · Lorenzo Stoakes
Quoted 3 lines · On Thu, Mar 13, 2025 at 12:06:23AM +0000, [email protected] wrote:
From: Jeff Xu <[email protected]>
AddDocumentation/features/core/mseal_sys_mappings/arch-support.txtQuoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Signed-off-by Jeff Xu <[email protected]>Thanks for your patch!
I used "find * |xargs grep -i
CONFIG_64BIT" to look forCONFIG_64BITunderarch/, and together with internet search/wiki page, and below is the proposed update.That way you only find users of the symbol, not where it is defined.
You can use
git grep -W "config\s*64BIT" -- arch/to find out which architectures are 32-bit, 64-bit, or support both.
Microblaze, openrisc, sh, hexagon all don't have CONFIG 64BIT defined in KCONFIG, and are not using CONFIG_64BIT in their arch code. Is there something else that makes you point out the hexagon as 32 bit only (and not other 3) ?
The microblaze/ openrisc/sh are currently listed as TODO in this patch , and that is because the search results show they have 64 bits CPU. But I like to double check.
I included some people who recently merged into those arches in case anyone is familiar with 32bit/64 bits usage in those architectures.
Thanks
-Jeff
Quoted 47 lines
Good to know, thanks!
Quoted 22 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +3
-0@@ -0,0 +1,30 @@ +# +# Feature name: mseal-system-mappings +# Kconfig: ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGSQuoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 9
Quoted 6 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +6
-0+# description: arch supports mseal system mappings +# + ----------------------- + | arch |status| + ----------------------- + | alpha: | TODO |No
CONFIG_64BITfound underarch/alpha, but search results show alpha supports 64 bits. Keep as TODO.Alpha is 64-bit only. So the code under
arch/alpha/does not need to check forCONFIG_64BIT, hence you didn't find it;-)Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +4
-0+ | arc: | TODO | + | arm: | N/A | + | arm64: | ok | + | csky: | TODO |Quoted 8 lines
Quoted 5 lines
(N/A)
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt line 14
Quoted 1 line
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +1
-0+ | hexagon: | TODO |No
CONFIG_64BITfound underarch/hexagon, but search results show hexagon supports 64 bits. Keep as TODO.32-bit only on Linux.
Ok. Thank you for correcting this.
Thanks
-JeffQuoted 10 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Hi Jeff,
Quoted 25 lines · Jeff Xu
Quoted 24 lines · Jeff Xu
Quoted 22 lines · Geert Uytterhoeven
Quoted 9 lines · Jeff Xu
Quoted 8 lines · Jeff Xu
Quoted 7 lines · Geert Uytterhoeven
Quoted 6 lines · Jeff Xu
Quoted 4 lines · Lorenzo Stoakes
Quoted 3 lines · On Thu, Mar 13, 2025 at 12:06:23AM +0000, [email protected] wrote:
From: Jeff Xu <[email protected]>
AddDocumentation/features/core/mseal_sys_mappings/arch-support.txtQuoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Signed-off-by Jeff Xu <[email protected]>Thanks for your patch!
I used "find * |xargs grep -i
CONFIG_64BIT" to look forCONFIG_64BITunderarch/, and together with internet search/wiki page, and below is the proposed update.That way you only find users of the symbol, not where it is defined.
You can use
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
git grep -W "config\s*64BIT" -- arch/to find out which architectures are 32-bit, 64-bit, or support both.
Microblaze, openrisc, sh, hexagon all don't have CONFIG 64BIT defined in KCONFIG, and are not using
CONFIG_64BITin their arch code. Is there something else that makes you point out the hexagon as 32 bit only (and not other 3) ?
AFAIK Microblaze, openrisc, and hexagon are all 32-bit. Linux used to support sh64, but that was dropped, as sh64 never went beyond prototype hardware.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi Geert
Quoted 33 lines · Geert Uytterhoeven
Hi Jeff,
Quoted 29 lines · Jeff Xu
Quoted 28 lines · Jeff Xu
Quoted 26 lines · Geert Uytterhoeven
Quoted 9 lines · Jeff Xu
Quoted 8 lines · Jeff Xu
Quoted 7 lines · Geert Uytterhoeven
Quoted 6 lines · Jeff Xu
Quoted 4 lines · Lorenzo Stoakes
Quoted 3 lines · On Thu, Mar 13, 2025 at 12:06:23AM +0000, [email protected] wrote:
From: Jeff Xu <[email protected]>
AddDocumentation/features/core/mseal_sys_mappings/arch-support.txtQuoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Signed-off-by Jeff Xu <[email protected]>Thanks for your patch!
I used "find * |xargs grep -i
CONFIG_64BIT" to look forCONFIG_64BITunderarch/, and together with internet search/wiki page, and below is the proposed update.That way you only find users of the symbol, not where it is defined.
You can use
git grep -W "config\s*64BIT" -- arch/to find out which architectures are 32-bit, 64-bit, or support both.
Quoted 9 lines
Quoted 4 lines
Microblaze, openrisc, sh, hexagon all don't have CONFIG 64BIT defined in KCONFIG, and are not using
CONFIG_64BITin their arch code. Is there something else that makes you point out the hexagon as 32 bit only (and not other 3) ?AFAIK Microblaze, openrisc, and hexagon are all 32-bit. Linux used to support sh64, but that was dropped, as sh64 never went beyond prototype hardware.
Great ! Thanks for the information.
I will update accordingly.
-Jeff
Quoted 10 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 11 lines · Jeff Xu
Quoted 11 lines
Quoted 11 lines
Documentation/features/core/mseal_sys_mappings/arch-support.txt new file +5
-0@@ -0,0 +1,30 @@ +# +# Feature name: mseal-system-mappings +# Kconfig: ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS +# description: arch supports mseal system mappings +#
...
Quoted 10 lines
Quoted 3 lines
I mean fine, but why not in the existing mseal documentation file where you already document system mappings?
you mean adding s390 in the
mseal.rst? I thought Heiko was going to add that ? [1], maybe not ?From the example given by Heiko [1] , arch-support.txt is the official way of documenting arch specific support. But adding these info in
mseal.rstwon't hurt.
Quoted 5 lines
Quoted 1 line
Anyway yeah, let's move that over there please.
I'm looking at Heiko's direction first to see if
mseal.rstwill be updated as part of the s390 patch, technically that belongs to Heiko's patch series. I can also add that if Heiko doesn't care :-)
Just sent a patch which does that. Sorry for the delay - I was offline for a couple of days.