Module Name: src Committed By: jruoho Date: Fri Jul 2 05:18:38 UTC 2010
Modified Files: src/sys/dev/acpi: acpi.c Log Message: Remove PNP0C01 and PNP0C02 from the list of ignored HIDs (and CIDs). Fixes PR kern/42937 from Ryo Onodera. As acpi_match_hid() matches also "compatible IDs" (CIDs), we must be careful when adding devices to this list. For example, the above PR revealed that the following is a fairly typical way to define the HPET device: Device (HPET) { Name (_HID, EisaId ("PNP0103")) Name (_CID, EisaId ("PNP0C01")) ... Arguably this is a BIOS bug, given that PNP0C01 and PNP0C02 should uniquely identify a device (or a resource template) that has nothing to do with HPET. To generate a diff of this commit: cvs rdiff -u -r1.204 -r1.205 src/sys/dev/acpi/acpi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/acpi.c diff -u src/sys/dev/acpi/acpi.c:1.204 src/sys/dev/acpi/acpi.c:1.205 --- src/sys/dev/acpi/acpi.c:1.204 Fri Jul 2 05:00:48 2010 +++ src/sys/dev/acpi/acpi.c Fri Jul 2 05:18:38 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi.c,v 1.204 2010/07/02 05:00:48 jruoho Exp $ */ +/* $NetBSD: acpi.c,v 1.205 2010/07/02 05:18:38 jruoho Exp $ */ /*- * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc. @@ -65,7 +65,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.204 2010/07/02 05:00:48 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.205 2010/07/02 05:18:38 jruoho Exp $"); #include "opt_acpi.h" #include "opt_pcifixup.h" @@ -144,8 +144,6 @@ "PNP0200", /* AT DMA controller is handled internally */ "PNP0A??", /* PCI Busses are handled internally */ "PNP0B00", /* AT RTC is handled internally */ - "PNP0C01", /* No "System Board" driver */ - "PNP0C02", /* No "PnP motherboard register resources" driver */ "PNP0C0B", /* No need for "ACPI fan" driver */ "PNP0C0F", /* ACPI PCI link devices are handled internally */ "IFX0102", /* No driver for Infineon TPM */