All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Brian Woods <brian.woods@amd.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	xen-devel@lists.xen.org, Wei Liu <wei.liu2@citrix.com>,
	Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH 1/3] mwait-idle: add support for using halt
Date: Thu, 28 Mar 2019 09:50:37 -0600	[thread overview]
Message-ID: <5C9CED4D0200007800222903@prv1-mh.provo.novell.com> (raw)
In-Reply-To: <18e167b2-b48c-7eb7-5aee-3fa63e15c116@amd.com>

>>> On 28.03.19 at 16:02, <Brian.Woods@amd.com> wrote:
> On 3/28/19 3:26 AM, Jan Beulich wrote:
>>>>> On 27.03.19 at 18:28, <Brian.Woods@amd.com> wrote:
>>> This also lacks some of the features of mwait-idle has and duplicates
>>> the limited functionality.
>> 
>> Would you mind clarifying the lack-of-features aspect? The
>> only difference to your patches that I can spot is that you set
>> .target_residency in the static tables. If the value wanted
>> for CC6 is really 1000 instead of the 800 the default
>> calculation would produce, then this would be easy enough
>> to arrange for in my variant of the patch as well.
>> 
>> The mwait-idle driver would not have been needed at all if all
>> BIOSes surfaced complete data via ACPI. Therefore, by
>> suitably populating tables, it ought to be possible in theory to
>> use just that one driver. It's just that for Intel CPUs we've
>> decided to follow what Linux does, hence the separate
>> driver. There's no Linux precedent for AMD (afaict).
> 
> target_residency and some of the checks IIRC.

Could you be more specific what checks you mean?

> Yes, but that's Linux and this is Xen.  Linux has an AML interpreter and 
> Xen does not.  That's an apple to oranges comparison.  You can't compare 
> Xen to Linux for this because the features they have and how they work 
> are different.

It's not a direct comparison, sure. But lack of suitable ACPI data
(known to happen in practice) would put Linux into exactly the
same position. If Linux accepted changes to the driver to use
entry methods other than MWAIT, I'd not be as opposed (but I'd
still question their reasoning then).

> Functionally, it should go in mwait-idle.

That's what I continue to question, seeing the HLT additions you're
making. Plus older families (which you didn't cover at all so far)
apparently would want HLT alone spelled out, which is even less
suitable for a driver with this name.

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-03-28 15:50 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-25 20:23 [PATCH 0/3] mwait support for AMD processors Woods, Brian
2019-02-25 20:23 ` [PATCH 1/3] mwait-idle: add support for using halt Woods, Brian
2019-02-27 13:47   ` Wei Liu
2019-02-27 18:23     ` Woods, Brian
2019-03-05 17:12       ` Wei Liu
2019-03-11 15:10         ` Woods, Brian
2019-03-13  9:35   ` Jan Beulich
2019-03-14 19:00     ` Woods, Brian
2019-03-15  8:37       ` Jan Beulich
2019-03-19 16:12         ` Woods, Brian
2019-03-19 16:58           ` Jan Beulich
2019-03-26 15:54           ` Jan Beulich
2019-03-26 21:56             ` Woods, Brian
2019-03-27 14:48               ` Jan Beulich
2019-03-27 17:28                 ` Woods, Brian
2019-03-28  8:26                   ` Jan Beulich
2019-03-28 15:02                     ` Woods, Brian
2019-03-28 15:50                       ` Jan Beulich [this message]
2019-03-28 16:26                         ` Woods, Brian
2019-02-25 20:23 ` [PATCH 2/3] mwait-idle: add support for AMD processors Woods, Brian
2019-03-13  9:42   ` Jan Beulich
2019-03-14 19:14     ` Woods, Brian
2019-02-25 20:24 ` [PATCH 3/3] mwait-idle: add enablement for AMD Naples and Rome Woods, Brian
2019-03-13  9:51   ` Jan Beulich
2019-03-14 19:29     ` Woods, Brian
2019-03-15  8:54       ` Jan Beulich
2019-03-19 15:59         ` Woods, Brian
2019-03-19 17:01           ` Jan Beulich
2019-02-26 10:49 ` [PATCH 0/3] mwait support for AMD processors Jan Beulich
2019-02-26 16:25   ` Woods, Brian
2019-02-26 16:37     ` Jan Beulich
2019-02-26 16:54       ` Woods, Brian
2019-02-27  8:51         ` Jan Beulich
2019-02-27 16:54           ` Woods, Brian

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=5C9CED4D0200007800222903@prv1-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=brian.woods@amd.com \
    --cc=roger.pau@citrix.com \
    --cc=wei.liu2@citrix.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.