From: Len Brown <[EMAIL PROTECTED]>
Dump DMI data to console instead of asking users to run dmidecode.
Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
drivers/acpi/osl.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index e3a673a..3c767e7 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -1141,6 +1141,18 @@ acpi_status acpi_os_release_object(acpi_cache_t * cache,
void *object)
return (AE_OK);
}
+/*
+ * The DMI entries to dump to the screeen
+ * for easy DMI blacklist creation from dmesg.
+ */
+#define DMI_INTERESTING_ENTRIES (\
+ (1 << DMI_BIOS_VENDOR) | \
+ (1 << DMI_BIOS_DATE) | \
+ (1 << DMI_SYS_VENDOR) | \
+ (1 << DMI_PRODUCT_NAME) | \
+ (1 << DMI_PRODUCT_VERSION) | \
+ (1 << DMI_BOARD_NAME))
+
/******************************************************************************
*
* FUNCTION: acpi_os_validate_interface
@@ -1162,10 +1174,13 @@ acpi_os_validate_interface (char *interface)
if (!strcmp("Linux", interface)) {
printk(KERN_WARNING PREFIX
"System BIOS is requesting _OSI(Linux)\n");
+ if (dmi_dump_entries(DMI_INTERESTING_ENTRIES))
+ printk(KERN_WARNING
+ "[please extract dmidecode output]\n");
printk(KERN_WARNING PREFIX
"If \"acpi_osi=Linux\" works better,\n"
- "Please send dmidecode "
- "to [EMAIL PROTECTED]");
+ "Please send DMI info above to "
+ "[EMAIL PROTECTED]");
if(osi_linux)
return AE_OK;
}
--
1.5.4.rc3.14.g44397
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html