From: Justin P. Mattock Date: Tue, 16 Feb 2010 23:17:29 +0000 (-0800) Subject: x86: Add iMac9,1 to pci_reboot_dmi_table X-Git-Tag: firefly_0821_release~10186^2~2065 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3f03f7afa01b26c17c226816ab6deb222209bb43;p=firefly-linux-kernel-4.4.55.git x86: Add iMac9,1 to pci_reboot_dmi_table commit 0a832320f1bae6a4169bf683e201378f2437cfc1 upstream. On the iMac9,1 /sbin/reboot results in a black mangled screen. Adding this DMI entry gets the machine to reboot cleanly as it should. Signed-off-by: Justin P. Mattock LKML-Reference: <1266362249-3337-1-git-send-email-justinmattock@gmail.com> Signed-off-by: H. Peter Anvin Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c index bff34d68d9d1..269c2a3cb43d 100644 --- a/arch/x86/kernel/reboot.c +++ b/arch/x86/kernel/reboot.c @@ -461,6 +461,14 @@ static struct dmi_system_id __initdata pci_reboot_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Macmini3,1"), }, }, + { /* Handle problems with rebooting on the iMac9,1. */ + .callback = set_pci_reboot, + .ident = "Apple iMac9,1", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "iMac9,1"), + }, + }, { } };