From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
To: "Peter Maydell" <peter.maydell@linaro.org>,
"Andreas Färber" <afaerber@suse.de>
Cc: Edgar Iglesias <edgar.iglesias@xilinx.com>,
Rob Herring <rob.herring@linaro.org>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux
Date: Tue, 2 Sep 2014 09:22:39 +1000 [thread overview]
Message-ID: <CAEgOgz5Fk9n1C7AnsdecMpbVLPmsd+ffYmM-vPj2bzKH6TQ1-w@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA9MTAeHyjx=HJnV29qQUg2fEhQ=ZU1ARg09RGfse1z8vw@mail.gmail.com>
On Tue, Sep 2, 2014 at 9:12 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 2 September 2014 00:06, Peter Crosthwaite
> <peter.crosthwaite@xilinx.com> wrote:
>> On Tue, Sep 2, 2014 at 8:56 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
>>> Surely there's already a reset order dependency, because
>>> both the arm-boot reset hook and CPU reset proper want
>>> to initialise the PC ?
>
>> Yes. I had a PC specific solution to this though when it became a
>> problem. I have another series that made the reset ordering a little
>> less predictable (specifically implementation of CPU reset GPIOs)
>
> Actually, I'm confused now where the reset ordering issue comes
> in, because (ignoring realize, which will call reset) as far as I
> could make out the only place that the ARM CPU reset gets
> called is when the do_cpu_reset() hook in boot.c calls
> cpu_reset(CPU(cpu)) explicitly. This is unfortunate because
> it means if you didn't use -kernel then we won't reset the CPU
Yeh, my setup fixes this via assertion of an actual CPU reset GPIO
that connects to cpu_reset(). so I guess for me this problem is solved
...
> if you do a system reset after first bootup...but on the other
> hand it means there's no reset order issue?
>
... but then the solution introduces the reset order issue for me.
The other solution worth discussing now is whether we simply want to
acknowledge that devs can have reset order deps and that's ok.
Implementing on the qdev level:
void qdev_register_reset_dep(DeviceState *dependant, Device *dependee);
You then QOMify the bootloader and get rid of these explicit
bootloader cpu_reset calls.
Regards,
Peter
> Thinking about reset gives me a headache, though.
>
> thanks
> -- PMM
>
next prev parent reply other threads:[~2014-09-01 23:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-19 0:53 [Qemu-devel] [RFC v1 0/2] EL3 support for AArch64 Linux bootloader Peter Crosthwaite
2014-08-19 0:53 ` [Qemu-devel] [RFC v1 1/2] arm: boot: Add partial machine code fixup Peter Crosthwaite
2014-08-19 0:54 ` [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux Peter Crosthwaite
2014-08-19 16:50 ` Christopher Covington
2014-09-01 17:15 ` Peter Maydell
2014-09-01 22:41 ` Peter Crosthwaite
2014-09-01 22:56 ` Peter Maydell
2014-09-01 23:06 ` Peter Crosthwaite
2014-09-01 23:12 ` Peter Maydell
2014-09-01 23:22 ` Peter Crosthwaite [this message]
2014-09-01 23:38 ` Peter Maydell
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=CAEgOgz5Fk9n1C7AnsdecMpbVLPmsd+ffYmM-vPj2bzKH6TQ1-w@mail.gmail.com \
--to=peter.crosthwaite@xilinx.com \
--cc=afaerber@suse.de \
--cc=edgar.iglesias@xilinx.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=rob.herring@linaro.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).