Hi experts,
Could you please help me to confirm if this is this hardware issue as shown in P.S., thanks
I believe you can tell it is your kernel from the output of `uname`, I think the same issue should be seen in both your 0.2 and 0.3 SDK.
Cheers,
Zumeng
root@ls1028a:/sys/devices/system/cpu/cpu1# uname -a
Linux ls1028a 4.14.47-51091-g985a1f51c31c #2 SMP PREEMPT Wed Dec 19 11:41:09 IST 2018 aarch64 GNU/Linux
root@ls1028a:/sys/devices/system/cpu/cpu1#
root@ls1028a:/sys/devices/system/cpu/cpu1# ls -l
total 0
drwxr-xr-x 6 root root 0 May 8 11:52 cache
-rw-r--r-- 1 root root 4096 May 8 11:52 cpu_capacity
lrwxrwxrwx 1 root root 0 May 8 11:52 cpufreq -> ../cpufreq/policy0
drwxr-xr-x 5 root root 0 May 8 11:52 cpuidle
-r-------- 1 root root 4096 May 8 11:52 crash_notes
-r-------- 1 root root 4096 May 8 11:52 crash_notes_size
drwxr-xr-x 2 root root 0 May 8 11:52 hotplug
lrwxrwxrwx 1 root root 0 May 8 11:52 node0 -> ../../node/node0
lrwxrwxrwx 1 root root 0 May 8 11:52 of_node -> ../../../../firmware/devicetree/base/cpus/cpu@1
-rw-r--r-- 1 root root 4096 May 8 11:52 online
drwxr-xr-x 2 root root 0 May 8 11:52 power
drwxr-xr-x 3 root root 0 May 8 11:52 regs
lrwxrwxrwx 1 root root 0 May 8 11:44 subsystem -> ../../../../bus/cpu
drwxr-xr-x 2 root root 0 May 8 11:52 topology
-rw-r--r-- 1 root root 4096 May 8 11:44 uevent
root@ls1028a:/sys/devices/system/cpu/cpu1# echo 0 > online
[ 495.454219] psci: unable to power off CPU1 (-95)
[ 495.454221] CPU1: shutdown
[ 495.461561] ------------[ cut here ]------------
[ 495.466188] kernel BUG at arch/arm64/kernel/smp.c:394!
[ 495.471341] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[ 495.473977] psci: Retrying again to check for CPU kill
[ 495.481990] Modules linked in:
[ 495.485052] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.47-51091-g985a1f51c31c #2
[ 495.492820] Hardware name: LS1028A RDB Board (DT)
[ 495.493983] psci: Retrying again to check for CPU kill
[ 495.502684] task: ffff80207b376180 task.stack: ffff000009788000
[ 495.508628] PC is at cpu_die+0x40/0x48
[ 495.512385] LR is at cpu_die+0x40/0x48
[ 495.513973] psci: Retrying again to check for CPU kill
[ 495.521289] pc : [<ffff000008090460>] lr : [<ffff000008090460>] pstate: 000001c5
[ 495.528707] sp : ffff00000978bf40
[ 495.532026] x29: ffff00000978bf40 x28: ffff000000000001
[ 495.533974] psci: Retrying again to check for CPU kill
[ 495.542503] x27: 0000000000000002 x26: 0000000000000002
[ 495.547832] x25: ffff000000000001 x24: 0000000000000000
[ 495.553160] x23: ffff00000a07bbc0 x22: ffff000009468158
[ 495.553974] psci: Retrying again to check for CPU kill
[ 495.563637] x21: ffff00000947a000 x20: ffff00000947a970
[ 495.568964] x19: 0000000000000001 x18: 0000000000000010
[ 495.573985] psci: Retrying again to check for CPU kill
[ 495.579440] x17: 0000ffffaae8855c x16: ffff00000820eb00
[ 495.584768] x15: 0000000000000006 x14: ffff0000896043af
[ 495.590095] x13: ffff0000096043bd x12: ffff000009495d10
[ 495.593975] psci: Retrying again to check for CPU kill
[ 495.600571] x11: ffff00000978bc20 x10: 0000000005f5e0ff
[ 495.605898] x9 : 00000000ffffffd0 x8 : 000000000006ee4d
[ 495.611225] x7 : ffff00000869d4f8 x6 : 0000000000000218
[ 495.613972] psci: Retrying again to check for CPU kill
[ 495.621702] x5 : 0000000000000000 x4 : 0000000000000000
[ 495.627029] x3 : 0000000000000000 x2 : ffff80207b376180
[ 495.632356] x1 : ffff80207b376180 x0 : 0000000000000024
[ 495.633976] psci: Retrying again to check for CPU kill
[ 495.642834] Process swapper/1 (pid: 0, stack limit = 0xffff000009788000)
[ 495.649554] Call trace:
[ 495.652002] Exception stack(0xffff00000978be00 to 0xffff00000978bf40)
[ 495.653977] psci: Retrying again to check for CPU kill
[ 495.653980] psci: CPU1 may not have shut down cleanly (AFFINITY_INFO reports 0)
[ 495.653982] CPU1 may not have shut down cleanly: -110
[ 495.675999] be00: 0000000000000024 ffff80207b376180 ffff80207b376180 0000000000000000
[ 495.683853] be20: 0000000000000000 0000000000000000 0000000000000218 ffff00000869d4f8
[ 495.691708] be40: 000000000006ee4d 00000000ffffffd0 0000000005f5e0ff ffff00000978bc20
root@ls1028a:/sy[ 495.699562] be60: ffff000009495d10 ffff0000096043bd ffff0000896043af 0000000000000006
[ 495.708807] be80: ffff00000820eb00 0000ffffaae8855c 0000000000000010 0000000000000001
[ 495.716662] bea0: ffff00000947a970 ffff00000947a000 ffff000009468158 ffff00000a07bbc0
s/devices/system[ 495.724516] bec0: 0000000000000000 ffff000000000001 0000000000000002 0000000000000002
/cpu/cpu1# [ 495.733761] bee0: ffff000000000001 ffff00000978bf40 ffff000008090460 ffff00000978bf40
[ 495.742573] bf00: ffff000008090460 00000000000001c5 0000000000000000 0000000000000000
[ 495.750427] bf20: ffffffffffffffff ffff000008090460 ffff00000978bf40 ffff000008090460
[ 495.758284] [<ffff000008090460>] cpu_die+0x40/0x48
[ 495.763089] [<ffff000008085514>] arch_cpu_idle_dead+0xc/0x18
[ 495.768767] [<ffff00000810b000>] do_idle+0x128/0x1d8
[ 495.773745] [<ffff00000810b244>] cpu_startup_entry+0x24/0x28
[ 495.779420] [<ffff0000080902e8>] secondary_start_kernel+0x110/0x120
[ 495.785706] Code: 2a1303e0 f8735821 f9401821 d63f0020 (d4210000)
[ 495.791822] ---[ end trace 5cdaa85e26845d44 ]---
[ 495.796451] Kernel panic - not syncing: Attempted to kill the idle task!
[ 495.803172] Kernel Offset: disabled
[ 495.806667] CPU features: 0x1802008
[ 495.810161] Memory Limit: none
[ 495.813221] ---[ end Kernel panic - not syncing: Attempted to kill the idle task!
root@ls1028a:/sys/devices/system/cpu/cpu1#
root@ls1028a:/sys/devices/system/cpu/cpu1#
root@ls1028a:/sys/devices/system/cpu/cpu1#
root@ls1028a:/sys/devices/system/cpu/cpu1#
root@ls1028a:/sys/devices/system/cpu/cpu1#
root@ls1028a:/sys/devices/system/cpu/cpu1# cat /proc/cpuinfo
processor : 0
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
root@ls1028a:/sys/devices/system/cpu/cpu1# echo 1 > online
[ 503.366239] psci: failed to boot CPU1 (-22)
[ 503.370444] CPU1: failed to boot: -22
Message from syslogd@ls1028a at Wed May 8 11:53:10 2019 ...
[ 503.380077] CPU1: failed in unknown state : 0x0
ls1028a kernel: [ 495.471341] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Message from syslogd@ls1028a at Wed May 8 11:53:10 2019 ...
ls1028a kernel: [ 495.785706] Code: 2a1303e0 f8735821 f9401821 d63f0020 (d4210000)
Message from syslogd@ls1028a at Wed May 8 11:53:10 2019 ...
ls1028a kernel: [ 495.642834] Process swapper/1 (pid: 0, stack limit = 0xffff000009788000)
Message from syslogd@ls1028a at Wed May 8 11:53:10 2019 ...
ls1028a kernel: [ 495.796451] Kernel panic - not syncing: Attempted to kill the idle task!
Message from syslogd@ls1028a at Wed May 8 11:53:10 2019 ...
ls1028a kernel: [ 495.806667] CPU features: 0x1802008
Message from syslogd@ls1028a at Wed May 8 11:53:10 2019 ...
ls1028a kernel: [ 495.803172] Kernel Offset: disabled
Message from syslogd@ls1028a at Wed May 8 11:53:10 2019 ...
ls1028a kernel: [ 495.810161] Memory Limit: none
Message from syslogd@ls1028a at Wed May 8 11:53:10 2019 ...
ls1028a kernel: [ 495.813221] ---[ end Kernel panic - not syncing: Attempted to kill the idle task!
-sh: echo: write error: Invalid argument
root@ls1028a:/sys/devices/system/cpu/cpu1#
root@ls1028a:/sys/devices/system/cpu/cpu1# cat /proc/cpuinfo
processor : 0
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
root@ls1028a:/sys/devices/system/cpu/cpu1# uname -a
Linux ls1028a 4.14.47-51091-g985a1f51c31c #2 SMP PREEMPT Wed Dec 19 11:41:09 IST 2018 aarch64 GNU/Linux
root@ls1028a:/sys/devices/system/cpu/cpu1#
Solved! Go to Solution.
Please refer to the attached console log, I am using BSP 0.3 pre-built image lsdk_linux_arm64_LS_tiny.itb.
Thanks,
Yiping
Hello zumeng chen,
I checked ls1028a-bsp0.3 image lsdk_linux_arm64_LS_tiny.itb on LS1028ARDB, it seems that CPU hotplug feature can work normally, please refer to my following log on LS1028ARDB.
root@TinyDistro:~# ls /sys/devices/system/cpu/cpu1/
cache cpuidle hotplug online subsystem
cpu_capacity crash_notes node0 power topology
cpufreq crash_notes_size of_node regs uevent
root@TinyDistro:~# cd /sys/devices/system/cpu/cpu1/
root@TinyDistro:/sys/devices/system/cpu/cpu1# echo 0 > online
[ 134.082783] CPU1: shutdown
[ 134.085500] psci: CPU1 killed.
root@TinyDistro:/sys/devices/system/cpu/cpu1# cat /proc/cpuinfo
processor : 0
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
root@TinyDistro:/sys/devices/system/cpu/cpu1# cat /proc/cpuinfo
processor : 0
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
root@TinyDistro:/sys/devices/system/cpu/cpu1# echo 1 > online
[ 207.958845] Detected PIPT I-cache on CPU1
[ 207.962887] GICv3: CPU1: found redistributor 1 region 0:0x0000000006060000
[ 207.969813] CPU1: Booted secondary processor [410fd083]
root@TinyDistro:/sys/devices/system/cpu/cpu1# cat /proc/cpuinfo
processor : 0
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
root@TinyDistro:/sys/devices/system/cpu/cpu1#
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi Yiping,
Can you please paste me the following information, thanks a lot
1 ) Your u-boot welcome information
2 ) Your first kernel commit log
3 ) Your hardware version information, including board and SoC
Cheers,
Zumeng