查看: 3477|回复: 11

[求助] HI3516a 运行一段时间之后出现内核崩溃的问题

[复制链接]
发表于 2017-2-20 11:52:23 | 显示全部楼层 |阅读模式
这个问题困扰了好几周了,实在是不知道问题出在那里了,大哥们指导一下呀

HI3516A的板子,上面运行程序,总是运行一段时间之后级内核崩溃,具体情况如下:

Chip:hi3516a;
Sensor:mn34220
Sdk:Hi3516A V100R001C01SPC060

出现崩溃的打印有几种情况,出现的时间不固定,出现设备就挂掉了
第一种:
wired, tx skb[611](c6e21528) != skb(c6e20528)
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 17 [#1] ARM
Modules linked in: hi_mipi(O) hi3516a_adec(PO) hi3516a_aenc(PO) hi3516a_ao(PO) hi3516a_ai(PO) hi3516a_aio(PO) acodec(PO) piris(O) pwm(O) sensor_i2c(O) hi3516a_ive(PO) hi3516a_vda(PO) hi3516a_jpege(PO) hi3516a_h265e(PO) hi3516a_h264e(PO) hi3516a_chnl(PO) hi3516a_venc(PO) hi3516a_rc(PO) hifb(PO) hi3516a_vou(PO) hi3516a_vpss(PO) hi3516a_viu(PO) hi3516a_isp(PO) hi3516a_vgs(PO) hi3516a_region(PO) hi3516a_tde(PO) hi3516a_sys(PO) hi3516a_base(PO) hi_media(O) mmz(O)
CPU: 0 Tainted: P O (3.4.35 #13)
PC is at higmac_xmit_release_gso+0x34/0x188
LR is at higmac_xmit_release_skb+0x10c/0x260
pc : [<c02d6f4c>] lr : [<c02d71ac>] psr: 60000193
sp : c052fdb8 ip : 00000000 fp : c052fde4
r10: 0000098c r9 : c7990bc0 r8 : 00000263
r7 : c6e20528 r6 : ffddcc60 r5 : c6e20528 r4 : ffddcc60
r3 : 00000300 r2 : 00000000 r1 : ffddcc60 r0 : c7990bc0
Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 10c53c7d Table: 86d5c059 DAC: 00000015

PC: 0xc02d6ecc:
6ecc e3a050a0 e3a03000 e1a04003 e0252195 e7953103 e300060c e30914b0 e34c004e
6eec e34c1042 e3a02f5b e58d3000 e1a03004 e2844001 eb0442a3 e3540028 e1a03004
6f0c 1afffff2 e3e00000 eaffffdc e1a0c00d e92ddff8 e24cb004 e5902018 e30f35a8
6f2c e34c3054 e5915008 e1a09000 e1a04001 e0822102 e595c090 e0833182 e5933024
6f4c e5dc8000 e3c33c01 e3530c02 0a00004c e1dc30b2 e3530000 1a000001 e3580000
6f6c 0a000038 e594700c e599300c e1570003 1a000046 e5993000 e0877107 e308a590
6f8c e34ca053 e0837287 e3036268 e59ac000 e34c6056 e5972008 e3a03001 e5960000
6fac e1a0c62c e7eb1052 e06cc622 e1d720bc e080028c ebf4f02b e3580000 11a05007

LR: 0xc02d712c:
712c f57ff04f f57ff04f e51b0030 e1a02aa2 e5943014 e1550000 e1812a82 e58325ac
714c 0a00001e e3a03001 e50b3034 e1a082c5 e5946064 e1a03288 e1a0a108 e0866003
716c e5967008 e3570000 0a000048 e5943058 e793200a e1520007 1a00003a e5943078
718c e2833001 e5843078 e5962014 e1530002 1a000028 e1a00004 e1a01006 ebffff5a
71ac e2509000 aaffffcf e51b0034 e3500001 0a000002 e1a00009 e24bd028 e89daff0
71cc e5943080 e59331f8 e593203c e3120001 0afffff7 e10f1000 f10c0080 e593203c
71ec e3c20001 e583003c e121f001 e3120001 1a00000b e30f35a8 e34c3054 e5933000
720c e5933444 e5933014 e3130002 0affffe8 e5941018 e3000728 e34c004e eb0441d9

SP: 0xc052fd38:
fd38 00000003 60000193 10624dd3 c052fd50 c053a7bc c02d6f4c 60000193 ffffffff
fd58 c052fda4 00000263 c052fde4 c052fd70 c000dc98 c0008300 c7990bc0 ffddcc60
fd78 00000000 00000300 ffddcc60 c6e20528 ffddcc60 c6e20528 00000263 c7990bc0
fd98 0000098c c052fde4 00000000 c052fdb8 c02d71ac c02d6f4c 60000193 ffffffff
fdb8 0002ee64 c7990bc0 00004c60 ffddcc60 c6e20528 00000263 00000000 0000098c
fdd8 c052fe24 c052fde8 c02d71ac c02d6f24 00000020 00000080 00000000 00004ce0
fdf8 c052fe1c c7990800 20000113 c055f980 00000000 c052e000 00000006 00000100
fe18 c052fe6c c052fe28 c02d8bd4 c02d70ac c052fe5c c052fe38 0000efb9 00000000

FP: 0xc052fd64:
fd64 c052fd70 c000dc98 c0008300 c7990bc0 ffddcc60 00000000 00000300 ffddcc60
fd84 c6e20528 ffddcc60 c6e20528 00000263 c7990bc0 0000098c c052fde4 00000000
fda4 c052fdb8 c02d71ac c02d6f4c 60000193 ffffffff 0002ee64 c7990bc0 00004c60
fdc4 ffddcc60 c6e20528 00000263 00000000 0000098c c052fe24 c052fde8 c02d71ac
fde4 c02d6f24 00000020 00000080 00000000 00004ce0 c052fe1c c7990800 20000113
fe04 c055f980 00000000 c052e000 00000006 00000100 c052fe6c c052fe28 c02d8bd4
fe24 c02d70ac c052fe5c c052fe38 0000efb9 00000000 0000efb9 c7990bc0 c000eb20
fe44 00000000 c053a848 c055f980 00000000 c052e000 00000006 00000100 c052fe8c

R0: 0xc7990b40:
0b40 00000000 00000000 00000000 00010000 0000ffff 00000000 00000000 00000000
0b60 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0b80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0ba0 00000000 c79c3c00 00000000 00000000 00000000 00000000 00000000 00000000
0bc0 ffd80000 87a40000 0000020d 0000020d 00000440 fe090000 00000000 ffdf0000
0be0 879d8000 00000400 c7811000 00008000 00013c7c ffde8000 879f0000 00000400
0c00 00000000 00008000 0001387c ffde0000 879f8000 00000400 c7812000 00008000
0c20 0002ee67 ffdd8000 87a00000 00000400 00000000 00008000 0002ee64 c054f708

R1: 0xffddcbe0:
cbe0 87bf10aa 25ea0055 00000000 00000000 00000000 0002ee60 00000000 00000000
cc00 87bf28aa 23280055 00000000 00000000 00000000 0002ee61 00000000 00000000
cc20 871000aa 20e60055 00000000 00000000 00000000 0002ee62 00000000 00000000
cc40 871000aa 20e60055 00000000 00000000 00000000 0002ee63 00000000 00000000
cc60 870de0aa 25e90055 c6e20528 00000000 00000000 0002ee64 00000000 00000000
cc80 87bf28aa 25ea0055 c6e219a8 00000000 00000000 0002ee65 00000000 00000000
cca0 87bf10aa 25ea0055 c6e216a8 00000000 00000000 0002ee66 00000000 00000000
ccc0 8712f8aa 255d0055 c6e21828 00000186 00000000 0002ee67 00000000 00000000

R4: 0xffddcbe0:
cbe0 87bf10aa 25ea0055 00000000 00000000 00000000 0002ee60 00000000 00000000
cc00 87bf28aa 23280055 00000000 00000000 00000000 0002ee61 00000000 00000000
cc20 871000aa 20e60055 00000000 00000000 00000000 0002ee62 00000000 00000000
cc40 871000aa 20e60055 00000000 00000000 00000000 0002ee63 00000000 00000000
cc60 870de0aa 25e90055 c6e20528 00000000 00000000 0002ee64 00000000 00000000
cc80 87bf28aa 25ea0055 c6e219a8 00000000 00000000 0002ee65 00000000 00000000
cca0 87bf10aa 25ea0055 c6e216a8 00000000 00000000 0002ee66 00000000 00000000
ccc0 8712f8aa 255d0055 c6e21828 00000186 00000000 0002ee67 00000000 00000000

R5: 0xc6e204a8:
04a8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04c8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04e8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0508 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0528 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0548 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0568 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0588 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

R6: 0xffddcbe0:
cbe0 87bf10aa 25ea0055 00000000 00000000 00000000 0002ee60 00000000 00000000
cc00 87bf28aa 23280055 00000000 00000000 00000000 0002ee61 00000000 00000000
cc20 871000aa 20e60055 00000000 00000000 00000000 0002ee62 00000000 00000000
cc40 871000aa 20e60055 00000000 00000000 00000000 0002ee63 00000000 00000000
cc60 870de0aa 25e90055 c6e20528 00000000 00000000 0002ee64 00000000 00000000
cc80 87bf28aa 25ea0055 c6e219a8 00000000 00000000 0002ee65 00000000 00000000
cca0 87bf10aa 25ea0055 c6e216a8 00000000 00000000 0002ee66 00000000 00000000
ccc0 8712f8aa 255d0055 c6e21828 00000186 00000000 0002ee67 00000000 00000000

R7: 0xc6e204a8:
04a8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04c8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04e8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0508 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0528 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0548 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0568 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0588 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

R9: 0xc7990b40:
0b40 00000000 00000000 00000000 00010000 0000ffff 00000000 00000000 00000000
0b60 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0b80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0ba0 00000000 c79c3c00 00000000 00000000 00000000 00000000 00000000 00000000
0bc0 ffd80000 87a40000 0000020d 0000020d 00000440 fe090000 00000000 ffdf0000
0be0 879d8000 00000400 c7811000 00008000 00013c7c ffde8000 879f0000 00000400
0c00 00000000 00008000 0001387c ffde0000 879f8000 00000400 c7812000 00008000
0c20 0002ee67 ffdd8000 87a00000 00000400 00000000 00008000 0002ee64 c054f708
Process swapper (pid: 0, stack limit = 0xc052e2e8)
Stack: (0xc052fdb8 to 0xc0530000)
fda0: 0002ee64 c7990bc0
fdc0: 00004c60 ffddcc60 c6e20528 00000263 00000000 0000098c c052fe24 c052fde8
fde0: c02d71ac c02d6f24 00000020 00000080 00000000 00004ce0 c052fe1c c7990800
fe00: 20000113 c055f980 00000000 c052e000 00000006 00000100 c052fe6c c052fe28
fe20: c02d8bd4 c02d70ac c052fe5c c052fe38 0000efb9 00000000 0000efb9 c7990bc0
fe40: c000eb20 00000000 c053a848 c055f980 00000000 c052e000 00000006 00000100
fe60: c052fe8c c052fe70 c001fda8 c02d8bb4 00000001 00000018 c055f9dc c055f9c0
fe80: c052fedc c052fe90 c001fff8 c001fd40 c052ff64 c052e000 410fc075 c053a820
fea0: c052e010 c055f980 0000000a c053c458 c0016540 c0546788 00000039 00000000
fec0: c052ff64 c052e000 410fc075 00000000 c052feec c052fee0 c0020434 c001ff3c
fee0: c052ff0c c052fef0 c000e948 c00203ec 00000039 c0536050 fe402000 c052ff30
ff00: c052ff2c c052ff10 c0008464 c000e910 c000eb1c c000eb20 60000013 ffffffff
ff20: c052ff84 c052ff30 c000dd00 c0008440 00000000 00000000 00000000 00000000
ff40: c052e000 c05580c8 c052e000 c0539548 c052e000 410fc075 00000000 c052ff84
ff60: c052ff88 c052ff78 c000eb1c c000eb20 60000013 ffffffff c052ffac c052ff88
ff80: c000edb4 c000eaf8 00000000 c0536650 c0536000 ffffffff c067f500 80004059
ffa0: c052ffbc c052ffb0 c03e575c c000ed44 c052fff4 c052ffc0 c050c820 c03e56f4
ffc0: ffffffff ffffffff c050c2dc 00000000 00000000 c05292cc 10c53c7d c053604c
ffe0: c05292c8 c053953c 00000000 c052fff8 80008040 c050c55c 00000000 00000000
Backtrace:
[<c02d6f18>] (higmac_xmit_release_gso+0x0/0x188) from [<c02d71ac>] (higmac_xmit_release_skb+0x10c/0x260)
[<c02d70a0>] (higmac_xmit_release_skb+0x0/0x260) from [<c02d8bd4>] (higmac_bfproc_recv+0x2c/0x314)
[<c02d8ba8>] (higmac_bfproc_recv+0x0/0x314) from [<c001fda8>] (tasklet_action+0x74/0xc4)
[<c001fd34>] (tasklet_action+0x0/0xc4) from [<c001fff8>] (__do_softirq+0xc8/0x15c)
r7:c055f9c0 r6:c055f9dc r5:00000018 r4:00000001
[<c001ff30>] (__do_softirq+0x0/0x15c) from [<c0020434>] (irq_exit+0x54/0x5c)
[<c00203e0>] (irq_exit+0x0/0x5c) from [<c000e948>] (handle_IRQ+0x44/0x8c)
[<c000e904>] (handle_IRQ+0x0/0x8c) from [<c0008464>] (gic_handle_irq+0x30/0x58)
r6:c052ff30 r5:fe402000 r4:c0536050 r3:00000039
[<c0008434>] (gic_handle_irq+0x0/0x58) from [<c000dd00>] (__irq_svc+0x40/0x50)
Exception stack(0xc052ff30 to 0xc052ff78)
ff20: 00000000 00000000 00000000 00000000
ff40: c052e000 c05580c8 c052e000 c0539548 c052e000 410fc075 00000000 c052ff84
ff60: c052ff88 c052ff78 c000eb1c c000eb20 60000013 ffffffff
r6:ffffffff r5:60000013 r4:c000eb20 r3:c000eb1c
[<c000eaec>] (default_idle+0x0/0x38) from [<c000edb4>] (cpu_idle+0x7c/0xb8)
[<c000ed38>] (cpu_idle+0x0/0xb8) from [<c03e575c>] (rest_init+0x74/0x78)
r8:80004059 r7:c067f500 r6:ffffffff r5:c0536000 r4:c0536650
r3:00000000
[<c03e56e8>] (rest_init+0x0/0x78) from [<c050c820>] (start_kernel+0x2d0/0x2dc)
[<c050c550>] (start_kernel+0x0/0x2dc) from [<80008040>] (0x80008040)
Code: e0822102 e595c090 e0833182 e5933024 (e5dc8000)
---[ end trace 9e26e9d0119408ed ]---
Kernel panic - not syncing: Fatal exception in interrupt
SYS_GetLocalCurPts hi_sched_clock error u64TimeNow=879211909557,u64TimeLast=965978807350
SYS_GetLocalCurPts hi_sched_clock error u64TimeNow=879220139133,u64TimeLast=965972855188


第二种:
================vpss 0 register debug info=============
0000: 040c0009 00000000 0000000e 00000000
0010: 0437077f 00000000 00000000 00000000
0020: 8c17c540 8c376940 07800780 80000000
0030: 90962ea0 90962eb0 90962ec0 90b70dc0
0040: 07800780 90c77d40 90c77d40 000001e0
0050: 00000000 00000000 00000000 00000000
0060: 00000000 00000000 00000000 00000000
0070: 00000000 00000000 00000000 00000000
0080: 00000000 00000000 00000000 00000000
0090: 00000000 00000000 00000000 00000000
00a0: 00000000 00000000 00000000 00000000
00b0: 00000000 00000000 00000000 00000001
00c0: 9064e000 9064e010 9064e020 9085bf20
00d0: 07800780 00000003 023f02bf 8d3904c0
00e0: 8d3928c0 8d393ac0 8d3f6ac0 02c002c0
00f0: 00000000 1fff1fff 00000000 00000000
0100: 00000000 00000000 00000000 00000000
0110: 1fff1fff 00000000 00000000 00000000
0120: 00000000 00000000 00000003 0437077f
0130: 8d08cf80 8d091300 8d0934c0 8d28d8c0
0140: 07800780 00000000 00000000 00000000
0150: 00000000 00000000 00000000 00000000
0160: 00000000 00000000 00000000 00000000
0170: 00000000 00000000 00000000 00000000
0180: 0437077f 00000000 00000000 00000000
0190: 00000000 00000000 00000000 00000000
01a0: 00000000 0fff0fff 00000000 0fff0fff
01b0: 00000000 0fff0fff 00000000 00000000
01c0: 00000000 00000000 00000000 00000000
01d0: 00000000 00000000 00000000 00000000
01e0: 00000000 00000000 00000000 00000000
01f0: 00000000 00000000 00000000 00000007
0200: 88000900 88001f00 88001500 88002800
0210: 00000000 00000000 00000000 00000000
0220: 00000000 00000000 00000000 00000000
0230: 00000000 00000000 00000000 00000000
0240: 90cbb000 00000000 90cbb600 00000000



Kernel panic - not syncing:
ASSERT failed at:
>File name: /home/pub/temp/platform_ipc/mpp/code/mkp/../arch/hi3516a/hal/vpss/vpss_drv.c
>Function : VPSS_DRV_IsWrongInt
>Line No. : 4149
>Condition: 0

第三种:
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801c440
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801c440
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801c920
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801c920
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00
vgs:0 pVgs->VPSS_PNEXT:0x0 u32NextPhyAddr:0x8801ce00


楼主热帖
发表于 2017-10-29 10:51:32 | 显示全部楼层
你好。你的问题解决了吗
 楼主| 发表于 2018-1-8 17:12:02 | 显示全部楼层
chenglei 发表于 2017-10-29 10:51
你好。你的问题解决了吗

是硬件问题
发表于 2018-1-9 09:22:52 | 显示全部楼层

你好 请问是什么硬件问题,我这边测试也有个别板子出现这种问题,还请指导一下
发表于 2018-1-16 11:01:42 | 显示全部楼层
我这测试会出现第二种问题:
Kernel panic - not syncing:
ASSERT failed at:
>File name: /home/pub/temp/platform_ipc/mpp/code/mkp/../arch/hi3516a/hal/vpss/vpss_drv.c
>Function : VPSS_DRV_IsWrongInt
>Line No. : 4149
>Condition: 0

楼市的板子是硬件哪里的问题?
发表于 2018-1-16 14:11:57 | 显示全部楼层
这了你问题不好定位的
 楼主| 发表于 2018-2-1 20:28:38 | 显示全部楼层
是硬件走线的问题,导致了DDR的错误,你们可以下载一个memtester这个工具,测试你们的DDR,我测试的时候会有报错,后来重新lay了一块板子就好了
发表于 2018-4-16 14:40:41 | 显示全部楼层
dazhazha 发表于 2018-2-1 20:28
是硬件走线的问题,导致了DDR的错误,你们可以下载一个memtester这个工具,测试你们的DDR,我测试的时候会 ...

请教一下,你当时测试DDR的时候,出现的什么问题呢,有没有错误代码,现在我也是遇到类似的内核崩溃问题,多谢了哈,
发表于 2018-7-4 14:44:41 | 显示全部楼层
dazhazha 发表于 2018-2-1 20:28
是硬件走线的问题,导致了DDR的错误,你们可以下载一个memtester这个工具,测试你们的DDR,我测试的时候会 ...

memtester怎么用。我测试之后基本都ok啊。
发表于 2018-7-5 14:32:20 | 显示全部楼层
好的,学习了
发表于 2019-1-11 17:59:35 | 显示全部楼层
请教下 ,你的第三种错误 只是VGS 处理错了吗?程序还可以正常运行只是获取不到图像了吧,我现在碰到第三种问题,运行时间不固定,有时几天才会现 ,有时10来天才会出现这种问题。有些板怎么也不会出现这种问题了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

© 2008-2017 当前位置 易百纳技术社区论坛 返回 易百纳技术社区 ( 苏ICP备14036084 )   Powered by Discuz! X3.1
快速回复 返回顶部 返回列表