xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Ian Campbell <Ian.Campbell@eu.citrix.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH 1/2] hvmloader: also cover PCI MMIO ranges above 4G with UC MTRR ranges
Date: Wed, 21 May 2014 15:05:22 +0100	[thread overview]
Message-ID: <537CCEC2020000780001491D@mail.emea.novell.com> (raw)
In-Reply-To: <1400675073.4856.46.camel@kazak.uk.xensource.com>

>>> On 21.05.14 at 14:24, <Ian.Campbell@eu.citrix.com> wrote:
> On Mon, 2014-05-19 at 14:12 +0100, Jan Beulich wrote:
>> @@ -163,6 +176,17 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, 
>>                  Add(MMIN, MLEN, MMAX)
>>                  Subtract(MMAX, One, MMAX)
>>  
>> +                CreateQWordField(PRT0, \_SB.PCI0._CRS._Y02._MIN, HMIN)
>> +                CreateQWordField(PRT0, \_SB.PCI0._CRS._Y02._MAX, HMAX)
>> +                CreateQWordField(PRT0, \_SB.PCI0._CRS._Y02._LEN, HLEN)
>> +
>> +                Store(\_SB.HMIN, HMIN)
>> +                Store(\_SB.HLEN, HLEN)
>> +                Add(HMIN, HLEN, HMAX)
>> +                If(LOr(HMIN, HLEN)) {
>> +                    Subtract(HMAX, One, HMAX)
>> +                }
> 
> This is (unlike the low version) conditional because HLEN might be 0?

Yes.

> Is the fact that _Y02 might continue to contain all zeroes OK?

Yes, it is - for Linux at least things end up being slightly wrong
(in that the region then gets treated as disabled rather than absent)
when doing the subtraction of 1 unconditionally.

Additionally I have a physical system where such an empty range (all
zeros) exists, which I take as additional proof that this is okay.

Jan

  reply	other threads:[~2014-05-21 14:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19 13:02 hvmloader: fix memory type handling Jan Beulich
2014-05-19 13:12 ` [PATCH 1/2] hvmloader: also cover PCI MMIO ranges above 4G with UC MTRR ranges Jan Beulich
2014-05-21 12:24   ` Ian Campbell
2014-05-21 14:05     ` Jan Beulich [this message]
2014-05-19 13:13 ` [PATCH 2/2] hvmloader: PA range 0xfc000000-0xffffffff should be UC Jan Beulich
2014-05-21 12:26   ` Ian Campbell
2014-05-21 14:02     ` Jan Beulich

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=537CCEC2020000780001491D@mail.emea.novell.com \
    --to=jbeulich@suse.com \
    --cc=Ian.Campbell@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.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;
as well as URLs for NNTP newsgroup(s).