All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 177171] New: Reduced frequency window for conservative governor
@ 2016-10-10 15:43 bugzilla-daemon
  2016-10-10 15:45 ` [Bug 177171] " bugzilla-daemon
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bugzilla-daemon @ 2016-10-10 15:43 UTC (permalink / raw)
  To: linux-pm

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

            Bug ID: 177171
           Summary: Reduced frequency window for conservative governor
           Product: Power Management
           Version: 2.5
    Kernel Version: 4.8
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: cpufreq
          Assignee: linux-pm@vger.kernel.org
          Reporter: aleksey@rybalkin.org
        Regression: No

Hello.

Since 4.8 the conservative governor has a reduced frequency window on my
machine (ThinkPad X250), despite correct values for scaling_{min,max}_freq

$ cat /sys/devices/system/cpu/cpufreq/policy0/scaling_{min,max}_freq
500000
2200000

The actual window became from 2000000 to 2200000 with accordingly more heating
and more cpu fan activations, which is not optimal.

I have bisected the problem to this commit: 

commit d352cf47d93e39494b44b792cca8d35a3a0bd9b3
Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Date:   Mon Jun 13 23:33:49 2016 +0200

    cpufreq: conservative: Do not use transition notifications

    The conservative governor registers a transition notifier so it
    can update its internal requested_freq value if it falls out of the
    policy->min...policy->max range, but requested_freq is not really
    necessary.

    That value is used to track the frequency requested by the governor
    previously, but policy->cur can be used instead of it and then the
    governor will not have to worry about updating the tracked value when
    the current frequency changes independently (for example, as a result
    of min or max changes).

    Accodringly, drop requested_freq from struct cs_policy_dbs_info
    and modify cs_dbs_timer() to use policy->cur instead of it.
    While at it, notice that __cpufreq_driver_target() clamps its
    target_freq argument between policy->min and policy->max, so
    the callers of it don't have to do that and make additional
    changes in cs_dbs_timer() in accordance with that.

    After these changes the transition notifier used by the conservative
    governor is not necessary any more, so drop it, which also makes it
    possible to drop the struct cs_governor definition and simplify the
    code accordingly.

    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

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

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

* [Bug 177171] Reduced frequency window for conservative governor
  2016-10-10 15:43 [Bug 177171] New: Reduced frequency window for conservative governor bugzilla-daemon
@ 2016-10-10 15:45 ` bugzilla-daemon
  2016-10-10 17:40 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2016-10-10 15:45 UTC (permalink / raw)
  To: linux-pm

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

--- Comment #1 from Aleksey Rybalkin <aleksey@rybalkin.org> ---
Created attachment 241331
  --> https://bugzilla.kernel.org/attachment.cgi?id=241331&action=edit
My kernel config

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

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

* [Bug 177171] Reduced frequency window for conservative governor
  2016-10-10 15:43 [Bug 177171] New: Reduced frequency window for conservative governor bugzilla-daemon
  2016-10-10 15:45 ` [Bug 177171] " bugzilla-daemon
@ 2016-10-10 17:40 ` bugzilla-daemon
  2016-10-10 20:38 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2016-10-10 17:40 UTC (permalink / raw)
  To: linux-pm

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

--- Comment #2 from Aleksey Rybalkin <aleksey@rybalkin.org> ---
Also,
git revert d352cf47d93e39494b44b792cca8d35a3a0bd9b3
appears to fix the problem on 4.8.1. So it is definitely this commit.

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

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

* [Bug 177171] Reduced frequency window for conservative governor
  2016-10-10 15:43 [Bug 177171] New: Reduced frequency window for conservative governor bugzilla-daemon
  2016-10-10 15:45 ` [Bug 177171] " bugzilla-daemon
  2016-10-10 17:40 ` bugzilla-daemon
@ 2016-10-10 20:38 ` bugzilla-daemon
  2016-10-11  4:46 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2016-10-10 20:38 UTC (permalink / raw)
  To: linux-pm

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |rjw@rjwysocki.net,
                   |                            |viresh.kumar@linaro.org
         Regression|No                          |Yes

--- Comment #3 from Rafael J. Wysocki <rjw@rjwysocki.net> ---
Sorry for the breakage.

Do I understand correctly that the governor doesn't select frequencies below
2000000 now, although it did that before?

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

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

* [Bug 177171] Reduced frequency window for conservative governor
  2016-10-10 15:43 [Bug 177171] New: Reduced frequency window for conservative governor bugzilla-daemon
                   ` (2 preceding siblings ...)
  2016-10-10 20:38 ` bugzilla-daemon
@ 2016-10-11  4:46 ` bugzilla-daemon
  2016-10-11 21:22 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2016-10-11  4:46 UTC (permalink / raw)
  To: linux-pm

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

--- Comment #4 from Aleksey Rybalkin <aleksey@rybalkin.org> ---
Yes, that is correct.

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

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

* [Bug 177171] Reduced frequency window for conservative governor
  2016-10-10 15:43 [Bug 177171] New: Reduced frequency window for conservative governor bugzilla-daemon
                   ` (3 preceding siblings ...)
  2016-10-11  4:46 ` bugzilla-daemon
