summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2012-03-10 21:08:07 +0000
committermav <mav@FreeBSD.org>2012-03-10 21:08:07 +0000
commitc63effcfd77e3aa5354be7dba75c26f4bf2a348c (patch)
tree7575f6d272baee666f4ce7a605255fa05f6b4bf0
parenta23302347c82548fbb55386ba0514bebdfc20536 (diff)
downloadFreeBSD-src-c63effcfd77e3aa5354be7dba75c26f4bf2a348c.zip
FreeBSD-src-c63effcfd77e3aa5354be7dba75c26f4bf2a348c.tar.gz
ServerWorks HT1000 HPET reported to have problems with IRQs >= 16.
Lower (ISA) IRQs are working, but allowed mask is not set correctly. Block both by default to allow HP BL465c G6 blade system to boot. Reported by: Attila Nagy <bra@fsn.hu> MFC after: 1 week
-rw-r--r--sys/dev/acpica/acpi_hpet.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_hpet.c b/sys/dev/acpica/acpi_hpet.c
index 2fa7122..5991c15 100644
--- a/sys/dev/acpica/acpi_hpet.c
+++ b/sys/dev/acpica/acpi_hpet.c
@@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$");
#define HPET_VENDID_AMD 0x4353
#define HPET_VENDID_INTEL 0x8086
#define HPET_VENDID_NVIDIA 0x10de
+#define HPET_VENDID_SW 0x1166
ACPI_SERIAL_DECL(hpet, "ACPI HPET support");
@@ -513,6 +514,13 @@ hpet_attach(device_t dev)
if (vendor == HPET_VENDID_NVIDIA && rev <= 0x01)
sc->allowed_irqs = 0x00000000;
/*
+ * ServerWorks HT1000 reported to have problems with IRQs >= 16.
+ * Lower IRQs are working, but allowed mask is not set correctly.
+ * Legacy_route mode works fine.
+ */
+ if (vendor == HPET_VENDID_SW && rev <= 0x01)
+ sc->allowed_irqs = 0x00000000;
+ /*
* Neither QEMU nor VirtualBox report supported IRQs correctly.
* The only way to use HPET there is to specify IRQs manually
* and/or use legacy_route. Legacy_route mode works on both.
OpenPOWER on IntegriCloud