OP-TEE / optee_os

Trusted side of the TEE
Other
1.58k stars 1.07k forks source link

all secondary CPUs offline #6092

Closed yujack008 closed 1 year ago

yujack008 commented 1 year ago

i porting optee on new platform rk3568。 the optee run ok,but swicht to linux kernel all secondary CPUs offline, the some log like:

[    0.003106] Security Framework initialized
[    0.003491] SELinux:  Initializing.
[    0.003889] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.004517] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.006397] ASID allocator initialised with 32768 entries
[    0.006999] rcu: Hierarchical SRCU implementation.
[    0.007840] Platform MSI: interrupt-controller@fd440000 domain created
[    0.008871] PCI/MSI: /interrupt-controller@fd400000/interrupt-controller@fd440000 domain created
[    0.010362] smp: Bringing up secondary CPUs ...
[    1.013164] CPU1: failed to come online
[    1.013517] CPU1: failed in unknown state : 0x0
[    2.027438] CPU2: failed to come online
[    2.027783] CPU2: failed in unknown state : 0x0
[    3.041698] CPU3: failed to come online
[    3.042056] CPU3: failed in unknown state : 0x0
[    3.042513] smp: Brought up 1 node, 1 CPU
[    3.042886] SMP: Total of 1 processors activated.
[    3.043325] CPU features: detected: GIC system register CPU interface
[    3.043920] CPU features: detected: Privileged Access Never
[    3.044434] CPU features: detected: LSE atomic instructions
[    3.044944] CPU features: detected: User Access Override
[    3.045474] CPU features: detected: 32-bit EL0 Support
[    3.045948] CPU features: detected: RAS Extension Support
[    3.054911] CPU: All CPU(s) started at EL2
[    3.055305] alternatives: patching kernel code
[    3.060646] devtmpfs: initialized
[    3.077108] dto_overide: Unable to find model property for root or dto
[    3.079374] Registered cp15_barrier emulation handler
[    3.079850] Registered setend emulation handler
[    3.080826] Trying to unpack rootfs image as initramfs...

anybody can help me。Thanks!

jforissier commented 1 year ago

Hi @yujack008,

Perhaps you need to enable PSCI in the kernel? Related issue: https://github.com/OP-TEE/build/issues/360.

yujack008 commented 1 year ago

Hi @yujack008,

Perhaps you need to enable PSCI in the kernel? Related issue: OP-TEE/build#360.

My kernel have enable PSCI。 Is it because my rk3568 cpu is cortex-a55? I can not find how to config cortex-a55 core demo in optee-os source

github-actions[bot] commented 1 year ago

This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.

Salex406 commented 3 months ago

Hi @yujack008 Do you have any success on porting?