public inbox for cpufreq@vger.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: cpufreq@vger.kernel.org
Subject: [Bug 60839] scaling_max_freq cannot be set to values larger than bios_limit
Date: Tue, 10 Sep 2013 09:46:17 +0000	[thread overview]
Message-ID: <bug-60839-12968-RDStYSFNoT@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-60839-12968@https.bugzilla.kernel.org/>

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

Sven Köhler <sven.koehler@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from Sven Köhler <sven.koehler@gmail.com> ---
(In reply to Lan Tianyu from comment #1)
> Hi:
>      This sounds like a user space issue. Bios limit will rise after
> plugging/unplugging AC and laptop-mode-tools also should update
> scaling_max_freq. Cpufreq core schedules freq scope according user space
> configuration. If user space tool doesn't extend the scope according bios
> limit after plugging/unplugging AC, the scope will keep low cpufreq.

First of all, does the kernel provide any hook to run a script every time
bios_limit changes or do you expect userspace to do polling?

Second, you can't be serious that the sysfs interface should remain as
inconsistent as it is now. Clearly, the internal state of scaling_max_freq and
bios_limit can be one, where scaling_max_freq is larger than bios_limit. This
is very clear since I observed that (unless userspace tries to change
scaling_max_freq) the value of scaling_max_freq will increase as bios_limit
increases. At time when bios_limit is low, userspace cannot even find out about
the true state of scaling_max_freq (which is larger than bios_limit) as the
value obtainable via sysfs is always clipped. Obviously, knowing that such a
state exists, it is dubious why it can't be configured.

Thirdly, I'd really like know the rational behind the decision to that 
a) userspace should never be able to observe, that scaling_max_freq is actually
kernel internally larger than bios_limit 
b) userspace should never be able to set scaling_max_freq to a value larger
than bios_limit

IMHO, both (a) and (b) are wrong, in the sense that there is no good reason in
favour of (a) and (b) and many reasons against (a) and (b). A very strong
reason against (a) is the very simple fact that userspace cannot tell whether
the current maximum CPU frequency is limited by the BIOS or the value of
scaling_max_freq.

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

  parent reply	other threads:[~2013-09-10  9:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-03 12:47 [Bug 60839] New: scaling_max_freq cannot be set to values larger than bios_limit bugzilla-daemon
2013-09-10  8:28 ` [Bug 60839] " bugzilla-daemon
2013-09-10  8:36 ` bugzilla-daemon
2013-09-10  9:46 ` bugzilla-daemon [this message]
2013-09-10 12:45 ` bugzilla-daemon
2013-09-10 13:15 ` bugzilla-daemon
2013-09-10 14:19 ` bugzilla-daemon
2013-09-11 19:49 ` bugzilla-daemon
2013-09-12 14:07 ` bugzilla-daemon
2013-09-12 14:49 ` bugzilla-daemon
2013-09-18  3:27 ` bugzilla-daemon
2013-10-14  7:58 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-60839-12968-RDStYSFNoT@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --cc=cpufreq@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox