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