Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent booting problems on HiKey960 #1851

Closed
EStapf opened this issue Sep 29, 2017 · 5 comments · Fixed by OP-TEE/manifest#78
Closed

Recent booting problems on HiKey960 #1851

EStapf opened this issue Sep 29, 2017 · 5 comments · Fixed by OP-TEE/manifest#78

Comments

@EStapf
Copy link

EStapf commented Sep 29, 2017

Hi

all,

I have some problems booting OP-TEE on my Hikey960 board. I followed the instructions under https://github.com/OP-TEE/build and I was able to build and flash (make flash) everything nicely.
However, when I boot the system it gets stuck with the following lines:

[0.753291] hi3660-mbox e896b000.mailbox: Mailbox enabled
[ 21.773459] INFO: rcu_preempt detected stalls on CPUs/tasks:
[ 21.779191] 5-...: (1 GPs behind) idle=135/140000000000000/0 softirq=21/22 fqs=2625
[ 21.787109] (detected by 0, t=5252 jiffies, g=-289, c=-290, q=111)
[ 21.793448] Task dump for CPU 5:
[ 21.796706] swapper/0 R running task 0 1 0 0x00000002
[ 21.803837] Call trace:
[ 21.806320] [] __switch_to+0x94/0xa8
[ 21.811513] [<0000000000000040>] 0x40

I attached the whole log file from the boot process.
Any idea what could lead to those stalls on the CPU? I get the same error with the make recovery command.

Surprisingly I was able to run OP-TEE on the board only a few weeks ago. I also got some problem after make flash, some error with the BL2. However, a make recovery fixed the problem back then.
So could this problem maybe be caused by one of the more recent commits?

boot.log

[Edit: fixed URL to build Git]

@vchong
Copy link
Contributor

vchong commented Sep 30, 2017

@pentr We'll investigate and get back to you later. Thanks for the report!

@jforissier
Copy link
Contributor

I'm seeing the same issue :(

@jforissier
Copy link
Contributor

Looks like https://github.com/96boards-hikey/tools-images-hikey960 commit 92f365073cd812a8d8ca159b01f52dd6dd06d111 breaks the thing.
Workaround:

$ (cd tools-images-hikey960; git checkout 92f365073cd8^)

(thanks @vchong!)

jforissier added a commit to jforissier/manifest that referenced this issue Oct 5, 2017
With 92f365073cd8 ("lpm3, xloader: fix spi2 and i2c0 clock slow issue")
in tools-images-hikey960, the board won't boot. The kernel hangs at:

[0.753291] hi3660-mbox e896b000.mailbox: Mailbox enabled
[ 21.773459] INFO: rcu_preempt detected stalls on CPUs/tasks:
[ 21.779191] 5-...: (1 GPs behind) idle=135/140000000000000/0 softirq=21/22 fqs=2625
[ 21.787109] (detected by 0, t=5252 jiffies, g=-289, c=-290, q=111)
[ 21.793448] Task dump for CPU 5:
[ 21.796706] swapper/0 R running task 0 1 0 0x00000002
[ 21.803837] Call trace:
[ 21.806320] [] __switch_to+0x94/0xa8
[ 21.811513] [<0000000000000040>] 0x40

Work around this issue by pinning the parent commit in hikey960.xml.

Change-Id: If7d077c7c1b86fd9eafcc4a94091b4cd742d28f3
Fixes: OP-TEE/optee_os#1851
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
jforissier added a commit to jforissier/manifest that referenced this issue Oct 5, 2017
With 92f365073cd8 ("lpm3, xloader: fix spi2 and i2c0 clock slow issue")
in tools-images-hikey960, the board won't boot. The kernel hangs at:

[0.753291] hi3660-mbox e896b000.mailbox: Mailbox enabled
[ 21.773459] INFO: rcu_preempt detected stalls on CPUs/tasks:
[ 21.779191] 5-...: (1 GPs behind) idle=135/140000000000000/0 softirq=21/22 fqs=2625
[ 21.787109] (detected by 0, t=5252 jiffies, g=-289, c=-290, q=111)
[ 21.793448] Task dump for CPU 5:
[ 21.796706] swapper/0 R running task 0 1 0 0x00000002
[ 21.803837] Call trace:
[ 21.806320] [] __switch_to+0x94/0xa8
[ 21.811513] [<0000000000000040>] 0x40

Work around this issue by pinning the parent commit in hikey960.xml.

Fixes: OP-TEE/optee_os#1851
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
jforissier added a commit to jforissier/manifest that referenced this issue Oct 5, 2017
With 92f365073cd8 ("lpm3, xloader: fix spi2 and i2c0 clock slow issue")
in tools-images-hikey960, the board won't boot. The kernel hangs at:

[0.753291] hi3660-mbox e896b000.mailbox: Mailbox enabled
[ 21.773459] INFO: rcu_preempt detected stalls on CPUs/tasks:
[ 21.779191] 5-...: (1 GPs behind) idle=135/140000000000000/0 softirq=21/22 fqs=2625
[ 21.787109] (detected by 0, t=5252 jiffies, g=-289, c=-290, q=111)
[ 21.793448] Task dump for CPU 5:
[ 21.796706] swapper/0 R running task 0 1 0 0x00000002
[ 21.803837] Call trace:
[ 21.806320] [] __switch_to+0x94/0xa8
[ 21.811513] [<0000000000000040>] 0x40

Work around this issue by pinning the parent commit in hikey960.xml.

Change-Id: Ib89ef4cc3c62d101d81449eb3afeb925abd680fb
Fixes: OP-TEE/optee_os#1851
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Joakim Bech <joakim.bech@linaro.org>
jforissier added a commit to OP-TEE/manifest that referenced this issue Oct 5, 2017
With 92f365073cd8 ("lpm3, xloader: fix spi2 and i2c0 clock slow issue")
in tools-images-hikey960, the board won't boot. The kernel hangs at:

[0.753291] hi3660-mbox e896b000.mailbox: Mailbox enabled
[ 21.773459] INFO: rcu_preempt detected stalls on CPUs/tasks:
[ 21.779191] 5-...: (1 GPs behind) idle=135/140000000000000/0 softirq=21/22 fqs=2625
[ 21.787109] (detected by 0, t=5252 jiffies, g=-289, c=-290, q=111)
[ 21.793448] Task dump for CPU 5:
[ 21.796706] swapper/0 R running task 0 1 0 0x00000002
[ 21.803837] Call trace:
[ 21.806320] [] __switch_to+0x94/0xa8
[ 21.811513] [<0000000000000040>] 0x40

Work around this issue by pinning the parent commit in hikey960.xml.

Change-Id: Ib89ef4cc3c62d101d81449eb3afeb925abd680fb
Fixes: OP-TEE/optee_os#1851
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Joakim Bech <joakim.bech@linaro.org>
@jforissier
Copy link
Contributor

@pentr feel free to try again and re-open the issue if it doesn't work for you.

@vchong
Copy link
Contributor

vchong commented Oct 5, 2017

@jforissier np thanks for testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants