Repository for using Microchip EVB-KSZ9477 board. Product Supported: KSZ9477, KSZ9567, KSZ9897, KSZ9896, KSZ8567, KSZ8565, KSZ9893, KSZ9563, KSZ8563, LAN9646, Phys(KSZ9031/9131, LAN8770
76
stars
78
forks
source link
New kernel crashes when using SPI #8
Closed
embeddman closed 3 years ago
I've noticed that new crashes when using SPI operations, even openning web interface (we use KSZ9567R)
There is kernel message:
Unable to handle kernel NULL pointer dereference at virtual address 00000008 pgd = ce858000 [00000008] pgd=2e849831, pte=00000000, ppte=00000000 Internal error: Oops: 17 [#1] ARM Modules linked in: CPU: 0 PID: 1010 Comm: regs_bin Not tainted 4.9.143 #1 Hardware name: Atmel SAMA5 task: cf6ed080 task.stack: ceeb4000 PC is at kernfs_put_active+0x0/0x50 LR is at kernfs_fop_read+0xa8/0x190 pc : [] lr : [] psr: 20000013
sp : ceeb5ed0 ip : 00000004 fp : cf71f70c
r10: bebffa5c r9 : 00000000 r8 : 00000000
r7 : ceeb5f88 r6 : cf71f6c0 r5 : 00000001 r4 : cf71f700
r3 : cf71f6c0 r2 : 00000001 r1 : 00000000 r0 : 00000000
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 2e858059 DAC: 00000051
Process regs_bin (pid: 1010, stack limit = 0xceeb4208)
Stack: (0xceeb5ed0 to 0xceeb6000)
5ec0: 00000000 00000000 8a26077a ceead900
5ee0: bebffa5c ceead900 ceeb5f88 c01076c4 ceeb4000 00000003 00000000 c01a235c
5f00: 00000000 00000000 00000001 ceeb5f10 cee49a10 cf08de58 c01c6608 ce80f000
5f20: cf63002c 00000001 cf630000 ffffff9c 00000003 ceeadc00 00000000 a0000013
5f40: 00008000 00000000 00000001 bebffa5c ceead900 ceeb5f88 c01076c4 c01a3050
5f60: 00000008 00000000 00000051 ceead900 ceead900 00000001 bebffa5c c01076c4
5f80: ceeb4000 c01a3eac 00000000 00000000 0000008c 00021174 00000001 bebffa48
5fa0: 00000003 c01074e0 00021174 00000001 00000003 bebffa5c 00000001 00000003
5fc0: 00021174 00000001 bebffa48 00000003 00000002 00000000 00000000 00000000
5fe0: b6ec6519 bebffa48 00010b47 b6ec64f6 00000030 00000003 00000000 00000000
[] (kernfs_put_active) from [] (kernfs_fop_read+0xa8/0x190)
[] (kernfs_fop_read) from [] (__vfs_read+0x20/0x110)
[] (__vfs_read) from [] (vfs_read+0x8c/0x114)
[] (vfs_read) from [] (SyS_read+0x44/0x9c)
[] (SyS_read) from [] (ret_fast_syscall+0x0/0x48)
Code: e3a00000 e12fff1e e3a00000 e49df004 (e5903008)
---[ end trace 839a80eb84127327 ]---
Unable to handle kernel NULL pointer dereference at virtual address 00000004
pgd = c0004000
[00000004] pgd=00000000
Internal error: Oops: 817 [#2] ARM
Modules linked in:
CPU: 0 PID: 1010 Comm: regs_bin Tainted: G D 4.9.143 #1
Hardware name: Atmel SAMA5
task: cf6ed080 task.stack: ceeb4000
PC is at kernfs_put_open_node+0x3c/0x8c
LR is at kernfs_put_open_node+0x1c/0x8c
pc : [] lr : [] psr: a0000093
sp : ceeb5ce0 ip : 00000100 fp : ceead908
r10: 00000008 r9 : cee49a10 r8 : cf08dbb0
r7 : cf08eb40 r6 : cec4e5a0 r5 : cf71f700 r4 : cf71fc80
r3 : 00000000 r2 : 00000000 r1 : 60000013 r0 : 00000200
Flags: NzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 2ee74059 DAC: 00000051
Process regs_bin (pid: 1010, stack limit = 0xceeb4208)
Stack: (0xceeb5ce0 to 0xceeb6000)
5ce0: cf71f700 ceead900 cf08eb40 c01fd5c8 ceead900 00000000 cf08eb40 c01a48f0
5d00: 00000000 00000000 ced7b840 cf6ed374 cf6ed080 c0b373a0 cee7f3c0 00000000
5d20: 00000017 cf6ed080 00000000 c012ca48 c0b0967c cf6ed080 cefcf700 00000001
5d40: ceeb5d48 c0117000 0000000b c01680d8 00000000 c0b368c4 c0b067a8 ceeb5e80
5d60: 60000113 0000000b 00000017 cf6ed080 00000000 c010a8d4 ceeb4208 0000000b
5d80: 00000008 00000017 ceeb5e80 cefcf700 00000008 cefcf738 00000014 c0112abc
5da0: 00000017 c010e7ec ceeb5de8 ceeb4000 ceeb4000 00010000 ceeb5de4 c0b068fc
5dc0: 00000017 c010e53c 00000008 ceeb5e80 ceeb4000 bebffa5c cf71f70c c01012cc
5de0: c0b44280 00000000 ceeb5de8 ceeb5de8 cf71f700 cec08c00 cec08804 0000007c
5e00: 00000000 00000000 cec08804 c0401f34 00000000 cec08800 cf71f6c0 c0475c90
5e20: 00000000 00007fff 00000001 00000001 00000001 cf798448 c0b22100 cf71f6c0
5e40: 00007fff c048ce70 0000007c c01af334 00000015 cf798448 00000001 00000000
5e60: cf71f6c0 cf79a000 c01fc854 20000013 ffffffff ceeb5eb4 00000000 c010b078
5e80: 00000000 00000000 00000001 cf71f6c0 cf71f700 00000001 cf71f6c0 ceeb5f88
5ea0: 00000000 00000000 bebffa5c cf71f70c 00000004 ceeb5ed0 c01fdef4 c01fc854
5ec0: 20000013 ffffffff 00000051 bf000000 00000000 00000000 8a26077a ceead900
5ee0: bebffa5c ceead900 ceeb5f88 c01076c4 ceeb4000 00000003 00000000 c01a235c
5f00: 00000000 00000000 00000001 ceeb5f10 cee49a10 cf08de58 c01c6608 ce80f000
5f20: cf63002c 00000001 cf630000 ffffff9c 00000003 ceeadc00 00000000 a0000013
5f40: 00008000 00000000 00000001 bebffa5c ceead900 ceeb5f88 c01076c4 c01a3050
5f60: 00000008 00000000 00000051 ceead900 ceead900 00000001 bebffa5c c01076c4
5f80: ceeb4000 c01a3eac 00000000 00000000 0000008c 00021174 00000001 bebffa48
5fa0: 00000003 c01074e0 00021174 00000001 00000003 bebffa5c 00000001 00000003
5fc0: 00021174 00000001 bebffa48 00000003 00000002 00000000 00000000 00000000
5fe0: b6ec6519 bebffa48 00010b47 b6ec64f6 00000030 00000003 00000000 00000000
[] (kernfs_put_open_node) from [] (kernfs_fop_release+0x24/0x48)
[] (kernfs_fop_release) from [] (fput+0x84/0x1c0)
[] ( fput) from [] (task_work_run+0x70/0xa0)
[] (task_work_run) from [] (do_exit+0x278/0x914)
[] (do_exit) from [] (die+0x260/0x26c)
[] (die) from [] (do_kernel_fault.part.0+0x64/0x1e8)
[] ( do_kernel_fault.part.0) from [] (do_bad_area+0x0/0x88)
[] (do_bad_area) from [] (do_page_fault+0x0/0x2b0)
[] (do_page_fault) from [<0000007c>] (0x7c)
Code: e595302c e3a0cc01 e5952028 e3a00c02 (e5823004)
---[ end trace 839a80eb84127328 ]---
Fixing recursive fault but reboot is needed!