Skip to contentSkip to conversation

xen/arm: arm64: Widen register access to mpidr to 64-bits

PATCH Superseded Wei Chen 2 participants 2 messages May 25, 2016

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Wei Chen

author
#0 lore raw

cover xen/arm: arm64: Widen register access to mpidr to 64-bits

In ARM64 the MPIDR register is mapped to MPIDR_EL1, and the register bits are expanded to 64-bits. But Xen 64-bit ARM code treats this it as 32-bit register.
We have to provide correct accessing to this register to avoid unexpected issues that is caused by incorrect MPIDR value.

Wei Chen (4):
xen/arm: Change the variable type of cpu_logical_map to register_t xen/arm: Make AFFINITY_MASK generate correct mask for level3 xen:arm: arm64: Add correct MPIDR_HWID_MASK value for ARM64 xen/arm: arm64: Remove MPIDR multiprocessing extensions check

 xen/arch/arm/arm64/head.S       |  3 +--
 xen/arch/arm/gic-v3.c           |  2 +-
 xen/arch/arm/smpboot.c          | 13 +++++++------
 xen/include/asm-arm/processor.h |  9 +++++++--
 4 files changed, 16 insertions(+), 11 deletions(-)
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw

Hi Wei,

Please try to send all the patches with the cover letter as references. git send-email should do it if you send all the patches at once.

This is really helpful to with mail client supporting thread.

Regards,

Quoted 18 lines · Wei Chen

In ARM64 the MPIDR register is mapped to MPIDR_EL1, and the register bits are expanded to 64-bits. But Xen 64-bit ARM code treats this it as 32-bit register.
We have to provide correct accessing to this register to avoid unexpected issues that is caused by incorrect MPIDR value.

Wei Chen (4):
xen/arm: Change the variable type of cpu_logical_map to register_t xen/arm: Make AFFINITY_MASK generate correct mask for level3 xen:arm: arm64: Add correct MPIDR_HWID_MASK value for ARM64 xen/arm: arm64: Remove MPIDR multiprocessing extensions check

  xen/arch/arm/arm64/head.S       |  3 +--
  xen/arch/arm/gic-v3.c           |  2 +-
  xen/arch/arm/smpboot.c          | 13 +++++++------
  xen/include/asm-arm/processor.h |  9 +++++++--
  4 files changed, 16 insertions(+), 11 deletions(-)
Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel