ARMSSE: Implement MHUs and dual-core capability
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | hw/misc/armsse-mhu.c: Model the SSE-200 Message Handling UnitMAINTAINERS default-configs/ hw/ +3 more | +250 | 1 reply | |
| 2/8 | hw/arm/armsse: Wire up the MHUshw/ include/ | +32 | 1 reply | |
| 3/8 | target/arm/cpu: Allow init-svtor property to be set after realizetarget/ | +24 | 2 replies | |
| 4/8 | target/arm/arm-powerctl: Add new arm_set_cpu_on_and_reset()target/ target/ | +72 | 1 reply | |
| 5/8 | hw/misc/iotkit-sysctl: Correct typo in INITSVTOR0 register namehw/ include/ | +9 | 1 reply | |
| 6/8 | hw/arm/iotkit-sysctl: Add SSE-200 registershw/ hw/ include/ | +262 | 1 reply | |
| 7/8 | hw/arm/iotkit-sysctl: Implement CPUWAIT and INITSVTOR*hw/ | +37 | 1 reply | |
| 8/8 | hw/arm/armsse: Unify init-svtor and cpuwait handlinghw/ hw/ include/ | +42 | 1 reply |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Richard Henderson |
|---|---|
| 1/8 | R-b |
| 2/8 | R-b |
| 3/8 | R-b |
| 4/8 | R-b |
| 5/8 | R-b |
| 6/8 | R-b |
| 7/8 | R-b |
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-arm] [PATCH 0/8] ARMSSE: Implement MHUs and dual-core capability
This patchset adds support for running dual-core guest images on the boards using the SSE-200 (mps2-tz, musca-a, musca-b1):
* it implements the Message Handling Units (MHUs), which dual-core guests typically use to signal interrupts to each other
* it implements the handling in the sysctl register block of the CPUWAIT register, which is how a guest powers up the second core
* it adds support for the INITSVTOR[01] registers in the sysctl block, which guests typically use to make the second core start with a different exception vector table from the first one
The support for the MHUs has not yet landed in the Zephyr RTOS, but this has been tested with the code and test application in this pending pull request:
https://github.com/zephyrproject-rtos/zephyr/pull/12722
$ qemu-system-arm -M musca-a -kernel zephyr.elf \ -device loader,file=zephyr-ns.elf \ -serial null -serial stdio -display none -d unimp,guest_errors pl011_read: Bad offset 0x44 pl011_read: Bad offset 0x44 ***** Booting Zephyr OS zephyr-v1.13.0-3378-g1a0632c8b0 ***** IPM MHU sample on musca_a CPU 0, get MHU0 success! pl011_read: Bad offset 0x44 pl011_read: Bad offset 0x44 ***** Booting Zephyr OS zephyr-v1.13.0-3378-g1a0632c8b0 ***** IPM MHU sample on musca_a_nonsecure CPU 1, get MHU0 success! MHU ISR on CPU 0 MHU ISR on CPU 1 MHU Test Done.
(The pl011 messages are a Zephyr bug which I have reported to them.)
Based-on: [email protected] ("Add model of the Arm Musca devboards")
thanks
-- PMM
Peter Maydell (8):
hw/misc/armsse-mhu.c: Model the SSE-200 Message Handling Unit hw/arm/armsse: Wire up the MHUs
target/arm/cpu: Allow init-svtor property to be set after realize target/arm/arm-powerctl: Add new arm_set_cpu_on_and_reset() hw/misc/iotkit-sysctl: Correct typo in INITSVTOR0 register name hw/arm/iotkit-sysctl: Add SSE-200 registers hw/arm/iotkit-sysctl: Implement CPUWAIT and INITSVTOR* hw/arm/armsse: Unify init-svtor and cpuwait handling
hw/misc/Makefile.objs | 1 + include/hw/arm/armsse.h | 3 +- include/hw/misc/armsse-mhu.h | 44 +++++ include/hw/misc/iotkit-sysctl.h | 25 ++- target/arm/arm-powerctl.h | 16 ++ hw/arm/armsse.c | 91 +++++++--- hw/misc/armsse-mhu.c | 198 +++++++++++++++++++++ hw/misc/iotkit-sysctl.c | 294 ++++++++++++++++++++++++++++++-- target/arm/arm-powerctl.c | 56 ++++++ target/arm/cpu.c | 29 +++- MAINTAINERS | 2 + default-configs/arm-softmmu.mak | 1 + hw/misc/trace-events | 4 + 13 files changed, 714 insertions(+), 50 deletions(-) create mode 100644 include/hw/misc/armsse-mhu.h create mode 100644 hw/misc/armsse-mhu.c
Signature · 1 line
2.20.1