riscvarchive / riscv-edk2

Port of EDK2 implementation of UEFI to RISC-V. See documentation at:
https://github.com/riscv/riscv-uefi-edk2-docs
Other
22 stars 10 forks source link

Implement ACPI #7

Open JohnAZoidberg opened 3 years ago

JohnAZoidberg commented 3 years ago

@vlsunil has been working on implementing ACPI for RISC-V.

Branches:

JohnAZoidberg commented 3 years ago

The commits don't have negative impact, so I picked them onto the WIP branches for RiscvVirt here:

acpiview can be run but without the corresponding QEMU changes it does not show anything.

vlsunil commented 3 years ago

Thanks @JohnAZoidberg . Yes, qemu changes are required for it to display.

vlsunil commented 3 years ago

@vlsunil has been working on implementing ACPI for RISC-V.

Branches:

* https://github.com/vlsunil/riscv-edk2/tree/virt_acpi

* https://github.com/vlsunil/riscv-edk2-platforms/tree/virt

* https://github.com/vlsunil/qemu/tree/virt-acpi

The latest PoC code is available in the below branches.

Linux boots with multiple CPUs. ACPI support is available with AIA interrupt controllers.

JohnAZoidberg commented 3 years ago

These branches are still the latest? Do they require any special configuration/build flags in qemu/edk2/linux?

I'd like to test it and possibly set up CI for it.

vlsunil commented 3 years ago

Hi Daniel, the instructions to build and test are documented at https://github.com/riscv-non-isa/riscv-acpi/wiki/PoC-:-How-to-build-and-test-ACPI-enabled-kernel.

based on LPC feedback, I am working on enabling a new ACPI table to communicate optional things etc which is still being defined and has a dependency on config discovery.