xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: stefano.stabellini@eu.citrix.com, tim@xen.org,
	xen-devel@lists.xen.org, Roy Franz <roy.franz@linaro.org>,
	Jan Beulich <JBeulich@suse.com>, Fu Wei <fu.wei@linaro.org>
Subject: Re: [PATCH RFC 2/2] xen: arm: Enable physical address space compression (PDX) on arm64
Date: Tue, 09 Sep 2014 13:59:37 -0700	[thread overview]
Message-ID: <540F6A39.5010600@linaro.org> (raw)
In-Reply-To: <1410264963.8217.148.camel@kazak.uk.xensource.com>

Hi Ian,

On 09/09/14 05:16, Ian Campbell wrote:
> On Mon, 2014-09-08 at 17:32 -0700, Julien Grall wrote:
>>
>> On 04/09/14 09:40, Ian Campbell wrote:
>>>> I don't really understand what the function is achieving. Could you
>>>> explain a bit more?
>>>
>>> This is largely derived from an x86 equivalent (see srat_parse_regions,
>>> they are different because one walks the device tree RAM and the other
>>> the SRAT), so I hope Jan will correct me if I'm wrong about the
>>> following:
>>>
>>> What it is doing is calculating a mask which corresponds to to the bits
>>> that are active address bits across the valid memory addresses, i.e. a
>>> bit which is necessary to unambiguously represent some valid address is
>>> 1 and a bit which is the same for all addresses is 0.
>>>
>>> Using that mask we then find a large run of zeroes from he middle of the
>>> mask which by construction do not actually get used for addressing. By
>>> omitting those bits from the PFN we obtain a PDX which is the
>>> (losslessly) compressed form.
>>
>> Many thank for the explanation!
>
> No problem. Do you have an opinion on the patch now?

I don't have any things to add for now on this patch. The ARM64 part 
looks good to me. I'm waiting to see the ARM32 one.

Regards,

-- 
Julien Grall

  parent reply	other threads:[~2014-09-09 20:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a0063c96455a2512091f40df5b7b8ec5bbef4b13.1406804493.git.ian.campbell@citrix.com>
2014-07-31 11:01 ` [PATCH RFC 2/2] xen: arm: Enable physical address space compression (PDX) on arm64 Ian Campbell
     [not found] ` <53da2211.8511ec0a.4375.46ddSMTPIN_ADDED_MISSING@mx.google.com>
2014-08-06  3:04   ` Roy Franz
2014-08-07 16:03   ` Julien Grall
2014-09-04 16:40     ` Ian Campbell
2014-09-05  8:20       ` Jan Beulich
2014-09-05  8:26         ` Ian Campbell
2014-09-09  0:32       ` Julien Grall
2014-09-09 12:16         ` Ian Campbell
2014-09-09 16:54           ` Roy Franz
2014-09-09 20:59           ` Julien Grall [this message]
2014-09-10  9:36             ` 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=540F6A39.5010600@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=fu.wei@linaro.org \
    --cc=roy.franz@linaro.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --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 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).