Not tainted Error from kernel and rebooting

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Not tainted Error from kernel and rebooting

825 Views
vinothkumars
Senior Contributor IV

Hi All,

 

I am working IMX8QM Custom Board with Android 9 Automotive. I got following kernel hang randomly let me know what is the issue.

 

vendor/nxp-opensource/kernel_imx/fs/ext4/inode.c:3908 ext4_set_page_dirty+0x54/0x70
[ 261.450068] Modules linked in: imx_rpmsg_tty usb_storage ci_hdrc_imx ci_hdrc usbmisc_imx mx8_bt_rfkill imx_dpu_render imx_dpu_blit imx_dpu_crtc imx_dpu_core imx8_dprc imx8_prg imx8_pc
[ 261.466450] CPU: 2 PID: 7959 Comm: Binder:5914_F Not tainted 4.14.98-00006-g5f4394a-dirty #3
[ 261.474885] Hardware name: Freescale i.MX8QM MEK (DT)
[ 261.479936] task: ffff8000533ef080 task.stack: ffff000011508000
[ 261.485862] PC is at ext4_set_page_dirty+0x54/0x70
[ 261.490661] LR is at set_page_dirty+0x5c/0xd8
[ 261.495021] pc : [<ffff0000082f6fc4>] lr : [<ffff0000081cb9d4>] pstate: 60000145
[ 261.502419] sp : ffff00001150b9c0
[ 261.505736] x29: ffff00001150b9c0 x28: ffff00001150bb90
[ 261.511061] x27: 0000000012e00000 x26: 00e00000839f2bd3
[ 261.516387] x25: ffff80005436c2e0 x24: 0000000000000000
[ 261.521712] x23: ffff7e00000e7c80 x22: ffff80005706f800
[ 261.527038] x21: ffff00001150bac8 x20: ffff0000082f6f70
[ 261.532363] x19: ffff7e00000e7c80 x18: 0000000000000000
[ 261.537688] x17: 0000000000000030 x16: ffff000008250804
[ 261.543005] x15: 0000000000000000 x14: 0000000000000010
[ 261.548330] x13: 000000000000af80 x12: ffff800063f0bb88
[ 261.553656] x11: 0000000000000000 x10: 0000000000000000
[ 261.558981] x9 : 0000000000000140 x8 : 000080005afd5000
[ 261.564307] x7 : 00000000131c0000 x6 : 0000000012e00000
[ 261.569632] x5 : 0000000012d00000 x4 : ffff80005436c2e0
[ 261.574958] x3 : 00000000000839f2 x2 : 0000000000000000
[ 261.580283] x1 : 000000000000102c x0 : ffff7e00000e7c80
[ 261.585616]
[ 261.585616] X4: 0xffff80005436c260:
[ 261.590586] c260 00000000 00000000 5feaf800 ffff8000 00000f92 04600000 00000070 00000000
[ 261.598795] c280 b2933f48 0000e05f 00000000 00000000 00000000 00000000 00000000 00000000
[ 261.607005] c2a0 5436c2a0 ffff8000 5436c2a0 ffff8000 00000000 00000000 00000000 00000000
[ 261.615215] c2c0 05faef8b 0000000e 00000000 00000000 00000000 00000000 00000000 00000000
[ 261.623424] c2e0 12c00000 00000000 131c0000 00000000 5436c398 ffff8000 00000000 00000000
[ 261.631634] c300 5436c3b9 ffff8000 00000000 00000000 00000000 00000000 12c00000 00000000
[ 261.639844] c320 5ba91500 ffff8000 00000fd3 00600000 00100073 00000000 5ba1e280 ffff8000
[ 261.648053] c340 00000000 00000000 00000000 00000000 000005bf 00000000 5ad9ebd0 ffff8000
[ 261.656269]
[ 261.656269] X12: 0xffff800063f0bb08:
[ 261.661328] bb08 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 261.669538] bb28 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 261.677747] bb48 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 261.685957] bb68 00000000 00000000 00000000 00000001 00000055 000000ba 0000001f 00000000
[ 261.694166] bb88 015c1aa0 ffff7e00 0159dbe0 ffff7e00 00c09120 ffff7e00 00afc260 ffff7e00
[ 261.702376] bba8 63f0bba8 ffff8000 63f0bba8 ffff8000 1d00001e 00000000 00100300 00000000
[ 261.710586] bbc8 fffffed6 00000000 5665db00 ffff8000 00010782 00000000 01599740 ffff7e00
[ 261.718795] bbe8 016df2c0 ffff7e00 527c73c8 ffff8000 00205d42 00000000 0149f1c0 ffff7e00
[ 261.727015]
[ 261.727015] X22: 0xffff80005706f780:
[ 261.732070] f780 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 261.740280] f7a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 261.748489] f7c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 261.756699] f7e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 261.764909] f800 00000000 00000000 b52a9bd3 00e00000 b1fefbd3 00e00000 b4bb1bd3 00e00000
[ 261.773119] f820 aac26bd3 00e00000 adf9ebd3 00e00000 a9487bd3 00e00000 ab701bd3 00e00000
[ 261.781328] f840 bc5f0bd3 00e00000 bc5f3bd3 00e00000 af313bd3 00e00000 a235cbd3 00e00000
[ 261.789538] f860 ab44dbd3 00e00000 c6cb3bd3 00e00000 ba003bd3 00e00000 bbbe7bd3 00e00000
[ 261.797751]
[ 261.797751] X25: 0xffff80005436c260:
[ 261.802804] c260 00000000 00000000 5feaf800 ffff8000 00000f92 04600000 00000070 00000000
[ 261.811014] c280 b2933f48 0000e05f 00000000 00000000 00000000 00000000 00000000 00000000
[ 261.819223] c2a0 5436c2a0 ffff8000 5436c2a0 ffff8000 00000000 00000000 00000000 00000000
[ 261.827433] c2c0 05faef8b 0000000e 00000000 00000000 00000000 00000000 00000000 00000000
[ 261.835643] c2e0 12c00000 00000000 131c0000 00000000 5436c398 ffff8000 00000000 00000000
[ 261.843852] c300 5436c3b9 ffff8000 00000000 00000000 00000000 00000000 12c00000 00000000
[ 261.852062] c320 5ba91500 ffff8000 00000fd3 00600000 00100073 00000000 5ba1e280 ffff8000
[ 261.860272] c340 00000000 00000000 00000000 00000000 000005bf 00000000 5ad9ebd0 ffff8000
[ 261.868486]
[ 261.869979] Call trace:
[ 261.872433] Exception stack(0xffff00001150b880 to 0xffff00001150b9c0)
[ 261.878881] b880: ffff7e00000e7c80 000000000000102c 0000000000000000 00000000000839f2
[ 261.886722] b8a0: ffff80005436c2e0 0000000012d00000 0000000012e00000 00000000131c0000
[ 261.894560] b8c0: 000080005afd5000 0000000000000140 0000000000000000 0000000000000000
[ 261.902396] b8e0: ffff800063f0bb88 000000000000af80 0000000000000010 0000000000000000
[ 261.910230] b900: ffff000008250804 0000000000000030 0000000000000000 ffff7e00000e7c80
[ 261.918069] b920: ffff0000082f6f70 ffff00001150bac8 ffff80005706f800 ffff7e00000e7c80
[ 261.925904] b940: 0000000000000000 ffff80005436c2e0 00e00000839f2bd3 0000000012e00000
[ 261.933741] b960: ffff00001150bb90 ffff00001150b9c0 ffff0000081cb9d4 ffff00001150b9c0
[ 261.941577] b980: ffff0000082f6fc4 0000000060000145 ffff00001150ba98 ffff000008f27018
[ 261.949413] b9a0: 0000ffffffffffff ffff0000081d0844 ffff00001150b9c0 ffff0000082f6fc4
[ 261.957245] [<ffff0000082f6fc4>] ext4_set_page_dirty+0x54/0x70
[ 261.963081] [<ffff0000081cb9d4>] set_page_dirty+0x5c/0xd8
[ 261.968481] [<ffff0000081fba68>] unmap_page_range+0x508/0x838
[ 261.974229] [<ffff0000081fbde8>] unmap_single_vma+0x50/0xa4
[ 261.979805] [<ffff0000081fc1e0>] unmap_vmas+0x58/0xc4
[ 261.984865] [<ffff0000082051d4>] exit_mmap+0xcc/0x1b8
[ 261.989926] [<ffff0000080abaa0>] mmput+0x58/0x11c
[ 261.994644] [<ffff00000824f658>] flush_old_exec+0x2c8/0x64c
[ 262.000228] [<ffff0000082acf7c>] load_elf_binary+0x358/0x123c
[ 262.005985] [<ffff00000824fb04>] search_binary_handler+0x128/0x200
[ 262.012172] [<ffff00000825046c>] do_execveat_common.isra.41+0x4fc/0x6bc
[ 262.018791] [<ffff000008250838>] SyS_execve+0x34/0x40
[ 262.023845] Exception stack(0xffff00001150bec0 to 0xffff00001150c000)
[ 262.030293] bec0: 0000e05fb31a5ba8 0000e05fb3095d20 0000000000000000 0000e05fb3095e60
[ 262.038129] bee0: 0000e05fb3095f04 0000000000000000 0000000000000000 0000000000000031
[ 262.045964] bf00: 00000000000000dd 00000000fffffff0 0000000000000028 00000000fffffff0
[ 262.053802] bf20: 0000000000000000 0000e05fb31a44c2 0000e05fb3095cf1 0000000000000000
[ 262.061638] bf40: 0000000000000030 0000000000000030 0000000000000000 0000e05f8cefd588
[ 262.069474] bf60: 0000e05fb3095d50 000000000000000a 00000000ffffffff 0000e05f8cefd588
[ 262.077310] bf80: 0000e05fb3095ed8 000000000000125c 0000000000000016 0000000000000000
[ 262.085146] bfa0: 0000e05f8cefd588 0000e05fb3095d90 0000e05fb3179928 0000e05fb3095d20
[ 262.092982] bfc0: 0000e05fb3180a58 00000000a0000000 0000e05fb31a5ba8 00000000000000dd
[ 262.100816] bfe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 262.108658] [<ffff000008083ac0>] el0_svc_naked+0x34/0x38
[ 262.113976] ---[ end trace c3eb91ff5caf1be6 ]---
[ 262.433120] type=1400 audit(1620843345.964:142): avc: denied { dac_read_search } for pid=7882 comm="main" capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=1
[ 262.450687] type=1400 audit(1620843353.076:143): avc: denied { open } for pid=7960 comm="crash_dump64" path="/data/system_ce/0/accounts_ce.db-shm" dev="mmcblk0p14" ino=262494 scontext=u:r:crash_dump:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=1
[ 262.825454] BUG: Bad page map in process Binder:5914_F pte:e00000839f2bd3 pmd:d7f9f003
[ 262.825530] init: Untracked pid 7960 exited with status 0
[ 262.833491] page:ffff7e00000e7c80 count:2 mapcount:-1 mapping:ffff80005d570f20 index:0x128
[ 262.847205] flags: 0x107c(referenced|uptodate|dirty|lru|active|private)
[ 262.853854] raw: 000000000000107c ffff80005d570f20 0000000000000128 00000002fffffffe
[ 262.861641] raw: ffff7e00001c0d20 ffff7e0000c3c560 ffff80005dc1d208 ffff80005e018800
[ 262.869409] page dumped because: bad pte
[ 262.873347] page->mem_cgroup:ffff80005e018800
[ 262.877724] addr:0000000012d00000 vm_flags:00100073 anon_vma:ffff800053b2ec08 mapping:ffff8000534ffae8 index:100
[ 262.887929] file:dev/ashmem/dalvik-main space (region space) fault: (null) mmap:shmem_mmap readpage: (null)
[ 262.899267] CPU: 3 PID: 7962 Comm: Binder:5914_F Tainted: G W 4.14.98-00006-g5f4394a-dirty #3
[ 262.908926] Hardware name: Freescale i.MX8QM MEK (DT)
[ 262.913984] Call trace:
[ 262.916442] [<ffff00000808b198>] dump_backtrace+0x0/0x414
[ 262.921850] [<ffff00000808b5c0>] show_stack+0x14/0x1c
[ 262.926919] [<ffff000008a88088>] dump_stack+0x90/0xb0
[ 262.931982] [<ffff0000081f95d4>] print_bad_pte+0x170/0x208
[ 262.937478] [<ffff0000081fbb40>] unmap_page_range+0x5e0/0x838
[ 262.943227] [<ffff0000081fbde8>] unmap_single_vma+0x50/0xa4
[ 262.948804] [<ffff0000081fc1e0>] unmap_vmas+0x58/0xc4
[ 262.953861] [<ffff0000082051d4>] exit_mmap+0xcc/0x1b8
[ 262.958929] [<ffff0000080abaa0>] mmput+0x58/0x11c
[ 262.963648] [<ffff0000080b3ba8>] do_exit+0x260/0x9dc
[ 262.968623] [<ffff0000080b4390>] do_group_exit+0x3c/0x98
[ 262.973941] [<ffff0000080b43fc>] __wake_up_parent+0x0/0x28
[ 262.979437] Exception stack(0xffff000010f23ec0 to 0xffff000010f24000)

 

Regards,
Vinothkumar Sekar
0 Kudos
2 Replies

812 Views
igorpadykov
NXP Employee
NXP Employee

Hi Vinothkumar

 

for custom board hanging first may be recommended to run ddr test and rebuild all

image from scratch using ddr settings found from ddr test

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8-8X-Family-DDR-Tools-Release/ta-p/...

 

Best regards
igor

0 Kudos

802 Views
vinothkumars
Senior Contributor IV

Thank you Igor for the reply.

 

I done everything as per the document. These observation we got one of the custom board not in all board.

 

Regards,
Vinothkumar Sekar
0 Kudos