]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: make blacklist more verbose
authorAnthony Godshall, Ampro Computers, Inc <agodshall@ampro.com>
Sat, 10 Mar 2007 02:19:05 +0000 (21:19 -0500)
committerLen Brown <len.brown@intel.com>
Sat, 10 Mar 2007 02:19:05 +0000 (21:19 -0500)
IMHO, ACPI disabled due to DMI failure or blacklisted year should be noted,
as is done with other ACPI blacklisting.

This will help people troubleshoot when ACPI isn't working.  Status quo is
a mysterious "ACPI Disabled" message without explanation on BIOS that
implements ACPI but not DMI.  This is actually fairly common on embedded
x86 boards.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/blacklist.c

index f289fd41e77d5ef1bdb8d4d44359b08a43651930..3ec110ce00c8c3096b6f0ed7c379777b05e4822d 100644 (file)
@@ -79,11 +79,17 @@ static int __init blacklist_by_year(void)
 {
        int year = dmi_get_year(DMI_BIOS_DATE);
        /* Doesn't exist? Likely an old system */
-       if (year == -1)
+       if (year == -1) {
+               printk(KERN_ERR PREFIX "no DMI BIOS year, "
+                       "acpi=force is required to enable ACPI\n" );
                return 1;
+       }
        /* 0? Likely a buggy new BIOS */
-       if (year == 0)
+       if (year == 0) {
+               printk(KERN_ERR PREFIX "DMI BIOS year==0, "
+                       "assuming ACPI-capable machine\n" );
                return 0;
+       }
        if (year < CONFIG_ACPI_BLACKLIST_YEAR) {
                printk(KERN_ERR PREFIX "BIOS age (%d) fails cutoff (%d), "
                       "acpi=force is required to enable ACPI\n",