Skip to content

Commit 335f16b

Browse files
David Shaohua Lilenb
David Shaohua Li
authored andcommitted
[ACPI] address boot-freeze with updated DMI blacklist for c-states
http://bugzilla.kernel.org/show_bug.cgi?id=4763 Signed-off-by: David Shaohua Li <[email protected]> Signed-off-by: Len Brown <[email protected]>
1 parent 0b6b2f0 commit 335f16b

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

drivers/acpi/processor_idle.c

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,30 +81,33 @@ module_param(bm_history, uint, 0644);
8181
*
8282
* To skip this limit, boot/load with a large max_cstate limit.
8383
*/
84-
static int no_c2c3(struct dmi_system_id *id)
84+
static int set_max_cstate(struct dmi_system_id *id)
8585
{
8686
if (max_cstate > ACPI_PROCESSOR_MAX_POWER)
8787
return 0;
8888

89-
printk(KERN_NOTICE PREFIX "%s detected - C2,C3 disabled."
89+
printk(KERN_NOTICE PREFIX "%s detected - %s disabled."
9090
" Override with \"processor.max_cstate=%d\"\n", id->ident,
91+
((int)id->driver_data == 1)? "C2,C3":"C3",
9192
ACPI_PROCESSOR_MAX_POWER + 1);
9293

93-
max_cstate = 1;
94+
max_cstate = (int)id->driver_data;
9495

9596
return 0;
9697
}
9798

9899

99-
100-
101100
static struct dmi_system_id __initdata processor_power_dmi_table[] = {
102-
{ no_c2c3, "IBM ThinkPad R40e", {
101+
{ set_max_cstate, "IBM ThinkPad R40e", {
103102
DMI_MATCH(DMI_BIOS_VENDOR,"IBM"),
104-
DMI_MATCH(DMI_BIOS_VERSION,"1SET60WW") }},
105-
{ no_c2c3, "Medion 41700", {
103+
DMI_MATCH(DMI_BIOS_VERSION,"1SET60WW") }, (void*)1},
104+
{ set_max_cstate, "Medion 41700", {
105+
DMI_MATCH(DMI_BIOS_VENDOR,"Phoenix Technologies LTD"),
106+
DMI_MATCH(DMI_BIOS_VERSION,"R01-A1J") }, (void*)1},
107+
{ set_max_cstate, "Clevo 5600D", {
106108
DMI_MATCH(DMI_BIOS_VENDOR,"Phoenix Technologies LTD"),
107-
DMI_MATCH(DMI_BIOS_VERSION,"R01-A1J") }},
109+
DMI_MATCH(DMI_BIOS_VERSION,"SHE845M0.86C.0013.D.0302131307") },
110+
(void*)2},
108111
{},
109112
};
110113

0 commit comments

Comments
 (0)