From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754036AbcEYFCe (ORCPT ); Wed, 25 May 2016 01:02:34 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35773 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750990AbcEYFCc (ORCPT ); Wed, 25 May 2016 01:02:32 -0400 MIME-Version: 1.0 In-Reply-To: References: <20151126090940.GA30403@gmail.com> <36DF59CE26D8EE47B0655C516E9CE64028677FF5@shsmsx102.ccr.corp.intel.com> Date: Wed, 25 May 2016 13:02:30 +0800 Message-ID: Subject: Re: [PATCH][v7] x86, suspend: Save/restore extra MSR registers for suspend From: Chen Yu To: Len Brown Cc: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , "Rafael J. Wysocki" , Pavel Machek , Andy Lutomirski , Borislav Petkov , George Spelvin , "Kaszewski, Marcin" , Matthew Garrett , "linux-pm@vger.kernel.org" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Chen Yu Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Len, On Wed, May 25, 2016 at 12:09 AM, Len Brown wrote: > +mjg59, who may be seeing this issue on a skylake laptop > > Chen-yu, > > Great debugging, but I think there is a more general fix possible than > this DMI quirk. > > I agree that in this example, a grantley server, it seems the BIOS is > erroneously > returning a bogus value of MSR_IA32_THERM_CONTROL on resume from S3. > > But another scenario is also possible. Consider a laptop that is resuming HOT > and the BIOS correctly enables throttling. If this code were invoked, it would > restore the COLD setting. > > Instead, it seems to me that the ACPI processor driver should upon .resume > check if throttling should be enabled or not, and proceed accordingly. > That would always do the "right thing", and would not need a DMI list. > Does that make sense? I agree, to let the related drivers customize their restoring process would be more robust, and we can not only take care of boot CPU but also nonboot CPUs in this way. I think we can add something like acpi_processor_reevaluate_tstate in the resume hook,I'll make a double check. thanks, Yu