Implement ACPI on aarch64
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v10 Latest37 patches 5 repliesIn review
- v937 patches 11 repliesSuperseded
- v837 patches 17 repliesSuperseded
Earlier versions · 7
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 37 patches | 3 replies | Superseded | |
| v6 | 37 patches | 20 replies | Superseded | |
| v5 | 36 patches | 12 replies | Superseded | |
| v4 | 35 patches | 44 replies | Superseded | |
| v3 | 30 patches | 59 replies | Superseded | |
| v2 | 28 patches | 10 replies | Superseded | |
| v1 | 17 patches | 25 replies | Superseded |
Patches in v10 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/37 | acpi: x86: Move SPCR and DBG2 into common codearch/ arch/ include/ +1 more | +195 | 0 replies | |
| 2/37 | acpi: x86: Write FADT in common codearch/ arch/ arch/ +6 more | +61 | 4 replies | |
| 3/37 | acpi: x86: Move MADT to common codearch/ arch/ arch/ +5 more | +86 | 0 replies | |
| 4/37 | acpi: Fix typoinclude/ | +8 | 0 replies | |
| 5/37 | serial: serial_pl01x: Implement .getinfo() for PL01boot/ drivers/ include/ | +31 | 0 replies | |
| 6/37 | acpi: Add define for GTDTinclude/ | +2 | 0 replies | |
| 7/37 | arm: acpi: Add generic ACPI methodsarch/ arch/ arch/ +1 more | +263 | 0 replies | |
| 8/37 | acpi: Add fill_madt to acpi_opsarch/ drivers/ include/ +2 more | +99 | 0 replies | |
| 9/37 | acpi: acpi_table: Bump revisionsarch/ include/ lib/ | +6 | 0 replies | |
| 10/37 | acpi: Add ACPITAB for PPTT and GTDTinclude/ lib/ | +6 | 0 replies | |
| 11/37 | acpi: acpi_table: Add IORT supportinclude/ lib/ | +426 | 0 replies | |
| 12/37 | acpi: Move function prototypearch/ include/ | +13 | 0 replies | |
| 13/37 | acpi_table: Support platforms with unusable RSDTlib/ | +57 | 0 replies | |
| 14/37 | acpi: Allocate and write ACPI tableslib/ test/ | +66 | 0 replies | |
| 15/37 | acpi: Add processor deviceinclude/ lib/ | +23 | 0 replies | |
| 16/37 | drivers: usb: Add generic XHCIdrivers/ drivers/ drivers/ | +84 | 0 replies | |
| 17/37 | drivers: ata: Rename ahci_mvebuMAINTAINERS configs/ configs/ +19 more | +36 | 0 replies | |
| 18/37 | drivers/cpu: Add generic armv8 cpu driverdrivers/ drivers/ drivers/ +1 more | +102 | 0 replies | |
| 19/37 | arm: gic-v3-its: Rename objectsarch/ | +5 | 0 replies | |
| 20/37 | arm: gic-v3-its: Implement of_xlatearch/ | +24 | 0 replies | |
| 21/37 | arm: lib: Add GICV2 driverarch/ arch/ arch/ | +97 | 0 replies | |
| 22/37 | drivers: misc: irq-uclass: Update irq_get_by_indexarch/ drivers/ include/ +1 more | +97 | 0 replies | |
| 23/37 | drivers/arm: Implement acpi_fill_madtarch/ drivers/ drivers/ +1 more | +178 | 0 replies | |
| 24/37 | common: Enable BLOBLIST_TABLES on armcommon/ lib/ | +10 | 0 replies | |
| 25/37 | board: emulation: Add QEMU sbsa supportarch/ arch/ arch/ +16 more | +1567 | 0 replies | |
| 26/37 | arm: mach-bcm283x: Map the ARM local MMIO as wellarch/ | +1 | 0 replies | |
| 27/37 | arm: mach-bcm283x: Bring in some header files from tianocorearch/ arch/ arch/ +5 more | +427 | 0 replies | |
| 28/37 | arm: bcm283x: Generate ACPI tablesarch/ arch/ | +132 | 0 replies | |
| 29/37 | board: raspberrypi: Add ASL files from tianocoreboard/ board/ board/ +9 more | +1821 | 0 replies | |
| 30/37 | arm: cpu: Add ACPI parking protocol supportarch/ arch/ arch/ +5 more | +326 | 0 replies | |
| 31/37 | armv8: cpu: Enable ACPI parking protocolarch/ | +12 | 0 replies | |
| 32/37 | arm: Implement read_mpidr on armv7arch/ | +9 | 0 replies | |
| 33/37 | arm: mach-bcm283x: Add ARMV8_MULTIENTRY supportarch/ arch/ drivers/ +1 more | +220 | 0 replies | |
| 34/37 | arm: mach-bcm283x: Enable ARMV8_MULTIENTRYarch/ | +11 | 0 replies | |
| 35/37 | bloblist: Fix use of uninitialized variablecommon/ | +1 | 0 replies | |
| 36/37 | configs: Add RPI4 ACPI defconfigconfigs/ | +10 | 0 replies | |
| 37/37 | CI: Enable qemu_sbsa.azure-pipelines.yml .gitlab-ci.yml | +19 | 0 replies |
Reviews trailers per patch
36 of 37 patches have a Reviewed-by or Acked-by.
| Patch | Simon Glass | Moritz Fischer | Matthias Brugger | Tom Rini | Marek Vasut | Stefan Roese |
|---|---|---|---|---|---|---|
| 1/37 | R-b | |||||
| 2/37 | R-b | |||||
| 3/37 | R-b | |||||
| 4/37 | R-b | |||||
| 5/37 | R-b | |||||
| 6/37 | R-b | |||||
| 7/37 | R-b | |||||
| 8/37 | R-b | |||||
| 9/37 | R-b | |||||
| 10/37 | R-b | |||||
| 11/37 | R-b | |||||
| 12/37 | R-b | |||||
| 13/37 | R-b | |||||
| 14/37 | R-b | |||||
| 15/37 | R-b | |||||
| 16/37 | R-b | |||||
| 17/37 | R-b | |||||
| 18/37 | R-b | |||||
| 19/37 | R-b | |||||
| 20/37 | R-b | |||||
| 21/37 | R-b | |||||
| 22/37 | R-b | |||||
| 23/37 | R-b | |||||
| 24/37 | R-b | |||||
| 25/37 | ||||||
| 26/37 | R-b | A-b | ||||
| 27/37 | R-b | A-b | ||||
| 28/37 | R-b | |||||
| 29/37 | R-b | |||||
| 30/37 | R-b | |||||
| 31/37 | R-b | |||||
| 32/37 | R-b | |||||
| 33/37 | R-b | |||||
| 34/37 | R-b | |||||
| 35/37 | R-b | |||||
| 36/37 | R-b | R-b | ||||
| 37/37 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.
Cover letter [PATCH v10 00/37] Implement ACPI on aarch64
Based on the existing work done by Simon Glass this series adds support for booting aarch64 devices using ACPI only.
As first target QEMU SBSA support is added, which relies on ACPI only to boot an OS. As secondary target the Raspberry Pi4 was used, which is broadly available and allows easy testing of the proposed solution.
The series is split into ACPI cleanups and code movements, adding Arm specific ACPI tables and finally SoC and mainboard related changes to boot a Linux on the QEMU SBSA and RPi4. Currently only the mandatory ACPI tables are supported, allowing to boot into Linux without errors.
The QEMU SBSA support is feature complete and provides the same functionality as the EDK2 implementation.
The changes were tested on real hardware as well on QEMU v9.0:
qemu-system-aarch64 -machine sbsa-ref -nographic -cpu cortex-a57 \
-pflash secure-world.rom \
-pflash unsecure-world.romqemu-system-aarch64 -machine raspi4b -kernel u-boot.bin -cpu cortex-a72 \
-smp 4 -m 2G -drive file=raspbian.img,format=raw,index=0 \
-dtb bcm2711-rpi-4-b.dtb -nographic
Tested against FWTS V24.03.00.
Known issues:
- The QEMU rpi4 support is currently limited as it doesn't emulate PCI, USB or ethernet devices!
- The SMP bringup doesn't work on RPi4, but works in QEMU (Possibly cache related).
- PCI on RPI4 isn't working on real hardware since the pcie_brcmstb Linux kernel module doesn't support ACPI yet.
Maximilian Brune (3):
acpi: x86: Move SPCR and DBG2 into common code
acpi: x86: Write FADT in common code
serial: serial_pl01x: Implement .getinfo() for PL01
Patrick Rudolph (32):
acpi: x86: Move MADT to common code
acpi: Fix typo
acpi: Add define for GTDT
arm: acpi: Add generic ACPI methods
acpi: Add fill_madt to acpi_ops
acpi: acpi_table: Bump revisions
acpi: Add ACPITAB for PPTT and GTDT
acpi: acpi_table: Add IORT support
acpi: Move function prototype
acpi_table: Support platforms with unusable RSDT
acpi: Allocate and write ACPI tables
acpi: Add processor device
drivers: usb: Add generic XHCI
drivers: ata: Rename ahci_mvebu drivers/cpu: Add generic armv8 cpu driver
arm: gic-v3-its: Rename objects
arm: gic-v3-its: Implement of_xlate
arm: lib: Add GICV2 driver
drivers: misc: irq-uclass: Update irq_get_by_index drivers/arm: Implement acpi_fill_madt
common: Enable BLOBLIST_TABLES on arm
board: emulation: Add QEMU sbsa support
arm: mach-bcm283x: Map the ARM local MMIO as well
arm: bcm283x: Generate ACPI tables
arm: cpu: Add ACPI parking protocol support
armv8: cpu: Enable ACPI parking protocol
arm: Implement read_mpidr on armv7
arm: mach-bcm283x: Add ARMV8_MULTIENTRY support
arm: mach-bcm283x: Enable ARMV8_MULTIENTRY
bloblist: Fix use of uninitialized variable
configs: Add RPI4 ACPI defconfig
CI: Enable qemu_sbsa
Simon Glass (2):
arm: mach-bcm283x: Bring in some header files from tianocore
board: raspberrypi: Add ASL files from tianocore
.azure-pipelines.yml | 8 +
.gitlab-ci.yml | 11 +
MAINTAINERS | 2 +-
arch/arm/Kconfig | 11 +-
arch/arm/cpu/armv8/Makefile | 1 +
arch/arm/cpu/armv8/acpi_park_v8.S | 113 ++++
arch/arm/cpu/armv8/start.S | 12 +
arch/arm/dts/qemu-sbsa.dts | 138 ++++
arch/arm/include/asm/acpi_table.h | 147 ++++
arch/arm/include/asm/arch-qemu-sbsa/boot0.h | 34 +
arch/arm/include/asm/system.h | 9 +
arch/arm/lib/Makefile | 2 +
arch/arm/lib/acpi_table.c | 276 ++++++++
arch/arm/lib/gic-v2.c | 89 +++
arch/arm/lib/gic-v3-its.c | 121 +++-
arch/arm/mach-bcm283x/Kconfig | 16 +-
arch/arm/mach-bcm283x/Makefile | 4 +
arch/arm/mach-bcm283x/bcm2711_acpi.c | 128 ++++
.../mach-bcm283x/include/mach/acpi/bcm2711.h | 152 +++++
.../mach-bcm283x/include/mach/acpi/bcm2836.h | 127 ++++
.../include/mach/acpi/bcm2836_gpio.h | 19 +
.../include/mach/acpi/bcm2836_gpu.h | 47 ++
.../include/mach/acpi/bcm2836_pwm.h | 33 +
.../include/mach/acpi/bcm2836_sdhost.h | 18 +
.../include/mach/acpi/bcm2836_sdio.h | 21 +
arch/arm/mach-bcm283x/init.c | 2 +-
arch/arm/mach-qemu/Kconfig | 36 +-
arch/sandbox/dts/test.dts | 3 +
arch/sandbox/lib/Makefile | 9 +-
arch/sandbox/lib/acpi_table.c | 11 +
arch/x86/cpu/apollolake/acpi.c | 20 +-
arch/x86/cpu/baytrail/acpi.c | 17 +-
arch/x86/cpu/intel_common/acpi.c | 22 +-
arch/x86/cpu/quark/acpi.c | 19 +-
arch/x86/cpu/tangier/acpi.c | 33 +-
arch/x86/include/asm/acpi_table.h | 28 +-
arch/x86/lib/acpi_table.c | 245 +------
board/emulation/qemu-arm/MAINTAINERS | 2 +
board/emulation/qemu-sbsa/Kconfig | 59 ++
board/emulation/qemu-sbsa/Makefile | 8 +
board/emulation/qemu-sbsa/acpi.c | 192 ++++++
board/emulation/qemu-sbsa/dsdt.asl | 483 ++++++++++++++
board/emulation/qemu-sbsa/lowlevel_init.S | 22 +
board/emulation/qemu-sbsa/qemu-sbsa.c | 273 ++++++++
board/emulation/qemu-sbsa/qemu-sbsa.env | 14 +
board/emulation/qemu-sbsa/qemu-sbsa.h | 38 ++
board/emulation/qemu-sbsa/smc.c | 71 ++
board/raspberrypi/rpi/.gitignore | 3 +
board/raspberrypi/rpi/Makefile | 2 +
board/raspberrypi/rpi/acpitables.h | 90 +++
board/raspberrypi/rpi/dsdt.asl | 254 +++++++
board/raspberrypi/rpi/emmc.asl | 136 ++++
board/raspberrypi/rpi/gpudevs.asl | 372 +++++++++++
board/raspberrypi/rpi/pci.asl | 177 +++++
board/raspberrypi/rpi/pep.asl | 90 +++
board/raspberrypi/rpi/rhpx.asl | 195 ++++++
board/raspberrypi/rpi/rpi.c | 183 +++++
board/raspberrypi/rpi/sdhc.asl | 111 +++
board/raspberrypi/rpi/uart.asl | 208 ++++++
boot/bootflow.c | 8 +-
common/Kconfig | 1 +
common/bloblist.c | 2 +-
configs/clearfog_defconfig | 2 +-
configs/clearfog_gt_8k_defconfig | 2 +-
configs/clearfog_sata_defconfig | 2 +-
configs/clearfog_spi_defconfig | 2 +-
configs/db-88f6820-gp_defconfig | 2 +-
configs/ds116_defconfig | 2 +-
configs/helios4_defconfig | 2 +-
configs/mvebu_crb_cn9130_defconfig | 2 +-
configs/mvebu_db-88f3720_defconfig | 2 +-
configs/mvebu_db_armada8k_defconfig | 2 +-
configs/mvebu_db_cn9130_defconfig | 2 +-
configs/mvebu_espressobin-88f3720_defconfig | 2 +-
.../mvebu_espressobin_ultra-88f3720_defconfig | 2 +-
configs/mvebu_mcbin-88f8040_defconfig | 2 +-
configs/mvebu_puzzle-m801-88f8040_defconfig | 2 +-
configs/n2350_defconfig | 2 +-
configs/octeon_nic23_defconfig | 2 +-
configs/qemu-arm-sbsa_defconfig | 12 +
configs/rpi_4_acpi_defconfig | 10 +
configs/turris_omnia_defconfig | 2 +-
doc/board/emulation/index.rst | 1 +
doc/board/emulation/qemu-sbsa.rst | 98 +++
doc/develop/driver-model/virtio.rst | 1 +
drivers/ata/Kconfig | 12 +-
drivers/ata/Makefile | 2 +-
drivers/ata/{ahci_mvebu.c => ahci_generic.c} | 17 +-
drivers/core/acpi.c | 16 +
drivers/cpu/Kconfig | 7 +
drivers/cpu/Makefile | 2 +
drivers/cpu/armv8_cpu.c | 151 +++++
drivers/cpu/armv8_cpu.h | 31 +
drivers/cpu/bcm283x_cpu.c | 214 ++++++
drivers/misc/irq-uclass.c | 66 +-
drivers/pci/pcie_brcmstb.c | 101 +--
drivers/serial/serial_pl01x.c | 24 +
drivers/usb/host/Kconfig | 8 +
drivers/usb/host/Makefile | 1 +
drivers/usb/host/xhci-generic.c | 75 +++
include/acpi/acpi_table.h | 324 ++++++++-
include/acpi/acpigen.h | 12 +
include/bloblist.h | 1 +
include/configs/qemu-sbsa.h | 89 +++
include/dm/acpi.h | 26 +
include/irq.h | 14 +
include/serial.h | 1 +
lib/Kconfig | 31 +-
lib/acpi/acpi_table.c | 630 +++++++++++++++++-
lib/acpi/acpigen.c | 11 +
test/dm/acpi.c | 43 ++
test/dm/irq.c | 15 +
test/py/tests/test_event_dump.py | 1 +
113 files changed, 6519 insertions(+), 542 deletions(-)
create mode 100644 arch/arm/cpu/armv8/acpi_park_v8.S
create mode 100644 arch/arm/dts/qemu-sbsa.dts
create mode 100644 arch/arm/include/asm/arch-qemu-sbsa/boot0.h
create mode 100644 arch/arm/lib/acpi_table.c
create mode 100644 arch/arm/lib/gic-v2.c
create mode 100644 arch/arm/mach-bcm283x/bcm2711_acpi.c
create mode 100644 arch/arm/mach-bcm283x/include/mach/acpi/bcm2711.h
create mode 100644 arch/arm/mach-bcm283x/include/mach/acpi/bcm2836.h
create mode 100644 arch/arm/mach-bcm283x/include/mach/acpi/bcm2836_gpio.h
create mode 100644 arch/arm/mach-bcm283x/include/mach/acpi/bcm2836_gpu.h
create mode 100644 arch/arm/mach-bcm283x/include/mach/acpi/bcm2836_pwm.h
create mode 100644 arch/arm/mach-bcm283x/include/mach/acpi/bcm2836_sdhost.h
create mode 100644 arch/arm/mach-bcm283x/include/mach/acpi/bcm2836_sdio.h
create mode 100644 arch/sandbox/lib/acpi_table.c
create mode 100644 board/emulation/qemu-sbsa/Kconfig
create mode 100644 board/emulation/qemu-sbsa/Makefile
create mode 100644 board/emulation/qemu-sbsa/acpi.c
create mode 100644 board/emulation/qemu-sbsa/dsdt.asl
create mode 100644 board/emulation/qemu-sbsa/lowlevel_init.S
create mode 100644 board/emulation/qemu-sbsa/qemu-sbsa.c
create mode 100644 board/emulation/qemu-sbsa/qemu-sbsa.env
create mode 100644 board/emulation/qemu-sbsa/qemu-sbsa.h
create mode 100644 board/emulation/qemu-sbsa/smc.c
create mode 100644 board/raspberrypi/rpi/.gitignore
create mode 100644 board/raspberrypi/rpi/acpitables.h
create mode 100644 board/raspberrypi/rpi/dsdt.asl
create mode 100644 board/raspberrypi/rpi/emmc.asl
create mode 100644 board/raspberrypi/rpi/gpudevs.asl
create mode 100644 board/raspberrypi/rpi/pci.asl
create mode 100644 board/raspberrypi/rpi/pep.asl
create mode 100644 board/raspberrypi/rpi/rhpx.asl
create mode 100644 board/raspberrypi/rpi/sdhc.asl
create mode 100644 board/raspberrypi/rpi/uart.asl
create mode 100644 configs/qemu-arm-sbsa_defconfig
create mode 100644 configs/rpi_4_acpi_defconfig
create mode 100644 doc/board/emulation/qemu-sbsa.rst
rename drivers/ata/{ahci_mvebu.c => ahci_generic.c} (71%)
create mode 100644 drivers/cpu/armv8_cpu.c
create mode 100644 drivers/cpu/armv8_cpu.h
create mode 100644 drivers/cpu/bcm283x_cpu.c
create mode 100644 drivers/usb/host/xhci-generic.c
create mode 100644 include/configs/qemu-sbsa.hSignature · 1 line
2.46.2