Skip to content

sun7i: PSCI enhancements

Ian Campbell u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/20 of 4 patches 0 repliesNew
  2. v3 posting 1/22 of 4 patches 0 repliesSuperseded
  3. v20 of 5 patches 0 repliesSuperseded

Patches in v3 posting 2/2 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/4] sun7i: PSCI enhancements
Quoted 4 lines · Jan Kiszka
Quoted 3 lines · Hans de Goede

Hi,

On 11-01-15 10:59, Ian Campbell wrote:

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

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?

Quoted 3 lines

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.

Quoted 3 lines

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.