Page MenuHomeFreeBSD

nda: Only attach to devices whose progif if nvme storage
AcceptedPublic

Authored by imp on Sep 3 2025, 6:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 27, 1:26 AM
Unknown Object (File)
Fri, Sep 26, 2:34 PM
Unknown Object (File)
Fri, Sep 26, 2:13 AM
Unknown Object (File)
Wed, Sep 24, 4:13 PM
Unknown Object (File)
Wed, Sep 24, 3:56 PM
Unknown Object (File)
Wed, Sep 24, 9:50 AM
Unknown Object (File)
Sat, Sep 20, 5:57 AM
Unknown Object (File)
Tue, Sep 16, 8:26 PM
Subscribers

Details

Reviewers
jhb
chuck
Group Reviewers
cam
Summary

There's a number of PCIe cards today that are not, strictly speaking
storage cards. For any PCIe card, make sure that it supports the proper
PCI ProgIF before attaching to it.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66791
Build 63674: arc lint + arc unit

Event Timeline

imp requested review of this revision.Sep 3 2025, 6:28 PM
chuck added a subscriber: chuck.
chuck added inline comments.
sys/cam/nvme/nvme_da.c
678

Would it make sense to log this? No log message for the previous "device is not NVMe" is fine, but here, the code is noticing "this is the wrong kind of NVMe device" feels different (maybe).

This revision is now accepted and ready to land.Mon, Sep 8, 5:12 PM
sys/cam/nvme/nvme_da.c
678

I think so, so long as we can have a good error message. It will be rare to see this, so we don't need to rate limit it, and it will happen only with weird, odd-ball cards, which is fine for those users.