Emulation of fence.tso hangs in endless loop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
opensbi (Debian) |
Fix Released
|
Unknown
|
|||
opensbi (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Unassigned | ||
u-boot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Unassigned | ||
u-boot-nezha (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
OpenSBI 1.1 has added an emulation of the fence.tso instruction missing on the Allwinner D1 SOC. This emulation hangs in an endless loop. This is fixed by the following upstream patch:
111afc12306e ("lib: sbi_illegal_insn: Fix FENCE.TSO emulation infinite trap loop")
We need to rebuild packages u-boot and u-boot-nezha with the updated OpenSBI to make use of the fix.
[ Test Plan ]
* Boot QEMU, SiFive Unmatched and Nezha D1 with the updated U-Boot.
* Install package clang.
* Execute command clang -v (which uses the fence.tso command).
* Reboot.
[ Where problems could occur ]
The patch added concerns only the fence.tso emulation.
If the patch were wrong, the Nezha D1 might still fail in the emulation.
A defective OpenSBI might lead to failure to boot, to reboot, to poweroff or to crashes when Linux calls into SBI.
[ Other Info ]
n/a
Changed in opensbi (Ubuntu): | |
status: | New → Fix Committed |
Changed in u-boot (Ubuntu): | |
status: | New → Fix Committed |
description: | updated |
Changed in opensbi (Debian): | |
status: | Unknown → Fix Committed |
Changed in opensbi (Debian): | |
status: | Fix Committed → Fix Released |
tags: |
added: verification-done verification-done-jammy verification-done-kinetic removed: verification-needed verification-needed-jammy |
tags: | removed: verification-needed-kinetic |
tags: | removed: foundations-todo |
Add Origin field to patch (which is not strictly required if author of patch is given)