[PATCH 3/5] ACPI: use dmi_dump_entries() instead of requesting dmidecode output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Len Brown <len.brown@xxxxxxxxx>

Dump DMI data to console instead of asking users to run dmidecode.

Signed-off-by: Len Brown <len.brown@xxxxxxxxx>
---
 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 linux-acpi@xxxxxxxxxxxxxxx\n");
+			"Please send DMI info above to "
+			"linux-acpi@xxxxxxxxxxxxxxx\n");
 		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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux