All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ross Lagerwall <ross.lagerwall@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Liu Jinsong <jinsong.liu@alibaba-inc.com>,
	Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH v3 1/3] x86: Allow limiting the max C-state sub-state
Date: Wed, 23 Jul 2014 13:56:45 +0100	[thread overview]
Message-ID: <53CFB10D.7050800@citrix.com> (raw)
In-Reply-To: <53CF819C0200007800024F3A@mail.emea.novell.com>

On 07/23/2014 08:34 AM, Jan Beulich wrote:
>>>> On 07.07.14 at 17:14, <ross.lagerwall@citrix.com> wrote:
>> max_csubstate is implemented in the same way as max_cstate.  However,
>> given the states in the Bay Trail patch (specifically C6N-BYT and
>> C6S-BYT), this is clearly insufficient.
>> How do you think max_csubstate should limit the substate? Should it be
>> something like a max_csubstate = 2 permits the first and second substates?
>
> It's not at all clear to me how to properly translate the CPU internal
> state identifiers to/from command line option values, in a forward
> compatible manner.
>

Well, given that Xen treats the cpuidle_state array as a linear sequence 
of states, and they are ordered by exit latency/target residency, one 
approach is to have the command-line parameters control how deep down 
into the state array the processor is allowed to travel, as was my first 
approach. I know you rejected this before because it was 
hardware-specific and broke the notion of a C-state but I still feel 
it's the simplest solution given that any other way of mapping to CPU 
internal states is likely to be more complex and even more hardware 
dependent...

Regards
-- 
Ross Lagerwall

  reply	other threads:[~2014-07-23 12:56 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-23 11:09 [PATCH v3 0/3] Support controlling the max C-state sub-state Ross Lagerwall
2014-06-23 11:09 ` [PATCH v3 1/3] x86: Allow limiting " Ross Lagerwall
2014-06-25 12:37   ` Jan Beulich
2014-06-25 15:52     ` Ross Lagerwall
2014-06-26 13:38       ` Jan Beulich
2014-07-07 15:14         ` Ross Lagerwall
2014-07-23  7:34           ` Jan Beulich
2014-07-23 12:56             ` Ross Lagerwall [this message]
2014-06-23 11:09 ` [PATCH v3 2/3] tools/libxc: Alow controlling " Ross Lagerwall
2014-06-23 15:43   ` [PATCH v3A 2/3] tools/libxc: allow " Jan Beulich
2014-06-23 16:00     ` Ross Lagerwall
2014-06-27 15:02     ` Ian Campbell
2014-06-27 15:25       ` Jan Beulich
2014-06-27 15:26         ` Ian Campbell
2014-06-23 11:09 ` [PATCH v3 3/3] xenpm: Allow " Ross Lagerwall
2014-06-27 15:03   ` Ian Campbell

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=53CFB10D.7050800@citrix.com \
    --to=ross.lagerwall@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=jinsong.liu@alibaba-inc.com \
    --cc=xen-devel@lists.xen.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 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.