Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131956744
D12205.id32819.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12205.id32819.diff
View Options
Index: head/sys/x86/iommu/intel_drv.c
===================================================================
--- head/sys/x86/iommu/intel_drv.c
+++ head/sys/x86/iommu/intel_drv.c
@@ -71,6 +71,9 @@
#ifdef DEV_APIC
#include "pcib_if.h"
+#include <machine/intr_machdep.h>
+#include <x86/apicreg.h>
+#include <x86/apicvar.h>
#endif
#define DMAR_FAULT_IRQ_RID 0
@@ -788,6 +791,9 @@
ACPI_DMAR_DEVICE_SCOPE *devscope;
ACPI_DMAR_PCI_PATH *path;
char *ptr, *ptrend;
+#ifdef DEV_APIC
+ int error;
+#endif
int i;
for (i = 0; i < dmar_devcnt; i++) {
@@ -809,6 +815,17 @@
continue;
if (devscope->EnumerationId != id)
continue;
+#ifdef DEV_APIC
+ if (entry_type == ACPI_DMAR_SCOPE_TYPE_IOAPIC) {
+ error = ioapic_get_rid(id, rid);
+ /*
+ * If our IOAPIC has PCI bindings then
+ * use the PCI device rid.
+ */
+ if (error == 0)
+ return (unit);
+ }
+#endif
if (devscope->Length - sizeof(ACPI_DMAR_DEVICE_SCOPE)
== 2) {
if (rid != NULL) {
@@ -818,12 +835,11 @@
path->Device, path->Function);
}
return (unit);
- } else {
- /* XXXKIB */
- printf(
- "dmar_find_nonpci: id %d type %d path length != 2\n",
- id, entry_type);
}
+ printf(
+ "dmar_find_nonpci: id %d type %d path length != 2\n",
+ id, entry_type);
+ break;
}
}
return (NULL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 13, 12:14 PM (18 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23674686
Default Alt Text
D12205.id32819.diff (1 KB)
Attached To
Mode
D12205: Use IOAPIC PCI rid as the interrupt TLP source id for DMAR interrupt remapping.
Attached
Detach File
Event Timeline
Log In to Comment