lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1275114371-5329-1-git-send-email-justinmattock@gmail.com>
Date:	Fri, 28 May 2010 23:26:11 -0700
From:	"Justin P. Mattock" <justinmattock@...il.com>
To:	x86@...nel.org
Cc:	tglx@...utronix.de, linux-kernel@...r.kernel.org,
	"Justin P. Mattock" <justinmattock@...il.com>
Subject: [PATCH]X86:reboot.c Add some dmi entries to pci_reboot_dmi_table.

Add dmi entries to pci_reboot_dmi_table to fix some
reboot issues on some apple products.
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/499497
https://help.ubuntu.com/community/MacBook6-1/Karmic
http://ubuntu-utah.ubuntuforums.org/showthread.php?t=1476226
I dont have the machines on me(please test people),
but if this is the same as what I experienced with my
iMac9,1 then this should resolve the issue of having to
use a bootparam.
 
 Signed-off-by: Justin P. Mattock <justinmattock@...il.com>

---
 arch/x86/kernel/reboot.c |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index 8e1aac8..1ab41d3 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -453,6 +453,14 @@ static struct dmi_system_id __initdata pci_reboot_dmi_table[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro5"),
 		},
 	},
+	{	/* Handle problems with rebooting on Apple MacBookPro6,1 */
+		.callback = set_pci_reboot,
+		.ident = "Apple MacBookPro6,1",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro6,1"),
+		},
+	},
 	{	/* Handle problems with rebooting on Apple Macmini3,1 */
 		.callback = set_pci_reboot,
 		.ident = "Apple Macmini3,1",
@@ -469,6 +477,22 @@ static struct dmi_system_id __initdata pci_reboot_dmi_table[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "iMac9,1"),
 		},
 	},
+	{	/* Handle problems with rebooting on the iMac10,1. */
+		.callback = set_pci_reboot,
+		.ident = "Apple iMac10,1",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "iMac10,1"),
+		},
+	},
+	{	/* Handle problems with rebooting on the iMac11,1. */
+		.callback = set_pci_reboot,
+		.ident = "Apple iMac11,1",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "iMac11,1"),
+		},
+	},
 	{ }
 };
 
-- 
1.6.5.2.180.gc5b3e

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