All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low
@ 2014-04-29 23:47 bugzilla-daemon
  2014-04-29 23:54 ` [Bug 75121] " bugzilla-daemon
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-04-29 23:47 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

            Bug ID: 75121
           Summary: Intel Pstate driver - powersave mode - CPU frequency
                    too low
           Product: Power Management
           Version: 2.5
    Kernel Version: 3.15rc3
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: cpufreq
          Assignee: cpufreq@vger.kernel.org
          Reporter: dsmythies@telus.net
        Regression: No

Until recently, the difference between the intel_pstate driver in performance
mode verses powersave mode was minimal to imperceptible. Now, the frequency
response (meaning the rate of load / noload on a CPU) is drastically different
than it used to be and often not even as good as the acpi-cpufreq driver in
ondemand mode.

This is a negative side effect from Commit fcb6a15c2e7e - intel_pstate: Take
core C0 time into account for core busy calculation.

I can revert to the same performance as previously for the intel_pstate driver
in powersave mode by changing one line in the code (kernel = 3.15rc3-doug on
the graphs). From this:

sample->core_pct_busy = mul_fp(core_pct, c0_pct);

to this:

sample->core_pct_busy = core_pct;

basically, reverting the commit.

There has been other bug reports and threads:
References:
https://bugzilla.kernel.org/show_bug.cgi?id=70941
https://bugzilla.kernel.org/show_bug.cgi?id=66581
https://lkml.org/lkml/2014/2/19/626

In a moment, I will add 3 attachment graphs that detail the issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
@ 2014-04-29 23:54 ` bugzilla-daemon
  2014-04-29 23:56 ` bugzilla-daemon
                   ` (24 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-04-29 23:54 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #1 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134311
  --> https://bugzilla.kernel.org/attachment.cgi?id=134311&action=edit
The phoronix ffmpeg test is an easy way to show the issue

Various kernels, showing the increase in test execution time as of and since
the commit referenced herein.

For reference some apci-cpufreq modes are included as is an intel_pstate
performance mode run.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
  2014-04-29 23:54 ` [Bug 75121] " bugzilla-daemon
@ 2014-04-29 23:56 ` bugzilla-daemon
  2014-04-29 23:59 ` bugzilla-daemon
                   ` (23 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-04-29 23:56 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #2 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134321
  --> https://bugzilla.kernel.org/attachment.cgi?id=134321&action=edit
CPU 7 frequency vs load. Turbo on. various kernels

This graph is more generic, and shows the CPU not ramping up in CPU frequency
as the load becomes significant.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
  2014-04-29 23:54 ` [Bug 75121] " bugzilla-daemon
  2014-04-29 23:56 ` bugzilla-daemon
@ 2014-04-29 23:59 ` bugzilla-daemon
  2014-04-30  0:08 ` bugzilla-daemon
                   ` (22 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-04-29 23:59 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #3 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134331
  --> https://bugzilla.kernel.org/attachment.cgi?id=134331&action=edit
CPU 7 frequency vs load / idle freqency. Turbo on. various kernels

This graph is also more generic and shows the frequency response (meaning the
load /idle frequency response) under constant load.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (2 preceding siblings ...)
  2014-04-29 23:59 ` bugzilla-daemon
@ 2014-04-30  0:08 ` bugzilla-daemon
  2014-05-02 14:25 ` bugzilla-daemon
                   ` (21 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-04-30  0:08 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #4 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134341
  --> https://bugzilla.kernel.org/attachment.cgi?id=134341&action=edit
The phoronix ffmpeg test graph again with one more data point

I forgot to add the results from my "doug" test kernel to the phoronix graph
before I posted it, so adding it now.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (3 preceding siblings ...)
  2014-04-30  0:08 ` bugzilla-daemon
@ 2014-05-02 14:25 ` bugzilla-daemon
  2014-05-02 23:42 ` bugzilla-daemon
                   ` (20 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-02 14:25 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

Dirk Brandewie <dirk.brandewie@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dirk.brandewie@gmail.com

--- Comment #5 from Dirk Brandewie <dirk.brandewie@gmail.com> ---
Hi Doug,

I am trying to get phoronix installed to reproduce this (without success so
far)

Could you run:
  perf record -a -c 1 -e power:pstate_sample phoronix-test-suite ffmpeg

And attach the output of:
  perf script

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (4 preceding siblings ...)
  2014-05-02 14:25 ` bugzilla-daemon
@ 2014-05-02 23:42 ` bugzilla-daemon
  2014-05-02 23:58 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-02 23:42 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #6 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134771
  --> https://bugzilla.kernel.org/attachment.cgi?id=134771&action=edit
output from perf script as requested

I had troubles with phoronix stuff also when I tried to run it under "perf
record". It seemed to think it needed to re-install and then I couldn't find
where the test profile was, so that I could change it to 1 run instead of the
default 3 (I typically run it 10 times, and always abort the first run because
it has an inconsistent run time due to the extra time needed to load the file,
which thereafter is cached).

In the end I ran this:

sudo /home/doug/bin/perf record -a -c 1 -e power:pstate_sample
phoronix-test-suite benchmark pts/ffmpeg

The output from "pref script" has been truncated to just one of the 3 tests.

Myself, I find it much easier to interpret pref data captured for the "consume"
program that was used to make the other graphs. I'll attach some of that data
also.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (5 preceding siblings ...)
  2014-05-02 23:42 ` bugzilla-daemon
@ 2014-05-02 23:58 ` bugzilla-daemon
  2014-05-03  0:03 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-02 23:58 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #7 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134781
  --> https://bugzilla.kernel.org/attachment.cgi?id=134781&action=edit
Perf data for Kernel 3.15RC3 CPU at 85% load at 200 Hertz load / noload
frequency.

Under these conditions, the CPU is never in the C0 state for an entire
intel_pstate sample time. In my opinion the C0 inclusion unduly biases the
target p-state downwards.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (6 preceding siblings ...)
  2014-05-02 23:58 ` bugzilla-daemon
@ 2014-05-03  0:03 ` bugzilla-daemon
  2014-05-03  0:05 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-03  0:03 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #8 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134791
  --> https://bugzilla.kernel.org/attachment.cgi?id=134791&action=edit
Perf data for Kernel 3.15RC3 CPU at 10% load at 200 Hertz load / noload
frequency.

Under these conditions, the CPU used to have started to ramp up in frequency.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (7 preceding siblings ...)
  2014-05-03  0:03 ` bugzilla-daemon
@ 2014-05-03  0:05 ` bugzilla-daemon
  2014-05-03  0:11 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-03  0:05 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #9 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134801
  --> https://bugzilla.kernel.org/attachment.cgi?id=134801&action=edit
Perf data for Kernel 3.15RC3-doug CPU at 10% load at 200 Hertz load / noload
frequency.

This time with the C0 inclusion removed

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (8 preceding siblings ...)
  2014-05-03  0:05 ` bugzilla-daemon
@ 2014-05-03  0:11 ` bugzilla-daemon
  2014-05-03  0:19 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-03  0:11 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #10 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134811
  --> https://bugzilla.kernel.org/attachment.cgi?id=134811&action=edit
Perf data for Kernel 3.15RC3 CPU at 0.5% load at 200 Hertz load / noload
frequency.

The purpose of this data is to show: Math seems to have underflowed or
something a couple of times; Where is all the data, there should be more
samples.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (9 preceding siblings ...)
  2014-05-03  0:11 ` bugzilla-daemon
@ 2014-05-03  0:19 ` bugzilla-daemon
  2014-05-03  0:47 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-03  0:19 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #11 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134821
  --> https://bugzilla.kernel.org/attachment.cgi?id=134821&action=edit
Perf data for Kernel 3.15RC3-doug2 CPU at 85% load at 200 Hertz load / noload
frequency.

For this one, I tried the following, which includes C0 but applied to core_pct
on a scale from min_perf_pct rather than from 0. However, it made no
difference, as the C0 inclusion still dominates.

static inline void intel_pstate_calc_busy(struct cpudata *cpu,
                                        struct sample *sample)
{
        int32_t core_pct;
        int32_t c0_pct;
        int32_t temp;

// need to figure out how to do fractional weight
#define C0_WEIGHT 1

        core_pct = div_fp(int_tofp((sample->aperf)),
                        int_tofp((sample->mperf)));
        core_pct = mul_fp(core_pct, int_tofp(100));
        FP_ROUNDUP(core_pct);

        c0_pct = div_fp(int_tofp(sample->mperf), int_tofp(sample->tsc));

        sample->freq = fp_toint(
                mul_fp(int_tofp(cpu->pstate.max_pstate * 1000), core_pct));

//      sample->core_pct_busy = core_pct;
//      sample->core_pct_busy = mul_fp(core_pct, c0_pct);
        temp = core_pct - limits.min_perf_pct;
        c0_pct = int_tofp(1) - mul_fp((int_tofp(1) - c0_pct),
int_tofp(C0_WEIGHT));
        temp = mul_fp(temp, c0_pct);
        sample->core_pct_busy = temp + limits.min_perf_pct;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (10 preceding siblings ...)
  2014-05-03  0:19 ` bugzilla-daemon
@ 2014-05-03  0:47 ` bugzilla-daemon
  2014-05-03  0:47 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-03  0:47 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

Doug Smythies <dsmythies@telus.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #134781|application/octet-stream    |text/plain
          mime type|                            |

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (11 preceding siblings ...)
  2014-05-03  0:47 ` bugzilla-daemon
@ 2014-05-03  0:47 ` bugzilla-daemon
  2014-05-03  3:49 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-03  0:47 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

Doug Smythies <dsmythies@telus.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #134811|application/octet-stream    |text/plain
          mime type|                            |

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (12 preceding siblings ...)
  2014-05-03  0:47 ` bugzilla-daemon
@ 2014-05-03  3:49 ` bugzilla-daemon
  2014-05-03  3:58 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-03  3:49 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #12 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134831
  --> https://bugzilla.kernel.org/attachment.cgi?id=134831&action=edit
CPU 7 frequency vs load. Turbo on. Modified C0 inclusion

There was a stupid mistake in the code change I made in the previous post. Here
it is again, fixed.

static inline void intel_pstate_calc_busy(struct cpudata *cpu,
                                        struct sample *sample)
{
        int32_t core_pct;
        int32_t c0_pct;
        int32_t temp;

// As a float with 6 FRAC_BITS ( 1 << FRAC_BITS / 4 )
#define C0_WEIGHT 16

        core_pct = div_fp(int_tofp((sample->aperf)),
                        int_tofp((sample->mperf)));
        core_pct = mul_fp(core_pct, int_tofp(100));
        FP_ROUNDUP(core_pct);

        c0_pct = div_fp(int_tofp(sample->mperf), int_tofp(sample->tsc));

        sample->freq = fp_toint(
                mul_fp(int_tofp(cpu->pstate.max_pstate * 1000), core_pct));

//      sample->core_pct_busy = core_pct;
//      sample->core_pct_busy = mul_fp(core_pct, c0_pct);
        temp = core_pct - int_tofp(limits.min_perf_pct);
        c0_pct = int_tofp(1) - mul_fp((int_tofp(1) - c0_pct), C0_WEIGHT);
        temp = mul_fp(temp, c0_pct);
        sample->core_pct_busy = temp + int_tofp(limits.min_perf_pct);
}

And the graph shows the effect, for C0_WEIGHT of 1 (Doug3) and 0.25 (Doug 4)

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (13 preceding siblings ...)
  2014-05-03  3:49 ` bugzilla-daemon
@ 2014-05-03  3:58 ` bugzilla-daemon
  2014-05-03  4:59 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-03  3:58 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #13 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134841
  --> https://bugzilla.kernel.org/attachment.cgi?id=134841&action=edit
The phoronix ffmpeg test graph again with the C0 weight 25% data point

Just showing some improvement in the phoronix ffmpeg test with the code mods
shown previously.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (14 preceding siblings ...)
  2014-05-03  3:58 ` bugzilla-daemon
@ 2014-05-03  4:59 ` bugzilla-daemon
  2014-05-03  5:00 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-03  4:59 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #14 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 134851
  --> https://bugzilla.kernel.org/attachment.cgi?id=134851&action=edit
CPU 7 frequency vs load / idle freqency. Turbo on. Modified C0 inclusionarious
kernels

Adding C0 weight 25% data to the previously posted load / idle frequency graph.
Actually, it turned out better than I thought it would.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (15 preceding siblings ...)
  2014-05-03  4:59 ` bugzilla-daemon
@ 2014-05-03  5:00 ` bugzilla-daemon
  2014-05-04 19:18 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-03  5:00 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

Doug Smythies <dsmythies@telus.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #134851|CPU 7 frequency vs load /   |CPU 7 frequency vs load /
        description|idle freqency. Turbo on.    |idle freqency. Turbo on.
                   |Modified C0 inclusionarious |Modified C0 inclusion.
                   |kernels                     |Various kernels

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (16 preceding siblings ...)
  2014-05-03  5:00 ` bugzilla-daemon
@ 2014-05-04 19:18 ` bugzilla-daemon
  2014-05-05 18:05 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-04 19:18 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #15 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 135151
  --> https://bugzilla.kernel.org/attachment.cgi?id=135151&action=edit
Just another method I tried. Phoronix ffmpeg test is as fast as performance
mode with this method.

Hi Dirk: Did you ever figure out for certain why some had the CPU freq remains
high after suspend issue? It remains unclear to me, and I do not know how to
even try to re-create here on my test computer.

References (some but not all):
https://bugzilla.kernel.org/show_bug.cgi?id=66581#c21
https://bugzilla.kernel.org/show_bug.cgi?id=66581#c26

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (17 preceding siblings ...)
  2014-05-04 19:18 ` bugzilla-daemon
@ 2014-05-05 18:05 ` bugzilla-daemon
  2014-05-05 18:52 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-05 18:05 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #16 from Dirk Brandewie <dirk.brandewie@gmail.com> ---
(In reply to Doug Smythies from comment #15)
> Created attachment 135151 [details]
> Just another method I tried. Phoronix ffmpeg test is as fast as performance
> mode with this method.
> 
> Hi Dirk: Did you ever figure out for certain why some had the CPU freq
> remains high after suspend issue? It remains unclear to me, and I do not
> know how to even try to re-create here on my test computer.
> 

I could make it happen occasionally on my ivy bridge laptop test system.

I think it have to the hardware coordination on the chip but I haven't
proven that.

> References (some but not all):
> https://bugzilla.kernel.org/show_bug.cgi?id=66581#c21
> https://bugzilla.kernel.org/show_bug.cgi?id=66581#c26

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (18 preceding siblings ...)
  2014-05-05 18:05 ` bugzilla-daemon
@ 2014-05-05 18:52 ` bugzilla-daemon
  2014-05-08 22:19 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-05 18:52 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #17 from Doug Smythies <dsmythies@telus.net> ---
(In reply to Dirk Brandewie from comment #16)
> (In reply to Doug Smythies from comment #15)
> > Hi Dirk: Did you ever figure out for certain why some had the CPU freq
> > remains high after suspend issue? It remains unclear to me, and I do not
> > know how to even try to re-create here on my test computer.
> > 
> 
> I could make it happen occasionally on my ivy bridge laptop test system.
> 
> I think it have to the hardware coordination on the chip but I haven't
> proven that.
>  

I have figured out how to "suspend" my test computer. I have tried a few times,
but so far haven't been able to re-create the issue. I wanted to be able to
re-create the issue, as a base line reference, so that I would know how far I
can adjust C0_WEIGHT or C0_MINIMUM and still have the issue never occur.

It still doesn't make sense to me that the intel_pstate driver would work fine
before but not after a "suspend". If the root issue is some hardware
coordination on the chip, then shouldn't that be fixed (if possible via
whatever re-initialization) rather than messing with the intel_pstate servo
loop? If it is not some hardware coordination on the chip, but rather due to
some flaw in the servo loop, then we should be able to re-create the issue
without any intervening "suspend".

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (19 preceding siblings ...)
  2014-05-05 18:52 ` bugzilla-daemon
@ 2014-05-08 22:19 ` bugzilla-daemon
  2014-05-08 22:21 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-08 22:19 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #18 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 135491
  --> https://bugzilla.kernel.org/attachment.cgi?id=135491&action=edit
CPU 7 frequency vs load. Turbo on. Dirk patch applied

Reference: https://lkml.org/lkml/2014/5/8/574

For the Phoronix ffmpeg test I get the exact same numbers as Dirk (we have the
same CPU) so am not posting a new graph.

For CPU 7 freq. Vs. load, this is a new graph with Dirk's patches applied (I
have removed some previous test data to reduce clutter).

I'll post a new CPU 7 frequency vs load / idle frequency in a moment.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (20 preceding siblings ...)
  2014-05-08 22:19 ` bugzilla-daemon
@ 2014-05-08 22:21 ` bugzilla-daemon
  2014-05-08 22:26 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-08 22:21 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #19 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 135501
  --> https://bugzilla.kernel.org/attachment.cgi?id=135501&action=edit
CPU 7 frequency vs load / idle freqency. Turbo on. Dirk patch applied.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (21 preceding siblings ...)
  2014-05-08 22:21 ` bugzilla-daemon
@ 2014-05-08 22:26 ` bugzilla-daemon
  2014-05-28 21:22 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-08 22:26 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #20 from Dirk Brandewie <dirk.brandewie@gmail.com> ---
Fix sent to LKML also the fix to FP_ROUNDUP() macro
https://lkml.org/lkml/2014/5/8/574

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (22 preceding siblings ...)
  2014-05-08 22:26 ` bugzilla-daemon
@ 2014-05-28 21:22 ` bugzilla-daemon
  2014-06-03 20:45 ` bugzilla-daemon
  2015-07-21 19:28 ` bugzilla-daemon
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-05-28 21:22 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

--- Comment #21 from Doug Smythies <dsmythies@telus.net> ---
Created attachment 137641
  --> https://bugzilla.kernel.org/attachment.cgi?id=137641&action=edit
Just showing Performance mode CPU frequency response curve

The graph just shows performance mode response curve (done twice) with
powersave, but min set to 100%, response curve (done twice) with normal
powersave mode, but the C0 reduced or removed (two versions).

I mentioned I would post this graph in
http://www.spinics.net/lists/cpufreq/msg10167.html

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (23 preceding siblings ...)
  2014-05-28 21:22 ` bugzilla-daemon
@ 2014-06-03 20:45 ` bugzilla-daemon
  2015-07-21 19:28 ` bugzilla-daemon
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2014-06-03 20:45 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

Rafael J. Wysocki <rjw@rjwysocki.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rjw@rjwysocki.net
         Resolution|---                         |PATCH_ALREADY_AVAILABLE

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Bug 75121] Intel Pstate driver - powersave mode - CPU frequency too low
  2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
                   ` (24 preceding siblings ...)
  2014-06-03 20:45 ` bugzilla-daemon
@ 2015-07-21 19:28 ` bugzilla-daemon
  25 siblings, 0 replies; 27+ messages in thread
From: bugzilla-daemon @ 2015-07-21 19:28 UTC (permalink / raw)
  To: cpufreq

https://bugzilla.kernel.org/show_bug.cgi?id=75121

Len Brown <lenb@kernel.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
                 CC|                            |lenb@kernel.org

--- Comment #22 from Len Brown <lenb@kernel.org> ---
re: comment #20

There is no longer an FP_ROUNDUP macro in intel_pstate.c
It was removed here:

commit f0fe3cd7e12d8290c82284b5c8aee723cbd0371a
Author: Dirk Brandewie <dirk.j.brandewie@intel.com>
Date:   Thu May 29 09:32:23 2014 -0700

    intel_pstate: Correct rounding in busy calculation

which shipped in Linux-3.15

Please re-open this report if the issue here was not fixed by that change.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2015-07-21 19:28 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-29 23:47 [Bug 75121] New: Intel Pstate driver - powersave mode - CPU frequency too low bugzilla-daemon
2014-04-29 23:54 ` [Bug 75121] " bugzilla-daemon
2014-04-29 23:56 ` bugzilla-daemon
2014-04-29 23:59 ` bugzilla-daemon
2014-04-30  0:08 ` bugzilla-daemon
2014-05-02 14:25 ` bugzilla-daemon
2014-05-02 23:42 ` bugzilla-daemon
2014-05-02 23:58 ` bugzilla-daemon
2014-05-03  0:03 ` bugzilla-daemon
2014-05-03  0:05 ` bugzilla-daemon
2014-05-03  0:11 ` bugzilla-daemon
2014-05-03  0:19 ` bugzilla-daemon
2014-05-03  0:47 ` bugzilla-daemon
2014-05-03  0:47 ` bugzilla-daemon
2014-05-03  3:49 ` bugzilla-daemon
2014-05-03  3:58 ` bugzilla-daemon
2014-05-03  4:59 ` bugzilla-daemon
2014-05-03  5:00 ` bugzilla-daemon
2014-05-04 19:18 ` bugzilla-daemon
2014-05-05 18:05 ` bugzilla-daemon
2014-05-05 18:52 ` bugzilla-daemon
2014-05-08 22:19 ` bugzilla-daemon
2014-05-08 22:21 ` bugzilla-daemon
2014-05-08 22:26 ` bugzilla-daemon
2014-05-28 21:22 ` bugzilla-daemon
2014-06-03 20:45 ` bugzilla-daemon
2015-07-21 19:28 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.