HomeFreeBSD

nvme_sim: Only report PCI related stats when we can

Description

nvme_sim: Only report PCI related stats when we can

For AHCI attached devices, we report the location and identification
information of the AHCI controller that we're attached to. We also
don't reprot link speed in that case, since we can't get to the PCIe
config space registers to find that out.

Sponsored by: Netflix
Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D33287

(cherry picked from commit 8f07932272c4b34804bc575c4f8bffecd15cd4ef)

Details

Provenance
impAuthored on Dec 6 2021, 5:23 PM
mavCommitted on Jan 21 2022, 2:07 AM
Reviewer
mav
Differential Revision
D33287: nvme_sim: Only report PCI related stats when we can
Parents
rGcc20d7570563: nvme_ahci: Mark AHCI devices as such in the controller
Branches
Unknown
Tags
Unknown