From patchwork Sat Nov 5 13:55:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Pandruvada, Srinivas" X-Patchwork-Id: 9413687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5EF606022E for ; Sat, 5 Nov 2016 13:55:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50217296A9 for ; Sat, 5 Nov 2016 13:55:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44C87296EE; Sat, 5 Nov 2016 13:55:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=2.0 tests=BASE64_LENGTH_79_INF, BAYES_00, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB986296A9 for ; Sat, 5 Nov 2016 13:55:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754786AbcKENz0 (ORCPT ); Sat, 5 Nov 2016 09:55:26 -0400 Received: from mga02.intel.com ([134.134.136.20]:31816 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754044AbcKENzY (ORCPT ); Sat, 5 Nov 2016 09:55:24 -0400 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 05 Nov 2016 06:55:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,597,1473145200"; d="scan'208";a="898112599" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by orsmga003.jf.intel.com with ESMTP; 05 Nov 2016 06:55:23 -0700 Received: from orsmsx112.amr.corp.intel.com (10.22.240.13) by ORSMSX109.amr.corp.intel.com (10.22.240.7) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sat, 5 Nov 2016 06:55:23 -0700 Received: from orsmsx109.amr.corp.intel.com ([169.254.11.246]) by ORSMSX112.amr.corp.intel.com ([169.254.3.58]) with mapi id 14.03.0248.002; Sat, 5 Nov 2016 06:55:23 -0700 From: "Pandruvada, Srinivas" To: "pavel@ucw.cz" CC: "linux-kernel@vger.kernel.org" , "Zhang, Rui" , "linux-pm@vger.kernel.org" , "platform-driver-x86@vger.kernel.org" , "rjw@rjwysocki.net" , "viresh.kumar@linaro.org" , "ibm-acpi-devel@lists.sourceforge.net" , "ibm-acpi@hmh.eng.br" , "linux-acpi@vger.kernel.org" Subject: Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build Thread-Topic: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build Thread-Index: AQHSNqR6E9PvsljNE0SLAUXkZpyWbKDJwJWAgAAZhgCAABIcgIAA706AgAAFAoA= Date: Sat, 5 Nov 2016 13:55:22 +0000 Message-ID: <1478354115.19557.17.camel@intel.com> References: <20161104083849.GA32688@amd> <20161104085830.GA4089@amd> <1478268311.26953.17.camel@intel.com> <20161104204439.GA2581@amd> <20161104221600.GA7007@amd> <1478301649.7947.3.camel@intel.com> <20161105133719.GA3933@amd> In-Reply-To: <20161105133719.GA3933@amd> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.157.235] Content-ID: MIME-Version: 1.0 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Sat, 2016-11-05 at 14:37 +0100, Pavel Machek wrote: > Hi! > > > > > [...] > > > > > > > > So we seem to have thermal or ACPI regression in v4.9-rc3. > > > > > It is possible. Can you add either add printk > > in acpi_processor_ppc_has_changed() or use ftrace and see do you > > get to > > these functions > > > > acpi_processor_ppc_init() > > acpi_processor_ppc_has_changed() > > acpi_processor_ppc_notifier() > > > > ? > > Yes, these seem to be called. Here's the log: Try this 1. Either enable dyndebug or add  #define DEBUG 1  at the top of acpi-cpufreq.c 2.                                      pr->performance->states[ppc].                                      core_frequency * 1000); Thanks, Srinivas diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c index bb01dea..6074995 100644 --- a/drivers/acpi/processor_perflib.c +++ b/drivers/acpi/processor_perflib.c @@ -94,9 +94,14 @@ static int acpi_processor_ppc_notifier(struct notifier_block *nb,           ppc = (unsigned int)pr->performance_platform_limit;   +       printk(KERN_ERR "ppc = %d\n", ppc); +         if (ppc >= pr->performance->state_count)                 goto out;   +       printk(KERN_ERR "ppc = %d freq-limit %d\n", ppc, pr- >performance->states[ppc]. +                                     core_frequency * 1000); +         cpufreq_verify_within_limits(policy, 0,