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

optee for kernel5.10 #5185

Closed
klcib508 opened this issue Feb 22, 2022 · 1 comment
Closed

optee for kernel5.10 #5185

klcib508 opened this issue Feb 22, 2022 · 1 comment

Comments

@klcib508
Copy link

klcib508 commented Feb 22, 2022

any config change for switch kernel5.10?
optee work fine on kernel4.9, but when I update the kernel version to kernel5.10,optee work error.
kernel mem abort when run xtest on android os
LOG:
D/TC:1 0 std_smc_entry:167 0x32000004
D/TC:? 0 tee_ta_init_pseudo_ta_session:299 Lookup pseudo TA d96a5b40-c3e5-21e3-8794-1002a5d5c61b
D/TC:? 0 ldelf_load_ldelf:91 ldelf load address 0x40006000
D/LD: ldelf:134 Loading TA d96a5b40-c3e5-21e3-8794-1002a5d5c61b
F/TC:? 0 trace_syscall:152 syscall #3 (syscall_get_property)
F/TC:? 0 trace_syscall:152 syscall #5 (syscall_open_ta_session)
D/TC:? 0 ldelf_syscall_open_bin:140 Lookup user TA ELF d96a5b40-c3e5-21e3-8794-1002a5d5c61b (REE)
F/TC:? 0 plat_prng_add_jitter_entropy:72 0xD8
[ 587.128382][T15259] optee_do_call_with_arg parg2=00000000b84b3d97
[ 587.140998][T15259] optee_do_call_with_arg while a0=ffff0000,a1=a0
[ 587.141938][T15259] optee_do_call_with_arg while a2=0,a3=0
[ 587.143148][T15259] optee_do_call_with_arg while a0=ffff0005,a1=ffffff80
[ 587.143940][T15259] optee_do_call_with_arg while a2=22e68,a3=0
[ 587.144864][T15259] optee: OPTEE_SMC_RPC_FUNC_CMD a1=ffffff80,a2=22e68
[ 587.153859][T15259] Unable to handle kernel paging request at virtual address ffffff8000022ea8
[ 587.157871][T15259] Mem abort info:
[ 587.158322][T15259] ESR = 0x96000006
[ 587.158907][T15259] EC = 0x25: DABT (current EL), IL = 32 bits
[ 587.159659][T15259] SET = 0, FnV = 0
[ 587.160123][T15259] EA = 0, S1PTW = 0
[ 587.160599][T15259] Data abort info:
[ 587.161044][T15259] ISV = 0, ISS = 0x00000006
[ 587.165816][T15259] CM = 0, WnR = 0
[ 587.166289][T15259] swapper pgtable: 4k pages, 39-bit VAs, pgdp=000000082176c000
[ 587.167234][T15259] [ffffff8000022ea8] pgd=00000008be3fa003, p4d=00000008be3fa003, pud=00000008be3fa003, pmd=0000000000000000
[ 587.168666][T15259] Internal error: Oops: 96000006 [#1] PREEMPT SMP
[ 587.169452][T15259] disable aee kernel api
[ 587.169457][T15259] Kernel Offset: disabled
[ 587.170490][T15259] Modules linked in:
[ 587.170968][T15259] CPU: 0 PID: 15259 Comm: xtest Tainted: G W 5.10.59-android12-9-g02b74255404d-dirty #1
[ 587.172327][T15259] Hardware name: XXXInc. TEST ANDROID (DT)
[ 587.173049][T15259] pstate: 60400005 (nZCv daif +PAN -UAO -TCO BTYPE=--)
[ 587.173896][T15259] pc : tee_shm_get_va+0x4/0x34
[ 587.174476][T15259] lr : optee_handle_rpc+0x144/0x6f4
[ 587.175104][T15259] sp : ffffffc0185abb50
[ 587.175602][T15259] x29: ffffffc0185abb80 x28: dead000000000100
[ 587.176355][T15259] x27: ffffffc0185abc20 x26: ffffff806aeda480
[ 587.177106][T15259] x25: ffffffc0185abbd0 x24: ffffff8000022e68
[ 587.177860][T15259] x23: ffffff802420cc00 x22: ffffffc0185abbf0
[ 587.178612][T15259] x21: ffffff806c6a0780 x20: ffffff802420cc48
[ 587.179364][T15259] x19: ffffffc0185abc00 x18: ffffffc010d8c668
[ 587.180116][T15259] x17: 000000000000ab03 x16: 0000000000001032
[ 587.180868][T15259] x15: 0000000000000000 x14: 0000000000000800
[ 587.181619][T15259] x13: 0000000000000004 x12: ffffffc01163f068
[ 587.182371][T15259] x11: ffffffc01163f028 x10: 0000000000000df0
[ 587.183123][T15259] x9 : 2ddfce063c3a3300 x8 : 00000000ffffff80
[ 587.183874][T15259] x7 : 0000000000000000 x6 : 0000000000000000
[ 587.184627][T15259] x5 : 022c4824402e6354 x4 : 0000000000000001
[ 587.185379][T15259] x3 : 0000000000000008 x2 : 0000000000000000
[ 587.186129][T15259] x1 : 0000000000000000 x0 : ffffff8000022e68
[ 587.186886][T15259] CPU: 0 PID: 15259 Comm: xtest Tainted: G W 5.10.59-android12-9-g02b74255404d-dirty #1
[ 587.188240][T15259] Hardware name: XXX Inc. TEST ANDROID (DT)
[ 587.188954][T15259] Call trace:
[ 587.189350][T15259] dump_backtrace+0x0/0x1a4
[ 587.189894][T15259] show_stack+0x18/0x24
[ 587.190395][T15259] dump_stack_lvl+0xbc/0xf8
[ 587.190936][T15259] dump_stack+0x18/0x3c
[ 587.191437][T15259] ipanic_die+0x50/0xd4
[ 587.191936][T15259] notify_die+0x64/0xb8
[ 587.192435][T15259] die+0xac/0x284
[ 587.192869][T15259] die_kernel_fault+0x78/0x88
[ 587.193433][T15259] die_kernel_fault+0x0/0x88
[ 587.193985][T15259] do_bad_area+0x30/0xf0
[ 587.194495][T15259] do_translation_fault+0x4c/0x5c
[ 587.195101][T15259] do_mem_abort+0x40/0x100
[ 587.195634][T15259] el1_abort+0x40/0x60
[ 587.196122][T15259] el1_sync_handler+0x48/0x84
[ 587.196685][T15259] el1_sync+0x8c/0x140
[ 587.197174][T15259] tee_shm_get_va+0x4/0x34
[ 587.197705][T15259] optee_do_call_with_arg+0x1f4/0x2e4
[ 587.198355][T15259] optee_open_session+0x1ac/0x27c
[ 587.198962][T15259] tee_ioctl+0x17a8/0x2a44
[ 587.199495][T15259] __arm64_sys_ioctl+0x90/0xc8
[ 587.200071][T15259] el0_svc_common+0xb4/0x19c
[ 587.200624][T15259] do_el0_svc+0x7c/0x88
[ 587.201124][T15259] el0_svc+0x10/0x1c
[ 587.201590][T15259] el0_sync_handler+0x84/0xe4
[ 587.202153][T15259] el0_sync+0x1a4/0x1c0
[ 587.202694][T15259] dis_D_inner_fL1L2:weak function.
[ 587.203313][T15259] SMP: stopping secondary CPUs

@klcib508
Copy link
Author

mem config erro

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

No branches or pull requests

1 participant