OSDN Git Service

intel_idle: prevent SKL-H boot failure when C8+C9+C10 enabled
authorLen Brown <len.brown@intel.com>
Sun, 13 Mar 2016 05:33:48 +0000 (00:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:09:05 +0000 (09:09 -0700)
commit79d05ce04bfbe9885936ed985c2dd53d8500f617
tree9b9234121d36d68fc6c2c4f4bf00db2e84f00e11
parentded1db97aca15db72850c78ad222625386af4ea4
intel_idle: prevent SKL-H boot failure when C8+C9+C10 enabled

commit d70e28f57e14a481977436695b0c9ba165472431 upstream.

Some SKL-H configurations require "intel_idle.max_cstate=7" to boot.
While that is an effective workaround, it disables C10.

This patch detects the problematic configuration,
and disables C8 and C9, keeping C10 enabled.

Note that enabling SGX in BIOS SETUP can also prevent this issue,
if the system BIOS provides that option.

https://bugzilla.kernel.org/show_bug.cgi?id=109081
"Freezes with Intel i7 6700HQ (Skylake), unless intel_idle.max_cstate=7"

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/idle/intel_idle.c