From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>,
Oleksandr Dmytryshyn <oleksandr.dmytryshyn@globallogic.com>
Cc: Julien Grall <julien.grall@citrix.com>,
Stefano Stabellini <stefano.stabellini@citrix.com>,
andrii.anisov@ti.com, xen-devel@lists.xen.org
Subject: Re: [PATCH v2 0/2] xen: arm: introduce a function and flush dcache while preparing the device tree for Dom0
Date: Wed, 27 Nov 2013 13:50:18 +0000 [thread overview]
Message-ID: <5295F89A.9070005@linaro.org> (raw)
In-Reply-To: <1385559013.23112.190.camel@kazak.uk.xensource.com>
On 11/27/2013 01:30 PM, Ian Campbell wrote:
> On Tue, 2013-11-26 at 12:54 +0200, Oleksandr Dmytryshyn wrote:
>> Currently we use OMAP5 ES2.0 Panda5 board to work with the hypervisor.
>>
>> Without flushing dcache the hypervisor couldn't copy the device tree
>> correctly when booting the kernel dom0 Image (memory with device tree
>> is corrupted). As the result - when we try to load the kernel dom0
>> Image - dom0 hungs frequently. This issue is not reproduced with the
>> kernel dom0 zImage because the zImage decompressor code flushes all
>> dcache before starting the decompressed kernel Image. When the
>> hypervisor loads the kernel image or initrd, this memory region
>> isn't corrupted because the hypervisor code flushes the dcache.
>>
>> Oleksandr Dmytryshyn (2):
>> xen: arm: introduce raw_copy_to_guest_flush_dcache() function
>> xen: arm: flush dcache while preparing the device tree for Dom0
>
> Both of these look good to me as a fix for the dom0 case:
> Acked-by: Ian Campbell <ian.campbell@citrix.com>
I'm not convince that is enough to fix dom0 data cache issue. What about
the initrd?
For the zImage, I took a look to the decompressor code
(arch/arm/boot/compressed/head.S) and I didn't see any data cache flush
on the first instruction. So the issue can also unlikely happen with the
zImage.
Instead of introduce a new helper I would prefer modify the existing
raw_copy_* helpers to check if we are currently building the domain.
--
Julien Grall
next prev parent reply other threads:[~2013-11-27 13:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-26 10:54 [PATCH v2 0/2] xen: arm: introduce a function and flush dcache while preparing the device tree for Dom0 Oleksandr Dmytryshyn
2013-11-26 10:54 ` [PATCH v2 1/2] xen: arm: introduce raw_copy_to_guest_flush_dcache() function Oleksandr Dmytryshyn
2013-11-27 14:49 ` Julien Grall
2013-11-27 16:37 ` Oleksandr Dmytryshyn
2013-11-26 10:54 ` [PATCH v2 2/2] xen: arm: flush dcache while preparing the device tree for Dom0 Oleksandr Dmytryshyn
2013-11-27 13:30 ` [PATCH v2 0/2] xen: arm: introduce a function and " Ian Campbell
2013-11-27 13:50 ` Julien Grall [this message]
2013-11-27 13:54 ` Ian Campbell
2013-11-27 14:51 ` Julien Grall
2013-11-29 10:35 ` 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=5295F89A.9070005@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=andrii.anisov@ti.com \
--cc=julien.grall@citrix.com \
--cc=oleksandr.dmytryshyn@globallogic.com \
--cc=stefano.stabellini@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.