[Bug 2098421] Re: [SRU] U-Boot 2024.01 fails to boot on RISC-V with QEMU 9.0 and cpu=max
Zixing Liu
2098421 at bugs.launchpad.net
Tue Feb 18 05:06:14 UTC 2025
Hi Heinrich,
>+u-boot (2024.01+dfsg-1ubuntu5.2) noble; urgency=medium
>+
>+ * Fix parsing of RISC-V ISA extensions (LP: #2098421)
>+
>+ -- Heinrich Schuchardt <heinrich.schuchardt at canonical.com> Thu, 13 Feb 2025 23:38:08 +0100
Can you expand this changelog so that SRU developers can understand your
changes better (maybe add something like "Fix RISC-V ISA extensions
parsing logic by back-porting several upstream patches")
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2098421
Title:
[SRU] U-Boot 2024.01 fails to boot on RISC-V with QEMU 9.0 and cpu=max
Status in u-boot package in Ubuntu:
Confirmed
Status in u-boot source package in Noble:
Confirmed
Status in u-boot source package in Oracular:
Confirmed
Status in u-boot source package in Plucky:
Confirmed
Bug description:
[ Impact ]
RISC-V device-trees have moved to using riscv,isa-extensions instead
of riscv,isa. If riscv,isa is missing, U-Boot 2024.01 fails to boot.
This can be demonstrated with QEMU 9.0 and cpu=max.
The following patches provide a remedy:
0d95add3b1c7 ("riscv: cpu: improve multi-letter extension detection in supports_extension()"
b90edde70127 ("riscv: don't read riscv, isa in the riscv cpu's get_desc()")
f39b1b77d822 ("riscv: support extension probing using riscv, isa-extensions")
[Test Plan ]
With QEMU 9.0 installed run:
qemu-system-riscv64 -M virt -cpu max \
-kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf
For regression testing:
Install u-boot-sifive on the Unmatched board and boot.
Install u-boot-microchip on the Icicle board and boot.
Install u-boot-starfive on the VisionFive 2 board and boot.
[ Where problems could occur ]
Booting on QEMU or real hardware might fail if the implementation of
ISA string parsing were incorrect.
[ Other Info ]
n/a
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/u-boot/+bug/2098421/+subscriptions
More information about the Ubuntu-sponsors
mailing list