-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Enable smp with imx8qm(optee: 3.8.0 linux:4.14 arm64 ),bring up all cpus successfuly, but kernel oops with kernel page fault #3892
Comments
Hi @chenlifu2015 , Perhaps there is a memory conflict between the kernel and OP-TEE (code, data and/or shared memory). Have you checked your DT? Is OP-TEE built with |
hi,jforissier |
I use mkdtimg and dtc tools to dump the dtbo-imx8qm.im to the relative dtsi file. the content about optee is , I think there is no memory confict.
|
@MrVan, If I have reserved the memory for optee in the function:dram_init. using the following code: |
@chenlifu2015 which U-Boot version are u using? NXP released U-Boot will automatically create optee node |
@MrVan My uboot version is 2018.03-dirty, kernel version is 4.14.98-07190-gbcdaf61-dirty,with the NXP Android 9 SDK,now I have loaded optee os(version 3.8.0) successfully,and also enabled avb early ta so uboot can use avb ta to verify vbmeta.img,my boot sequence is : |
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. |
Well how to fix this? |
hi,experts
I have successfully loaded optee os on imx8qm with android version 9.0,also I have use early avb ta in uboot to implement avb function, but There ara some oops happeded during bootimg loaded,I check the log,and I found that when Linux bring up the secondary CPUs by smp successfully, but sames like some pci setting up are not right, oops with kernel page fault:
call traces are as follows, and When I use trusty os instead of optee os, the kermel works fine:
Unable to handle kernel paging request at virtual address ffff800001396008
Unable to handle kernel paging request at virtual address ffff800001382ff0
[ 1.283005] Mem abort info:
[ 1.285801] Exception class = DABT (current EL), IL = 32 bits
[ 1.291724] SET = 0, FnV = 0
[ 1.294781] EA = 0, S1PTW = 0
[ 1.297918] Data abort info:
[ 1.300800] ISV = 0, ISS = 0x00000006
[ 1.304640] CM = 0, WnR = 0
[ 1.307614] swapper pgtable: 4k pages, 48-bit VAs, pgd = ffff0000091f8000
[ 1.314406] [ffff800001382ff0] *pgd=000000097fff7803, *pud=000000097fff6803, *pmd=0000000000000000
[ 1.323383] Internal error: Oops: 96000006 [#1] PREEMPT SMP
[ 1.328951] Modules linked in:
[ 1.332005] CPU: 1 PID: 72 Comm: kworker/1:1 Not tainted 4.14.98-07190-gbcdaf61-dirty #4
[ 1.340097] Hardware name: Freescale i.MX8QM MEK (DT)
[ 1.345160] Workqueue: events pcpu_balance_workfn
[ 1.349862] task: ffff8008f6660c80 task.stack: ffff000009420000
[ 1.355782] PC is at vmap_page_range_noflush+0xe8/0x2cc
[ 1.361009] LR is at map_kernel_range_noflush+0x10/0x18
[ 1.366232] pc : [] lr : [] pstate: 20000045
[ 1.373622] sp : ffff000009423bc0
[ 1.376932] x29: ffff000009423bc0 x28: 0140000000000000
[ 1.382248] x27: 0000000000000000 x26: ffff000008d4f000
[ 1.387556] x25: ffff7dffbff6c000 x24: 00e8000000000f13
[ 1.392864] x23: ffff7dffc0000000 x22: ffff8008f6bde800
[ 1.398172] x21: ffff7e7fbff6c000 x20: 0000000001382ff0
[ 1.403481] x19: ffff000009094888 x18: 0000000098d05149
[ 1.408788] x17: 0000000000000000 x16: 0000000000000000
[ 1.414096] x15: ffff7e0023dc6de0 x14: ffff00000914b550
[ 1.419405] x13: ffff8008fffff308 x12: ffff8008ffef39d8
[ 1.424713] x11: 0000000000000001 x10: ffff7dfffff6c000
[ 1.430021] x9 : 0000000000000040 x8 : 00008008f7061000
[ 1.435329] x7 : ffff8008fffff200 x6 : ffff8008fffff200
[ 1.440637] x5 : 0000000000000010 x4 : 000000000000003f
[ 1.445945] x3 : ffff8008f6bde800 x2 : ffff7dffbff6efff
[ 1.451253] x1 : ffff7dffbff6efff x0 : ffff800001382ff0
[ 1.456562]
[ 1.456562] X0: 0xffff800001382f70:
[ 1.461521] 2f70 ******** ******** ******** ******** ******** ******** ******** ********
[ 1.469713] 2f90 ******** ******** ******** ******** ******** ******** ******** ********
[ 1.477906] 2fb0 ******** ******** ******** ******** ******** ******** ******** ********
[ 1.486098] 2fd0 ******** ******** ******** ******** ******** ******** ******** ********
[ 1.494290] 2ff0 ******** ******** ******** ******** ******** ******** ******** ********
[ 1.502483] 3010 ******** ******** ******** ******** ******** ******** ******** ********
[ 1.510675] 3030 ******** ******** ******** ******** ******** ******** ******** ********
[ 1.518867] 3050 ******** ******** ******** ******** ******** ******** ******** ********
[ 1.527061]
[ 1.527061] X3: 0xffff8008f6bde780:
[ 1.532020] e780 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.540212] e7a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.548405] e7c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.556597] e7e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.564790] e800 23dc6dc0 ffff7e00 23dc6d80 ffff7e00 23dc6d40 ffff7e00 00000000 00000000
[ 1.572982] e820 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.581174] e840 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.589366] e860 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.597561]
[ 1.597561] X6: 0xffff8008fffff180:
[ 1.602519] f180 00000000 00000000 00016000 00000000 0002c000 00000000 00042000 00000000
[ 1.610712] f1a0 00058000 00000000 0006e000 00000000 00000000 00000000 00000000 00000000
[ 1.618904] f1c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.627096] f1e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.635289] f200 00000000 00000001 00000002 00000003 00000004 00000005 00000000 00000000
[ 1.643481] f220 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.651673] f240 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.659865] f260 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.668059]
[ 1.668059] X7: 0xffff8008fffff180:
[ 1.673018] f180 00000000 00000000 00016000 00000000 0002c000 00000000 00042000 00000000
[ 1.681211] f1a0 00058000 00000000 0006e000 00000000 00000000 00000000 00000000 00000000
[ 1.689403] f1c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.697595] f1e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.705788] f200 00000000 00000001 00000002 00000003 00000004 00000005 00000000 00000000
[ 1.713980] f220 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.722172] f240 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.730365] f260 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.738559]
[ 1.738559] X12: 0xffff8008ffef3958:
[ 1.743604] 3958 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001
[ 1.751796] 3978 00000000 000000ba 0000001f 00000000 ffef3988 ffff8008 ffef3988 ffff8008
[ 1.759989] 3998 ffef3998 ffff8008 ffef3998 ffff8008 ffef39a8 ffff8008 ffef39a8 ffff8008
[ 1.768181] 39b8 0000001e 00000000 00000000 00000000 00000006 000000ba 0000001f 00000000
[ 1.776373] 39d8 23da39e0 ffff7e00 23dab2a0 ffff7e00 ffef39e8 ffff8008 ffef39e8 ffff8008
[ 1.784566] 39f8 23d13f20 ffff7e00 23d13f60 ffff7e00 0000e424 00000000 00080000 00000000
[ 1.792758] 3a18 0000008e 00000000 f6b7f600 ffff8008 00003981 00000000 23dadfc0 ffff7e00
[ 1.800950] 3a38 00000000 00000000 00000000 00000000 00000001 00000000 00000000 00000000
[ 1.809144]
[ 1.809144] X13: 0xffff8008fffff288:
[ 1.814190] f288 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.822382] f2a8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.830575] f2c8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.838767] f2e8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.846960] f308 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.855152] f328 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.863344] f348 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.871536] f368 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.879732]
[ 1.879732] X22: 0xffff8008f6bde780:
[ 1.884785] e780 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.892977] e7a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.901169] e7c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.909362] e7e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.917554] e800 23dc6dc0 ffff7e00 23dc6d80 ffff7e00 23dc6d40 ffff7e00 00000000 00000000
[ 1.925746] e820 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.933939] e840 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.942131] e860 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.950326]
[ 1.951811] Process kworker/1:1 (pid: 72, stack limit = 0xffff000009420000)
[ 1.958769] Call trace:
[ 1.961211] Exception stack(0xffff000009423a80 to 0xffff000009423bc0)
[ 1.967650] 3a80: ffff800001382ff0 ffff7dffbff6efff ffff7dffbff6efff ffff8008f6bde800
[ 1.975476] 3aa0: 000000000000003f 0000000000000010 ffff8008fffff200 ffff8008fffff200
[ 1.983304] 3ac0: 00008008f7061000 0000000000000040 ffff7dfffff6c000 0000000000000001
[ 1.991140] 3ae0: ffff8008ffef39d8 ffff8008fffff308 ffff00000914b550 ffff7e0023dc6de0
[ 1.998967] 3b00: 0000000000000000 0000000000000000 0000000098d05149 ffff000009094888
[ 2.006795] 3b20: 0000000001382ff0 ffff7e7fbff6c000 ffff8008f6bde800 ffff7dffc0000000
[ 2.014623] 3b40: 00e8000000000f13 ffff7dffbff6c000 ffff000008d4f000 0000000000000000
[ 2.022450] 3b60: 0140000000000000 ffff000009423bc0 ffff000008205a00 ffff000009423bc0
[ 2.030277] 3b80: ffff0000082045c8 0000000020000045 ffff0000091bae90 0000000000000001
[ 2.038105] 3ba0: ffffffffffffffff ffff000008205834 ffff000009423bc0 ffff0000082045c8
[ 2.045933] [] vmap_page_range_noflush+0xe8/0x2cc
[ 2.052196] [] map_kernel_range_noflush+0x10/0x18
[ 2.058460] [] pcpu_populate_chunk+0x27c/0x43c
[ 2.064463] [] pcpu_balance_workfn+0x574/0x650
[ 2.070469] [] process_one_work+0x140/0x3f8
[ 2.076217] [] worker_thread+0x138/0x3e4
[ 2.081699] [] kthread+0x104/0x130
[ 2.086662] [] ret_from_fork+0x10/0x18
[ 2.091977] Code: f94047a2 8b00032a f9404fa0 92628557 (f9400001)
[ 2.098077] ---[ end trace 15e6cf0121c8a1e2 ]---
The text was updated successfully, but these errors were encountered: