Are u using the latest ATF?> Has anyone else experienced this?
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/a87af905ef77bf96409b846788512d34ac84a439
I also have sent pull request for this patch.