Page MenuHomeFreeBSD

D33286.1796069492.diff
No OneTemporary

Authored By
Unknown
Size
641 B
Referenced Files
None
Subscribers
None

D33286.1796069492.diff

Index: sys/dev/nvd/nvd.c
===================================================================
--- sys/dev/nvd/nvd.c
+++ sys/dev/nvd/nvd.c
@@ -484,6 +484,13 @@
NVME_MODEL_NUMBER_LENGTH);
strlcpy(disk->d_descr, descr, sizeof(descr));
+ /*
+ * For devices that are reported as children of the AHCI controller,
+ * which has no access to the config space for this controller, report
+ * the AHCI controller's data.
+ */
+ if (ctrlr->ctrlr->quirks & QUIRK_AHCI)
+ dev = device_get_parent(dev);
disk->d_hba_vendor = pci_get_vendor(dev);
disk->d_hba_device = pci_get_device(dev);
disk->d_hba_subvendor = pci_get_subvendor(dev);

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 30, 8:11 PM (17 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42111538
Default Alt Text
D33286.1796069492.diff (641 B)

Event Timeline