@ 2016-10-11 21:22 ` bugzilla-daemon
  2016-10-11 21:24 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2016-10-11 21:22 UTC (permalink / raw)
  To: linux-pm

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

--- Comment #5 from Rafael J. Wysocki <rjw@rjwysocki.net> ---
Created attachment 241561
  --> https://bugzilla.kernel.org/attachment.cgi?id=241561&action=edit
cpufreq: conservative: Fix next frequency selection

Does this patch make any difference?

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

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

* [Bug 177171] Reduced frequency window for conservative governor
  2016-10-10 15:43 [Bug 177171] New: Reduced frequency window for conservative governor bugzilla-daemon
                   ` (4 preceding siblings ...)
  2016-10-11 21:22 ` bugzilla-daemon
@ 2016-10-11 21:24 ` bugzilla-daemon
  2016-10-12  6:50 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2016-10-11 21:24 UTC (permalink / raw)
  To: linux-pm

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #241561|0                           |1
        is obsolete|                            |

--- Comment #6 from Rafael J. Wysocki <rjw@rjwysocki.net> ---
Created attachment 241571
  --> https://bugzilla.kernel.org/attachment.cgi?id=241571&action=edit
cpufreq: conservative: Fix next frequency selection

Sorry, one piece was missing in the previous patch.

Please test this one instead.

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

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

* [Bug 177171] Reduced frequency window for conservative governor
  2016-10-10 15:43 [Bug 177171] New: Reduced frequency window for conservative governor bugzilla-daemon
                   ` (5 preceding siblings ...)
  2016-10-11 21:24 ` bugzilla-daemon
@ 2016-10-12  6:50 ` bugzilla-daemon
  2016-10-12 19:04 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2016-10-12  6:50 UTC (permalink / raw)
  To: linux-pm

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

--- Comment #7 from Aleksey Rybalkin <aleksey@rybalkin.org> ---
Yes, the patch fixes the issue. The frequencies are selected as expected.

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

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

* [Bug 177171] Reduced frequency window for conservative governor
  2016-10-10 15:43 [Bug 177171] New: Reduced frequency window for conservative governor bugzilla-daemon
                   ` (6 preceding siblings ...)
  2016-10-12  6:50 ` bugzilla-daemon
@ 2016-10-12 19:04 ` bugzilla-daemon
  2016-10-12 20:05 ` bugzilla-daemon
  2016-10-14 23:43 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2016-10-12 19:04 UTC (permalink / raw)
  To: linux-pm

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED

--- Comment #8 from Rafael J. Wysocki <rjw@rjwysocki.net> ---
OK, thanks!

I'll submit it to the mailing lists, then.

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

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

* [Bug 177171] Reduced frequency window for conservative governor
  2016-10-10 15:43 [Bug 177171] New: Reduced frequency window for conservative governor bugzilla-daemon
                   ` (7 preceding siblings ...)
  2016-10-12 19:04 ` bugzilla-daemon
@ 2016-10-12 20:05 ` bugzilla-daemon
  2016-10-14 23:43 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2016-10-12 20:05 UTC (permalink / raw)
  To: linux-pm

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |PATCH_ALREADY_AVAILABLE

--- Comment #9 from Rafael J. Wysocki <rjw@rjwysocki.net> ---
Patch submitted: https://patchwork.kernel.org/patch/9373743/

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

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

* [Bug 177171] Reduced frequency window for conservative governor
  2016-10-10 15:43 [Bug 177171] New: Reduced frequency window for conservative governor bugzilla-daemon
                   ` (8 preceding siblings ...)
  2016-10-12 20:05 ` bugzilla-daemon
@ 2016-10-14 23:43 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2016-10-14 23:43 UTC (permalink / raw)
  To: linux-pm

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
         Resolution|PATCH_ALREADY_AVAILABLE     |CODE_FIX

--- Comment #10 from Rafael J. Wysocki <rjw@rjwysocki.net> ---
Merged as commit abb6627910a1e783c8e034b35b7c80e5e7f98f41:

http://git.kernel.org/cgit/linux/kernel/git/rafael/linux-pm.git/commit/?h=pm&id=abb6627910a1e783c8e034b35b7c80e5e7f98f41

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

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

end of thread, other threads:[~2016-10-14 23:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-10 15:43 [Bug 177171] New: Reduced frequency window for conservative governor bugzilla-daemon
2016-10-10 15:45 ` [Bug 177171] " bugzilla-daemon
2016-10-10 17:40 ` bugzilla-daemon
2016-10-10 20:38 ` bugzilla-daemon
2016-10-11  4:46 ` bugzilla-daemon
2016-10-11 21:22 ` bugzilla-daemon
2016-10-11 21:24 ` bugzilla-daemon
2016-10-12  6:50 ` bugzilla-daemon
2016-10-12 19:04 ` bugzilla-daemon
2016-10-12 20:05 ` bugzilla-daemon
2016-10-14 23:43 ` 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.