From: Roy Franz <roy.franz@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Julien Grall <julien.grall@linaro.org>, tim <tim@xen.org>,
xen-devel <xen-devel@lists.xen.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, 9 Sep 2014 09:54:00 -0700 [thread overview]
Message-ID: <CAFECyb87o5m_NbMCyNPYuRvh0H6OvCOvhaPzMkb=1rxTFvxyzw@mail.gmail.com> (raw)
In-Reply-To: <1410264963.8217.148.camel@kazak.uk.xensource.com>
On Tue, Sep 9, 2014 at 5:16 AM, Ian Campbell <Ian.Campbell@citrix.com> 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?
>
> Ian.
>
This patchset would be nice to have merged, as without it half of the
memory on the ARM v8 models (and I think Juno board as well)
is ignored. I've been running with with patchset for the last month
without problem.
Roy
next prev parent reply other threads:[~2014-09-09 16:54 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 [this message]
2014-09-09 20:59 ` Julien Grall
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='CAFECyb87o5m_NbMCyNPYuRvh0H6OvCOvhaPzMkb=1rxTFvxyzw@mail.gmail.com' \
--to=roy.franz@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=fu.wei@linaro.org \
--cc=julien.grall@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).