diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2014-06-24 20:35:20 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2014-06-24 20:35:20 +0000 |
| commit | 2703fe37e0566cbdbae629fc756a82abcb9fe5ab (patch) | |
| tree | 81e61f8e5ac97c31c283752a619627de9a552656 /sys | |
| parent | 43f2b8537b15c8332a40c717b6751a4cd6582b03 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/acpica/acpi_resource.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_resource.c b/sys/dev/acpica/acpi_resource.c index ce6732f1671a..ac6f25ca8d71 100644 --- a/sys/dev/acpica/acpi_resource.c +++ b/sys/dev/acpica/acpi_resource.c @@ -135,6 +135,17 @@ acpi_config_intr(device_t dev, ACPI_RESOURCE *res) default: panic("%s: bad resource type %u", __func__, res->Type); } + +#if defined(__amd64__) || defined(__i386__) + /* + * XXX: Certain BIOSes have buggy AML that specify an IRQ that is + * edge-sensitive and active-lo. However, edge-sensitive IRQs + * should be active-hi. Force IRQs with an ISA IRQ value to be + * active-hi instead. + */ + if (irq < 16 && trig == ACPI_EDGE_SENSITIVE && pol == ACPI_ACTIVE_LOW) + pol = ACPI_ACTIVE_HIGH; +#endif BUS_CONFIG_INTR(dev, irq, (trig == ACPI_EDGE_SENSITIVE) ? INTR_TRIGGER_EDGE : INTR_TRIGGER_LEVEL, (pol == ACPI_ACTIVE_HIGH) ? INTR_POLARITY_HIGH : INTR_POLARITY_LOW); |
