Bug 265776 - [nvme] Toshiba nvme not always detected on boot
Summary: [nvme] Toshiba nvme not always detected on boot
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.1-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-11 15:36 UTC by Vardan Melikyan
Modified: 2023-11-19 14:15 UTC (History)
3 users (show)

See Also:


Attachments
pciconf (4.28 KB, text/plain)
2022-08-11 15:37 UTC, Vardan Melikyan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vardan Melikyan 2022-08-11 15:36:47 UTC
Freshly installed fbsd 13.1 release on a Thinkpad x270, zfs root on geli. However, the system doesn't always boot successfully, with error:

trying to mount from zfs:zroot/ROOT/default failed with error 5.

Listing "valid disk boot devices" with "?" shows nothing at all when the error occurs.

Actually by booting the 13.1-RELEASE installer image on this machine sometimes the nvme partitions are not detected, and hence I believe it is an issue with the nvme driver (no /dev/nvd* are created), and the installer fails to find a valid device.

I've tried hw.nvme.use_nvd=0, with no success, it just looks completely random, some times it boots fine, sometimes it doesn't. I can exclude hardware issue, as Linux boots always fine on this laptop, also I couldn't reproduce the issue on 14-CURRENT.

Any help is much appreciated, please don't hesitate to ask for more information if needed.
Comment 1 Vardan Melikyan 2022-08-11 15:37:51 UTC
Created attachment 235849 [details]
pciconf
Comment 2 Vardan Melikyan 2022-08-11 18:31:57 UTC
I've compiled the nvme code from 14-CURRENT on 13.1 (with minor changes to the DRIVER_MODULE macro that has changed). The issue unfortunately occurs...
Comment 3 Ali Abdallah 2022-08-26 20:30:30 UTC
Got recently a spare x270 with the same nvme controller and same random boot issue with FreeBSD, debugging it...