From: Ian Campbell <ijc@hellion.org.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 0/4] sun7i: PSCI enhancements
Date: Wed, 14 Jan 2015 09:16:57 +0000 [thread overview]
Message-ID: <1421227017.11796.186.camel@hellion.org.uk> (raw)
In-Reply-To: <54B25943.8080703@web.de>
On Sun, 2015-01-11 at 12:06 +0100, Jan Kiszka wrote:
> On 2015-01-11 11:30, Hans de Goede wrote:
> > Hi,
> >
> > On 11-01-15 10:59, Ian Campbell wrote:
> >> I've applied #1 and #3. I'd like to hear from Hans on the v0.2 stuff.
> >
> > I've no real opinion on this, I do NOT like the introduction of a
> > third version of the i2c / rsb and axp code (we already have both
> > a u-boot and a kernel version to maintain of both).
>
> I do not like this replication of logic very much as well. But already
> my attempts to put complete C modules in the monitor segment failed.
I think this is something we are going to need to resolve eventually, if
not for sunxi then for some other platform, how did it fail?
> And
> then, would we be able to still use those functions also from the rest
> of uboot?
Since the main u-boot and PSCI cases are temporarily isolated (PSCI not
used until after boot{m,z}, at which point the main bit has gone away) I
would expect that the rest of u-boot would use the code from its place
within the main u-boot text area, while PSCI would use it from the
relocated secure RAM.
The code would need to be PIE and care would need to be taken about
relying on global variables between the two, but it doesn't seem overly
problematic (famous last words!).
Worst case I suppose we could always arrange to compile a few .c files
twice, once for each case.
> What would be possible is to invoke SYSTEM_RESET from reset_cpu. Not
> much to gain, though, as only the sun7i has PSCI, and its logic is also
> used by 4i and 5i.
In theory I think 4i and 5i are both capable of running NS and therefore
supporting PSCI, it's just they don't have virt extensions (and are
single processor, IIRC) so there isn't really much reason to want to do
so.
Ian.
prev parent reply other threads:[~2015-01-14 9:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-31 12:46 [U-Boot] [PATCH v3 0/4] sun7i: PSCI enhancements Jan Kiszka
2014-12-31 12:46 ` [U-Boot] [PATCH v3 1/4] sun7i: Add support for taking CPUs offline via PSCI Jan Kiszka
2015-01-07 19:05 ` Ian Campbell
2014-12-31 12:46 ` [U-Boot] [PATCH v3 2/4] sun7i: Add PSCI v0.2 support Jan Kiszka
2014-12-31 12:46 ` [U-Boot] [PATCH v3 3/4] sun7i: Move psci_arch_init close to text_end Jan Kiszka
2015-01-07 19:07 ` Ian Campbell
2014-12-31 12:46 ` [U-Boot] [PATCH v3 4/4] sun7i: Implement PSCI v0.2 AFFINITY_INFO Jan Kiszka
2015-01-11 9:59 ` [U-Boot] [PATCH v3 0/4] sun7i: PSCI enhancements Ian Campbell
2015-01-11 10:30 ` Hans de Goede
2015-01-11 11:06 ` Jan Kiszka
2015-01-14 9:16 ` Ian Campbell [this message]
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=1421227017.11796.186.camel@hellion.org.uk \
--to=ijc@hellion.org.uk \
--cc=u-boot@lists.denx.de \
/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