Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178133363
D33286.1796069492.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
641 B
Referenced Files
None
Subscribers
None
D33286.1796069492.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D33286: nvd: For AHCI attached devices, report ahci bridge
Attached
Detach File
Event Timeline