Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170797148
D59061.id184624.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
704 B
Referenced Files
None
Subscribers
None
D59061.id184624.diff
View Options
Index: sys/dev/acpica/acpi_pci.c
===================================================================
--- sys/dev/acpica/acpi_pci.c
+++ sys/dev/acpica/acpi_pci.c
@@ -338,6 +338,17 @@
void
acpi_pci_child_added(device_t dev, device_t child)
{
+ struct acpi_pci_devinfo *dinfo;
+
+ dinfo = device_get_ivars(child);
+ /*
+ * VFs are instantiated dynamically from their PF rather than enumerated
+ * from ACPI. A VF's runtime slot and function can match an unrelated
+ * _ADR below the bridge, causing the ACPI handle for that device to be
+ * attached to the VF.
+ */
+ if ((dinfo->ap_dinfo.cfg.flags & PCICFG_VF) != 0)
+ return;
/*
* PCI devices are added via the bus scan in the normal PCI
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 7, 4:47 PM (11 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38335160
Default Alt Text
D59061.id184624.diff (704 B)
Attached To
Mode
D59061: acpi_pci: Do not match SR-IOV VFs to ACPI devices
Attached
Detach File
Event Timeline
Log In to Comment