On Sat, Mar 21, 2015 at 08:41:12AM +0000, Peter Griffin wrote:
Hi,
Further to Jeromes email about hangs / compiler flags for BL1.
I find on my hikey board with software which usually boot OK, around 1 in 5 cold boots I can provoke another hang in BL1.
Switch to aarch64 mode. CPU0 executes at 0xf9801000! NOTICE: Booting Trusted Firmware NOTICE: BL1: v1.1(release):9a97502 NOTICE: BL1: Built : 08:13:36, Mar 10 2015 0000000002000000000000000200000000000000020000000000000002000000 (repeating at 1Hz)
Has anyone else experienced this?
Are u using the latest ATF?
If u can build the ATF w/t source code, could u help check if the patch 7c2d6de8b89 "Add memory barrier after pll setting" has been included in your code base?
BTW, because now in ATF, the mmio_write/mmio_read APIs have not added any memory barrier, so it's easily introduce the out-of-order issue, especially now armv8 has more weaker memory model rather than armv7; so if upper patch can not fix your issue, could u also try below patch, which it will add memory barriers for register's accessing:
https://github.com/Leo-Yan/arm-trusted-firmware/commit/a87af905ef77bf96409b8...
I also have sent pull request for this patch.
Thanks, Leo Yan