kendryte / k510_buildroot

Kendryte K510 SDK
BSD 2-Clause "Simplified" License
118 stars 57 forks source link

[Bug]: 系统启动时低概率Unable to handle kernel NULL pointer dereference at virtual address 000000000000006c #420

Closed wangjianxin-canaan closed 1 year ago

wangjianxin-canaan commented 1 year ago

What happened

系统启动时低概率Unable to handle kernel NULL pointer dereference at virtual address 000000000000006c,串口打印如下: [ 19.458523] k510-isp 92600000.isp1: k510isp_video_streamon:start [ 19.466804] imx219_1 3-0010: imx219_get_fmt:mode->width(1920),mode->height(1080) end [ 19.474683] imx219_0 0-0010: imx219_get_fmt:mode->width(1088),mode->height(1920) end [ 19.478219] EXT2-fs (mmcblk0p3): error: couldn't mount because of unsupported optional features (2c0) [ 19.482498] k510-isp 92600000.isp1: k510isp_video_check_format:start [ 19.498177] k510-isp 92600000.isp1: k510isp_video_get_graph_data:start mount: mounting /dev/mmcblk0p3 o[ 19.504790] k510-isp 92600000.isp1: k510isp_video_check_external_subdevs:start n /root/emmc/p3 failed: Invalid [ 19.514780] f2k_video_queue>buffer 00000000930db0c4, output 0x4, addr 0x8000000, image_size 3133440 argument [ 19.526612] k510-isp 92600000.isp1: k510isp_pipeline_set_stream:state(1) [ 19.534394] Unable to handle kernel NULL pointer dereference at virtual address 000000000000006c [ 19.543314] Oops [#1] [ 19.545614] Modules linked in: [ 19.548715] CPU: 1 PID: 160 Comm: v4l2_drm.out Not tainted 4.17.0 #3 [ 19.555088] sepc: 000000000000006c ra : 0000000000000000 sp : ffffffe009d638a0 [ 19.562349] gp : 0000000000000000 tp : ffffffe009a50000 t0 : 0000000000000000 [ 19.569605] t1 : 0000000000000000 t2 : 0000000000000000 s0 : 655f775f6770745f [ 19.576868] s1 : 3070222c70766422 a0 : 70745f305f725f67 a1 : 70222c303a226e65 [ 19.584138] a2 : 00000000775f3030 a3 : ffffffd0045d0084 a4 : ffffffd0045d0080 [ 19.591399] a5 : 0000000000011000 a6 : ffffffd0045d0014 a7 : 0000000000000008 [ 19.598636] s2 : ffffffe00a3e4b90 s3 : 0000000100000000 s4 : 0000000000000001 [ 19.605879] s5 : ffffffe009d638b8 s6 : ffffffe00a3e6330 s7 : ffffffe00a3e4d5c [ 19.613121] s8 : ffffffe00a3e2b68 s9 : ffffffe00a3e2010 s10: 0000000000000000 [ 19.620360] s11: ffffffe00a3e0018 t3 : 0000000000000000 t4 : 0000000000000000 [ 19.627592] t5 : 0000000000000000 t6 : 0000000000000001 [ 19.632912] sstatus: 0000000200000120 sbadaddr: 000000000000006c scause: 000000000000000c [ 19.641110] CPU: 1 PID: 160 Comm: v4l2_drm.out Not tainted 4.17.0 #3 [ 19.647484] Call Trace: [ 19.649969] [] walk_stackframe+0x0/0xa4 [ 19.655403] [] show_stack+0x2c/0x38 [ 19.660484] [] dump_stack+0x64/0x80 [ 19.665572] [] die+0x70/0xf8 [ 19.670048] [] do_page_fault+0x24c/0x358 [ 19.675562] [] ret_from_exception+0x0/0xc [ 19.681164] [] isp_f2k_config+0x2e4/0x390 [ 19.686840] ---[ end trace 8a016c8b59f4c451 ]--- [ 19.691476] Kernel panic - not syncing: Fatal exception

Reproduction steps

不断重启设备,不断进行下面操作: 1.等待系统起来; 2.等待一段时间比如20s 3.reboot 重启设备

Hardware board

k510 crb kit

Software version

No response

Bug frequency

1/1000

Anything else

No response