From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752867AbbJGJ77 (ORCPT ); Wed, 7 Oct 2015 05:59:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47627 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750916AbbJGJ76 (ORCPT ); Wed, 7 Oct 2015 05:59:58 -0400 Message-ID: <5614ED1C.8070709@redhat.com> Date: Wed, 07 Oct 2015 05:59:56 -0400 From: Prarit Bhargava User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Doug Smythies CC: "'Kristen Carlson Accardi'" , linux-kernel@vger.kernel.org, "'Viresh Kumar'" , linux-pm@vger.kernel.org, "'Rafael J. Wysocki'" Subject: Re: [PATCH] cpufreq, intel_pstate, set max_sysfs_pct and min_sysfs_pct on governor switch References: <1444168147-17812-1-git-send-email-prarit@redhat.com> <1755198.JNkaHg87IV@vostro.rjw.lan> <1594304.lVcRDcB3yL@vostro.rjw.lan> <002701d100cc$98cb8c60$ca62a520$@net> In-Reply-To: <002701d100cc$98cb8c60$ca62a520$@net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/07/2015 02:51 AM, Doug Smythies wrote: > > And before patch I get, using primitives and not cpupower: > Executive Summary: Everything works fine (or at least as I thought it was supposed to). > > root@s15:/home/doug/temp# grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:powersave > ... > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor:powersave > root@s15:/home/doug/temp# grep . /sys/devices/system/cpu/intel_pstate/*_perf_* > /sys/devices/system/cpu/intel_pstate/max_perf_pct:100 > /sys/devices/system/cpu/intel_pstate/min_perf_pct:42 > root@s15:/home/doug/temp# echo 50 > /sys/devices/system/cpu/intel_pstate/min_perf_pct > root@s15:/home/doug/temp# echo 80 > /sys/devices/system/cpu/intel_pstate/max_perf_pct > root@s15:/home/doug/temp# grep . /sys/devices/system/cpu/intel_pstate/*_perf_* > /sys/devices/system/cpu/intel_pstate/max_perf_pct:80 > /sys/devices/system/cpu/intel_pstate/min_perf_pct:50 > root@s15:/home/doug/temp# for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "performance" > $file; done > root@s15:/home/doug/temp# grep . /sys/devices/system/cpu/intel_pstate/*_perf_* > /sys/devices/system/cpu/intel_pstate/max_perf_pct:100 > /sys/devices/system/cpu/intel_pstate/min_perf_pct:100 > root@s15:/home/doug/temp# grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:performance The switch has to be from performance to powersave. Switch again and you'll see the problem. I can also reproduce this without using 'cpupower'. P.