Closed jforissier closed 7 years ago
@jforissier I want to reproduce your issue. I just want to confirm the environment. Are you using latest code of ATF/UEFI? Which kernel branch are you using? Loop @vchong
@hzhuang1 This involves aosp and probably all other environments too. See https://android-review.googlesource.com/502385. We think it's probably the "disable ocldo on big cluster" in https://github.com/96boards-hikey/tools-images-hikey960/commit/92f365073cd812a8d8ca159b01f52dd6dd06d111. Loop @docularxu
"disable ocldo on big cluster" is a bug fixing for system hang issue; from the log the CPU is locked up when send the mailbox message so I suspect the memory layout has some conflict between MCU and OP-TEE?
I think that MCU is using the memory space in below that is defined in HiKey960Mem.c of UEFI. { 0x89B80000, 0x00100000 }, // MCU Code reserved { 0x89C80000, 0x00040000 } // MCU reserved
And OPTEE is located at 0x3E000000. It seems that OPTEE shouldn't access the memory in MCU. @vchong Could you help to double confirm it?
Guodong is still on vocation in this week. Now I could reproduce this issue.
I did a few tests.
I could reproduce this issue in all these three cases. I could only avoid this issue by rolling back to commit ccb401f726 (recovery-flash: add '-e' flag for bash) that is just before commit 92f3650. It's clear that this issue is caused by sec_xloader.img.
We need hisilicon guys to fix this issue first. As a workaround, revert commit 92f3650 in master branch.
Loop in @Kevin-WangTao to aware this bug.
This bug is created in the bug system (https://bugs.96boards.org/show_bug.cgi?id=617). I recommend to discuss it in the #617 bug instead for easy tracking.
@hzhuang1 I found we missed one thing, when we update the sec_xloader.bin, we also need update the latest lpm3.img for OpenPlatformPkg/Platforms/Hisilicon/HiKey960/Binary/lpm3.img, so sec_xloader.bin and lpm3.img can match with each other.
@Leo-Yan In original test, lpm3 isn't included into OpenPlatformPkg. When I include it for test, it doesn't help me on this issue.
Close it and move to bug #617 (https://bugs.96boards.org/show_bug.cgi?id=617).
@Leo-Yan the change of lpm3.img has no dependency on xloader, so it doesn't matter that the images don't match with each other
@Kevin-WangTao thanks for confirmation. Let's use bug #617 (https://bugs.96boards.org/show_bug.cgi?id=617) for later's discussion.
Commit 92f365073cd8 ("lpm3, xloader: fix spi2 and i2c0 clock slow issue") breaks our OP-TEE environment (see https://github.com/OP-TEE/optee_os/issues/1851).
To reproduce:
Boot hangs at:
Commit 92f365073cd8 does not mention any dependency (should we upgrade the kernel?), so I'm assuming this is a regression in tools-images-hikey960 and I'm reporting here.