All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Cortex-A72 hangs after jumping from ARM Trusted Firmware to U-Boot?
@ 2017-05-11  8:51 Masahiro Yamada
  0 siblings, 0 replies; only message in thread
From: Masahiro Yamada @ 2017-05-11  8:51 UTC (permalink / raw)
  To: u-boot

Hi.

When booting from ARM Trusted Firmware, U-Boot runs in EL1-NS.
The boot flow is as follows:
  BL1 -> BL2 -> BL31 -> BL33 (i.e. U-Boot)

My UniPhier LD20 SoC (primary CPU = CA72) hangs in U-Boot.
The same boot sequence works fine on a similar SoC, LD11 (primary CPU = CA53).

I do not know why.
Do you have a clue?  A CA72-specific problem (errata)?

After a while, I found a solution to make it work for CA72.

Insert the following two lines in early boot stage of U-Boot.

  mrs x0, sctlr_el1
  msr sctlr_el1, x0

The code above seems no effect because it just reads sctlr_el1 register,
then writes back the value immediately.  Surprisingly enough,
it fixes the problem.  I do not know why.

I sent the following patch for my SoC:
http://patchwork.ozlabs.org/patch/760988/
I am not sure if this is good.


Anybody who has a clue?

Thanks!

-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-11  8:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-11  8:51 [U-Boot] Cortex-A72 hangs after jumping from ARM Trusted Firmware to U-Boot? Masahiro Yamada

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.