u-boot 2022.01+dfsg-2ubuntu1 breaks nvme on RISC-V unmatched board

Bug #1965321 reported by Alexandre Ghiti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
u-boot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When booting a jammy image on the SiFive Unmatched board, the nvme disk do not appear whereas by simply replacing u-boot with the previous version 2021.07+dfsg-0ubuntu8 works fine.

Could be related to upstream commit a398a51ccc68c0a7aee14f8328dc86a1a4cfba85 ("pci: Work around PCIe link training failures"), I have to try.

This does not look related to opensbi as both versions were built against the same opensbi version.

Revision history for this message
Alexandre Ghiti (alexghiti) wrote :

Actually the last assertion is wrong:

ubuntu@ubuntu:~$ sudo apt info u-boot-sifive=2021.07+dfsg-0ubuntu8
Package: u-boot-sifive
Version: 2021.07+dfsg-0ubuntu8
Built-Using: opensbi (= 0.9-2ubuntu2)

ubuntu@ubuntu:~$ sudo apt info u-boot-sifive=2022.01+dfsg-2ubuntu1
Package: u-boot-sifive
Version: 2022.01+dfsg-2ubuntu1
Built-Using: opensbi (= 1.0-3ubuntu1)

One more thing to check on my side.

Revision history for this message
Alexandre Ghiti (alexghiti) wrote :

And:

ubuntu@ubuntu:~$ sudo apt info u-boot-sifive=2021.07+dfsg-0ubuntu10
Package: u-boot-sifive
Version: 2021.07+dfsg-0ubuntu10
Built-Using: opensbi (= 0.9+187.52af6e4b52-0ubuntu1)

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

My Unmatched board has /boot on NVMe and distroboot via extlinux.conf works fine.

Please, describe your set-up. Where is your /boot directory? On MMC or on NVMe? Maybe we have to add 'pci enum' to preboot if this is needed to preconfigure PCI.

Changed in u-boot (Ubuntu):
status: New → Incomplete
Revision history for this message
Alexandre Ghiti (alexghiti) wrote :

This issue seems to have a fix in Linux, which is nice since it does not depend on u-boot at all:

https://patchwork.kernel<email address hidden>/

I'll give it a try.

Revision history for this message
Alexandre Ghiti (alexghiti) wrote :

As reported here, there is an issue with the PCI controller on the unmatched board that must be fixed in Linux (cf [1]) and u-boot: for u-boot, the upstream commit a398a51ccc68c0a7aee14f8328dc86a1a4cfba85 ("pci: Work around PCIe link training failures") should be cherry-picked for 22.04.

Thanks

[1] https://bugs.launchpad.net/ubuntu/+source/linux-riscv/+bug/1964796

Changed in u-boot (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package u-boot - 2022.01+dfsg-2ubuntu2

---------------
u-boot (2022.01+dfsg-2ubuntu2) jammy; urgency=medium

  * d/patches: Add SiFive Unmatched PCIe fix (LP: #1965321)

 -- Alexandre Ghiti <email address hidden> Fri, 25 Mar 2022 11:15:18 +0100

Changed in u-boot (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.