From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>,
Julien Grall <julien.grall@citrix.com>
Cc: xen-users <xen-users@lists.xen.org>,
xen-devel <xen-devel@lists.xen.org>,
"stefano.stabellini@citrix.com" <stefano.stabellini@citrix.com>,
Jeenu Viswambharan <Jeenu.Viswambharan@arm.com>
Subject: Re: [Xen-users] ARM: Xen on Vexpress
Date: Wed, 18 Jun 2014 09:40:59 +0100 [thread overview]
Message-ID: <53A1509B.3070108@linaro.org> (raw)
In-Reply-To: <1403080197.25771.45.camel@kazak.uk.xensource.com>
On 18/06/14 09:29, Ian Campbell wrote:
> On Tue, 2014-06-17 at 18:50 +0100, Julien Grall wrote:
>> (CCing Xen-devel)
>>
>> On 06/16/2014 05:32 PM, Jeenu Viswambharan wrote:
>>> On Thu, Jun 12, 2014 at 15:50:02, Jeenu Viswambharan wrote:
>>>>>> - What does DOM0 see as its PC at entry?
>>>>>
>>>>> The load address of the kernel image, since the zImage protocol
>>>>> requires us to enter the kernel at that offset.
>>>>
>>>> I managed to break at eret before guest entry, and the PC is
>>>> 0xafc00000 itself. It does fail to boot bare metal too from that
>>>> address. I'll see if I can find what's going wrong.
>>>
>>> I've been told that loading Linux at that high an offset from the memory
>>> base wouldn't work after all, even on bare metal. I therefore set
>>> kernel_addr_r to 0x80008000, which makes Xen load DOM0 at 0x8fc00000. I
>>> can see Linux starting to boot from this address on bare metal, but With
>>> Xen I'm seeing "uncompression error" (not printed on to the console, but
>>> through debugger inspection).
>>>
>>> I haven't pinned down why exactly it's throwing this. While I'm at it,
>>> I'd appreciate any helpful pointers.
>>
>> Did you try to use CONFIG_VMSPLIT_3G rather than CONFIG_VMSPLIT_2G as I
>> suggested last week?
>>
>> Using CONFIG_VMSPLIT_3G works correctly with 3.15. It looks like another
>> issue in the pa - virt delta when it's positive.
>>
>> IIRC, it's because linux is assuming that delta is always negative (see
>> comment on __PV_BITS_31_24 in arch/arm/include/asm/memory.h).
>>
>> At first glance, handling positive offset will be hard because, their
>> are rely on the compiler to provide the right layout for the
>> instruction. Positive number is not encoded the same way. I will have to
>> spend a bit more time to fully understand this code.
>>
>> With Ian multiple bank support patch for DOM0, I think we can safely
>> assume that the delta will (nearly?) always be the same.
>
> That would be a coincidence of the implementation, not a guarantee which
> we would make.
>
> If there is an issue with the pa - virt delta handling then we should
> raise it with Linux upstream.
I will raise again the issue to Linux. But I start to think this is a
restriction by Linux but I can't find a clear comment about it. Not much
(maybe none of) ARM platform has the start physical address very high.
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-06-18 8:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <B69BE294631500448B6D3B9936E1743202D770C0CFE1@GEORGE.Emea.Arm.com>
[not found] ` <538F05E4.9040101@linaro.org>
[not found] ` <B69BE294631500448B6D3B9936E1743202D770C0D03B@GEORGE.Emea.Arm.com>
[not found] ` <538F1C49.7060704@linaro.org>
[not found] ` <B69BE294631500448B6D3B9936E1743202D770C0D04B@GEORGE.Emea.Arm.com>
[not found] ` <539083C6.7050200@linaro.org>
[not found] ` <B69BE294631500448B6D3B9936E1743202D77121B48B@GEORGE.Emea.Arm.com>
[not found] ` <1402496172.16332.27.camel@kazak.uk.xensource.com>
[not found] ` <B69BE294631500448B6D3B9936E1743202D77121B49C@GEORGE.Emea.Arm.com>
[not found] ` <1402499446.16332.36.camel@kazak.uk.xensource.com>
[not found] ` <B69BE294631500448B6D3B9936E1743202D77121B4AA@GEORGE.Emea.Arm.com>
[not found] ` <1402503889.16332.43.camel@kazak.uk.xensource.com>
[not found] ` <B69BE294631500448B6D3B9936E1743202D77121B4AE@GEORGE.Emea.Arm.com>
[not found] ` <1402504562.16332.49.camel@kazak.uk.xensource.com>
[not found] ` <B69BE294631500448B6D3B9936E1743202D77121B4F7@GEORGE.Emea.Arm.com>
[not found] ` <B69BE294631500448B6D3B99 36E1743202D77121B4F7@GEORGE.Emea.Arm.com>
[not found] ` <1402568263.9177.29.camel@kazak.uk.xensource.com>
[not found] ` <B69BE294631500448B6D3B9936E1743202D77121B687@GEORGE.Emea.Arm.com>
2014-06-17 17:50 ` [Xen-users] ARM: Xen on Vexpress Julien Grall
2014-06-18 8:29 ` Ian Campbell
2014-06-18 8:40 ` Julien Grall [this message]
2014-06-18 8:56 ` 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=53A1509B.3070108@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=Jeenu.Viswambharan@arm.com \
--cc=julien.grall@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=xen-devel@lists.xen.org \
--cc=xen-users@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.