Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160264839
D54644.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
898 B
Referenced Files
None
Subscribers
None
D54644.diff
View Options
diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c
--- a/usr.sbin/bhyve/pci_emul.c
+++ b/usr.sbin/bhyve/pci_emul.c
@@ -1664,6 +1664,32 @@
}
}
}
+ if (get_config_bool_default("acpi_tables", false)) {
+ /*
+ * Setup fixed IRQ mappings for the hotpluggable
+ * slot. This makes sure we emit the proper ACPI
+ * _PRT entries when building the DSDT tables
+ * later on.
+ */
+ for (bus = 0; bus < MAXBUSES; bus++) {
+ if ((bi = pci_businfo[bus]) == NULL)
+ continue;
+ for (slot = 0; slot < MAXSLOTS; slot++) {
+ si = &bi->slotinfo[slot];
+ if (si->si_type == PCI_SLOT_FIXED)
+ continue;
+ for (int pin = 0; pin < 4; pin++) {
+ struct intxinfo *ii;
+
+ ii = &si->si_intpins[pin];
+ pci_irq_route(ctx, &ii->ii_irq, slot,
+ pin + 1);
+ ii->ii_count++;
+ }
+ }
+ }
+ }
+
#ifdef __amd64__
lpc_pirq_routed();
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 23, 5:21 PM (19 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34254646
Default Alt Text
D54644.diff (898 B)
Attached To
Mode
D54644: bhyve/pci_emul.c: Setup fixed PCI irq mappings for hotpluggable slots
Attached
Detach File
Event Timeline
Log In to Comment