id = 2467 title = "OpenSBI 1.5 packaged in QEMU 9.0.50 fails to support poweroff with 'spike' board" state = "closed" created_at = "2024-07-29T22:17:18.700Z" closed_at = "2024-12-27T17:06:30.852Z" labels = ["target: riscv"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2467" host-os = "Ubuntu 24.10" host-arch = "amd64" qemu-version = "9.0.50 (v9.0.0-2711-g93b799fafd)" guest-os = "n/a" guest-arch = "n/a" description = "n/a" reproduce = """Build upstream U-Boot: - git clone https://source.denx.de/u-boot/u-boot.git - cd u-boot - make qemu-riscv64_smode_defconfig - CROSS_COMPILE=riscv64-linux-gnu- make Run U-Boot and execute poweroff command - qemu-system-riscv64 -kernel u-boot.bin - poweroff Poweroff fails. When building upstream OpenSBI v1.5 with - git clone https://github.com/riscv-software-src/opensbi.git - cd opensbi - git reset --hard v1.5 - CROSS_COMPILE=riscv64-linux-gnu- make PLATFORM=generic and then running - qemu-system-riscv64 -bios fw_dynamic.bin -kernel u-boot.bin - poweroff poweroff succeeds. Please, distribute an unpatched OpenSBI v1.5 with QEMU.""" additional = "n/a"