OpenSBI: system reset support missing for HiFive Unmatched

Bug #1937055 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
opensbi (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

With our current images the Linux poweroff and reboot commands fail. Same for U-Boot.

https://github.com/sifive/meta-sifive/tree/2021.06/recipes-bsp/opensbi/files/unmatched contains a series of patches to provide the system reset extension in OpenSBI.

http://lists.infradead.org/pipermail/opensbi/2021-July/001243.html is starts a series of patches to upstream a system reset extension implementation.

Suggested actions:

Build OpenSBI with one of the two series and check what additional changes in Linux and U-Boot might be needed to get working poweroff and reboot.

Best regards

Heinrich

Tags: riscv64
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

The patches from SiFive (http://lists.infradead.org/pipermail/opensbi/2021-July/001243.html) for a GPIO reset driver have been added to upstream OpenSBI in July.

A patch has been sent upstream to make that driver usable if a boards supports both gpio-reset and gpio-powerdown:

[PATCH 1/1] lib: utils: support multiple reset drivers of same type
http://lists.infradead.org/pipermail/opensbi/2021-July/001534.html

A device-tree node is missing for gpio-reset in U-Boot's device-tree.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

There is no GPIO for system reset on the HiFive unmatched.

Patches for an SBI based sysreset driver have been sent to upstream U-Boot.
https://lists.denx.de/pipermail/u-boot/2021-September/460291.html

The is an ongoing discussion about how UEFI runtime system reset drivers should be implemented. Some maintainers wish a driver model based solution and don't wont to follow the style of previous reset drivers like for PSCI.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

opensbi - 0.9+187.52af6e4b52-0ubuntu1 has been packaged in ppa:xypron/opensbi to resolve LP: 1937055

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package opensbi - 0.9+187.52af6e4b52-0ubuntu1

---------------
opensbi (0.9+187.52af6e4b52-0ubuntu1) jammy; urgency=medium

  * New upstream release snapshot which supports system reset on the
    SiFive Unmatched board (LP: #1937055)

 -- Heinrich Schuchardt <email address hidden> Mon, 22 Nov 2021 12:56:27 +0100

Changed in opensbi (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.