Page MenuHomeFreeBSD

D33286.diff
No OneTemporary

D33286.diff

diff --git a/sys/dev/nvd/nvd.c b/sys/dev/nvd/nvd.c
--- a/sys/dev/nvd/nvd.c
+++ b/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
Sat, Jan 25, 6:31 AM (19 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16128564
Default Alt Text
D33286.diff (604 B)

Event Timeline