Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754794AbcC3Sur (ORCPT ); Wed, 30 Mar 2016 14:50:47 -0400 Received: from cmta8.telus.net ([209.171.16.81]:48193 "EHLO cmta8.telus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754372AbcC3Suq convert rfc822-to-8bit (ORCPT ); Wed, 30 Mar 2016 14:50:46 -0400 X-Authority-Analysis: v=2.1 cv=APo7pnY9 c=1 sm=2 tr=0 a=zJWegnE7BH9C0Gl4FFgQyA==:117 a=zJWegnE7BH9C0Gl4FFgQyA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=Pyq9K9CWowscuQLKlpiwfMBGOR0=:19 a=IkcTkHD0fZMA:10 a=QyXUC8HyAAAA:8 a=pGLkceISAAAA:8 a=zLr5TxnijN5EKxCER14A:9 a=QEXdDO2ut3YA:10 X-Telus-Outbound-IP: 173.180.45.4 From: "Doug Smythies" To: "=?UTF-8?Q?'J=C3=B6rg_Otte'?=" , "'Pandruvada, Srinivas'" Cc: , , , References: <4187911.uaFVupaTVL@vostro.rjw.lan> <1459352017.13525.45.camel@intel.com> In-Reply-To: Subject: RE: [intel-pstate driver regression] processor frequency very high even if in idle Date: Wed, 30 Mar 2016 11:50:35 -0700 Message-ID: <002401d18ab5$0bf84a30$23e8de90$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdGKnBam2dgLsrBBR7qsfUAuKu6smAAEtuhQ Content-Language: en-ca Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2215 Lines: 79 On 2016.03.30 08:52 Jörg Otte wrote: > 2016-03-30 17:33 GMT+02:00 Pandruvada, Srinivas : >> On Wed, 2016-03-30 at 13:05 +0200, Rafael J. Wysocki wrote: >>> On Wed, Mar 30, 2016 at 12:17 PM, Jörg Otte >>>>>> Now in v4.6-rc1 the characteristic has dramatically changed. >>>>>> If in idle the processor frequency is more or less a few >>>>>> MHz around 2500Mhz. >>>>>> I currently use acpi_cpufreq which works as usual. >>>>>> Processor: Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz >>>>>> (family: 0x6, model: 0x3c, stepping: 0x3) >> I want to reproduce this if I can. Can you give us info about your >> setup (Linux distribution, laptop model etc.)? I would like to try to reproduce the issue also. > Distro: Ubuntu 14.04.4 LTS Note that with Ubuntu 14.04, I had issues where my CPU would lock at pstate 24 (not always 24, but usually), regardless of load. However, it was always after an S3 suspend, occurred 100% of the time, and was independent of intel_pstate or acpi-cpufreq CPU frequency scaling drivers. Since changing my test server to Ubuntu server edition 16.04 (development version), I have not had those issues. While I have no proof, I have assumed the issue elimination was somehow related to the change to systemd. It might be worth observing both what the intel_pstate is asking for and what the processor is actually doing. What is being asked for: # rdmsr --bitfield 15:8 -d -a 0x199 What is being given: # rdmsr --bitfield 15:8 -d -a 0x198 An old problematic example from an idle system (mine) Note, my minimum pstate is 16: What was being given: # rdmsr --bitfield 15:8 -d -a 0x198 24 24 24 24 24 24 24 24 What was being asked for: # rdmsr --bitfield 15:8 -d -a 0x199 16 16 16 16 16 16 16 16 To gain further insight, it might also be worth acquiring some trace data. On an otherwise idle system, do: # perf record -a --event=power:pstate_sample sleep 300 If pressed for time, your sleep time can be less than 5 minutes, but try to get at least 100 seconds. The resulting perf.data file will be too big to include as an on-list attachment, but send it (or them) to me off-list for post processing, and I'll report back. ... Doug