xen/arm: arm64: Remove MPIDR multiprocessing extensions check
PATCH 4/4 xen/arm: arm64: Remove MPIDR multiprocessing extensions check
In ARM64, the MPIDR multiprocessing extensions bit is reserved to 1. So, the value check for this bit is no longer necessary on ARM64.
--- xen/arch/arm/arm64/head.S | 1 - 1 file changed, 1 deletion(-)
xen/arch/arm/arm64/head.S +0 -1
@@ -267,7 +267,6 @@ common_start: * find that multiprocessor extensions are * present and the system is SMP */ mrs x0, mpidr_el1 - tbz x0, _MPIDR_SMP, 1f /* Multiprocessor extension not supported? */ tbnz x0, _MPIDR_UP, 1f /* Uniprocessor system? */ ldr x13, =(~MPIDR_HWID_MASK)
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Hi Wei,
Quoted 2 lines · Wei Chen
In ARM64, the MPIDR multiprocessing extensions bit is reserved to 1. So, the value check for this bit is no longer necessary on ARM64.
From ARM DDI0487A.G, I found the U bit for MPIDR_EL1:
"
Indicates a Uniprocessor system, as distinct from PE 0 in a multiprocessor system. The possible values of this bit are:
0 Processor is part of a multiprocessor system.
1 Processor is part of a uniprocessor system.
"
It's not reserved to 1. Which doc are you refering to?
Regards,
Peng.
Quoted 26 lines
Signed-off-by Wei Chen <[email protected]>---
xen/arch/arm/arm64/head.S| 1 -1 file changed, 1 deletion(-)xen/arch/arm/arm64/head.S +0
-1@@ -267,7 +267,6 @@ common_start: * find that multiprocessor extensions are * present and the system is SMP */ mrs x0, mpidr_el1 - tbz x0, _MPIDR_SMP, 1f /* Multiprocessor extension not supported? */ tbnz x0, _MPIDR_UP, 1f /* Uniprocessor system? */ ldr x13, =(~MPIDR_HWID_MASK)Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Hello Peng,
Quoted 12 lines · Peng Fan
Quoted 2 lines · Wei Chen
In ARM64, the MPIDR multiprocessing extensions bit is reserved to 1. So, the value check for this bit is no longer necessary on ARM64.
From ARM DDI0487A.G, I found the U bit for
MPIDR_EL1:
"
Indicates a Uniprocessor system, as distinct from PE 0 in a multiprocessor system. The possible values of this bit are:
0 Processor is part of a multiprocessor system.
1 Processor is part of a uniprocessor system.
"
Quoted 1 line
It's not reserved to 1. Which doc are you refering to?
Please read carefully the patch. The check on MPDIR_EL1.U is kept, only the check to the RES1 bit ('M' for Aarch32) is removed.
Regards,
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Hi Wei,
Quoted 1 line · Wei Chen
In ARM64, the MPIDR multiprocessing extensions bit is reserved to 1.
Well, technically the bit is unamed for ARM64. So I would make clear that the name is from AArch32. Something along:
"The bit 31 (former bit Multiprocessing extensions bit in AArch32) is always RES1 for AArch64."
Quoted 13 lines
So, the value check for this bit is no longer necessary on ARM64.
Signed-off-by Wei Chen <[email protected]>--- xen/arch/arm/arm64/head.S | 1 - 1 file changed, 1 deletion(-)xen/arch/arm/arm64/head.S +0
-0
xen/arch/arm/arm64/head.S common_start: · line 272
Quoted 7 lines
xen/arch/arm/arm64/head.S +0
-1@@ -267,7 +267,6 @@ common_start: * find that multiprocessor extensions are * present and the system is SMP */ mrs x0, mpidr_el1 - tbz x0, _MPIDR_SMP, 1f /* Multiprocessor extension not supported? */ tbnz x0, _MPIDR_UP, 1f /* Uniprocessor system? */ ldr x13, =(~MPIDR_HWID_MASK)
Regards,
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel