牛卧堂MCU技术交流
标题:
NUC980 dma kernel panic issue
[打印本页]
作者:
匿名
时间:
2020-8-7 19:00
标题:
NUC980 dma kernel panic issue
請教一下大家有沒有遇過以下這種kernel panic
dma dma0chan0: got interrupt while active list is empty
Unable to handle kernel NULL pointer dereference at virtual address 00000004
dma dma0chan0: got interrupt while active list is empty
pgd = c48e0000
[00000004] *pgd=048d8831, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] PREEMPT ARM
Modules linked in:
CPU: 0 PID: 584 Comm: modbus_agent Not tainted 4.4.207 #2
Hardware name: NUC980
task: c488b660 ti: c499a000 task.ti: c499a000
PC is at nuc980_dma_desc_put+0x48/0xac
LR is at nuc980_dma_prep_slave_sg+0x84/0x1fc
pc : [<c01b69a0>] lr : [<c01b6e58>] psr: a0000013
sp : c499bc38 ip : c7812138 fp : c499bc4c
r10: c14a8d98 r9 : c78120e8 r8 : c499bca0
r7 : 00000002 r6 : 00000002 r5 : 00000000 r4 : c48ce940
r3 : c7812120 r2 : 00000000 r1 : c78120e8 r0 : c78120b4
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 0005317f Table: 048e0000 DAC: 00000055
Process modbus_agent (pid: 584, stack limit = 0xc499a190)
Stack: (0xc499bc38 to 0xc499c000)
bc20: c499bc58 c78120b4
bc40: c499bc8c c499bc50 c01b6e58 c01b6968 60000013 00000001 c48ce940 c48ce940
bc60: c0098478 c14a8c74 c14a8d98 c499bca0 010d4000 60000013 30003d07 00008a3b
bc80: c499bccc c499bc90 c01d911c c01b6de4 00000003 c499bca0 000008f1 00d0130a
bca0: 00000000 0000098a 00000001 00000011 c14a8c74 c48d4a70 00000013 00002580
bcc0: c499bcfc c499bcd0 c01da290 c01d901c 00d0130b 00000000 c14a8c74 c48d4a00
bce0: c780bc50 c14a8c74 c780bcc8 00000005 c499bd1c c499bd00 c01d4dcc c01da0c0
bd00: c48d4a00 c499bd4c c780bc50 c14a8c74 c499bd44 c499bd20 c01d57c0 c01d4da4
bd20: c01d5744 c48d4a00 c48d4a58 c499bd5f 00000cbd 00000000 c499bda4 c499bd48
bd40: c01c17f8 c01d5754 c499bd7c 00000000 00000000 000018bf 00000000 00000000
bd60: 00000000 00000000 00000000 00000000 003d0900 003d0900 c499bda4 c48d4a00
bd80: 00000008 c4995680 c48d4a58 c4995680 c48d4a00 b6eddb7c c499bdf4 c499bda8
bda0: c01c1f08 c01c16b4 c78882e0 00000500 00000005 00000cbd 00008a3b 7f1c0300
bdc0: 01000415 1a131100 170f1200 00000016 00002580 00002580 c48d4a00 b6eddb7c
bde0: b6eddb7c b6eddb7c c499be44 c499bdf8 c01c2258 c01c1c44 00000001 00000000
be00: c499be2c c499be10 c019fbe0 c78882dc 00000000 00000000 c499be48 c48db8a4
be20: c499be54 c499be30 b6eddb7c c48d4a00 b6eddb7c b6eddb7c c499be5c c499be48
be40: c01c2528 c01c1fb0 c48d4a00 c90e0000 c499be7c c499be60 c01bdcdc c01c24ec
be60: 00005402 c48d4a00 c495eb40 b6eddb7c c499befc c499be80 c01bbae8 c01bdc5c
be80: c4890940 00000353 b6b1e4c0 00000000 00000000 b6b1e528 b6b1e528 00000001
bea0: c499bf4c c499beb0 c006afdc c0069318 ffffffff 00017df4 c7889320 c499bf78
bec0: 00000002 00017df4 c499bf44 c499bed8 c00b56d0 c011aa8c c495eb40 00000005
bee0: 00005402 b6eddb7c 00000005 c759ccb8 c499bf7c c499bf00 c00c7184 c01bb6ac
bf00: 00000001 c026e7a4 00008000 c481756c c499bf34 c499bf20 c0045b2c c00459dc
bf20: 00000001 c495eb40 c499bf54 c499bf38 c00d2368 c00513f0 00004000 b6eddb7c
bf40: 00005402 b6eddb7c c499bf6c c499bf58 c00d23dc c495eb41 c495eb40 00005402
bf60: b6eddb7c 00000005 c499a000 00000000 c499bfa4 c499bf80 c00c73cc c00c6d5c
bf80: 00000000 00005402 b6eddb7c 00000000 00000036 c000ff28 00000000 c499bfa8
bfa0: c000fd40 c00c73a0 00005402 b6eddb7c 00000005 00005402 b6eddb7c 00000000
bfc0: 00005402 b6eddb7c 00000000 00000036 00000000 b6ede020 00001000 b6eddbcc
bfe0: b6f59eb4 b6eddb50 b6f454a4 b6ef98f0 80000010 00000005 00000000 00000000
Backtrace:
[<c01b6958>] (nuc980_dma_desc_put) from [<c01b6e58>] (nuc980_dma_prep_slave_sg+0x84/0x1fc)
r5:c78120b4 r4:c499bc58
[<c01b6dd4>] (nuc980_dma_prep_slave_sg) from [<c01d911c>] (nuc980_prepare_RX_dma+0x110/0x1b8)
r10:00008a3b r9:30003d07 r8:60000013 r7:010d4000 r6:c499bca0 r5:c14a8d98
r4:c14a8c74
[<c01d900c>] (nuc980_prepare_RX_dma) from [<c01da290>] (nuc980serial_set_termios+0x1e0/0x208)
r7:00002580 r6:00000013 r5:c48d4a70 r4:c14a8c74
[<c01da0b0>] (nuc980serial_set_termios) from [<c01d4dcc>] (uart_change_speed+0x38/0x12c)
r9:00000005 r8:c780bcc8 r7:c14a8c74 r6:c780bc50 r5:c48d4a00 r4:c14a8c74
[<c01d4d94>] (uart_change_speed) from [<c01d57c0>] (uart_set_termios+0x7c/0x218)
r7:c14a8c74 r6:c780bc50 r5:c499bd4c r4:c48d4a00
[<c01d5744>] (uart_set_termios) from [<c01c17f8>] (tty_set_termios+0x154/0x1f0)
r8:00000000 r7:00000cbd r6:c499bd5f r5:c48d4a58 r4:c48d4a00 r3:c01d5744
[<c01c16a4>] (tty_set_termios) from [<c01c1f08>] (set_termios+0x2d4/0x318)
r10:b6eddb7c r9:c48d4a00 r8:c4995680 r7:c48d4a58 r6:c4995680 r5:00000008
r4:c48d4a00
[<c01c1c34>] (set_termios) from [<c01c2258>] (tty_mode_ioctl+0x2b8/0x53c)
r7:b6eddb7c r6:b6eddb7c r5:b6eddb7c r4:c48d4a00
[<c01c1fa0>] (tty_mode_ioctl) from [<c01c2528>] (n_tty_ioctl_helper+0x4c/0x178)
r7:b6eddb7c r6:b6eddb7c r5:c48d4a00 r4:b6eddb7c
[<c01c24dc>] (n_tty_ioctl_helper) from [<c01bdcdc>] (n_tty_ioctl+0x90/0x13c)
r5:c90e0000 r4:c48d4a00
[<c01bdc4c>] (n_tty_ioctl) from [<c01bbae8>] (tty_ioctl+0x44c/0xdec)
r7:b6eddb7c r6:c495eb40 r5:c48d4a00 r4:00005402
[<c01bb69c>] (tty_ioctl) from [<c00c7184>] (do_vfs_ioctl+0x438/0x644)
r9:c759ccb8 r8:00000005 r7:b6eddb7c r6:00005402 r5:00000005 r4:c495eb40
[<c00c6d4c>] (do_vfs_ioctl) from [<c00c73cc>] (SyS_ioctl+0x3c/0x64)
r10:00000000 r9:c499a000 r8:00000005 r7:b6eddb7c r6:00005402 r5:c495eb40
r4:c495eb41
[<c00c7390>] (SyS_ioctl) from [<c000fd40>] (ret_fast_syscall+0x0/0x3c)
r8:c000ff28 r7:00000036 r6:00000000 r5:b6eddb7c r4:00005402 r3:00000000
Code: e280c084 0a000007 e5904084 e591503c (e582c004)
Unable to handle kernel NULL pointer dereference at virtual address 00000030
pgd = c48e0000
[00000030] *pgd=048d8831, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#2] PREEMPT ARM
Modules linked in:
CPU: 0 PID: 584 Comm: modbus_agent Tainted: G D 4.4.207 #2
Hardware name: NUC980
task: c488b660 ti: c499a000 task.ti: c499a000
PC is at nuc980_dma_sc_tasklet+0x24/0x84
LR is at tasklet_action+0x7c/0xe4
pc : [<c01b6754>] lr : [<c0021718>] psr: 60000013
sp : c499b990 ip : c499b9a0 fp : c499b99c
r10: 00000101 r9 : c147ccc8 r8 : c499a000
r7 : 00000000 r6 : c147cca0 r5 : c144dfa0 r4 : c7812484
r3 : 00000000 r2 : c78125c8 r1 : 00000001 r0 : c7812554
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 0005317f Table: 048e0000 DAC: 00000055
Process modbus_agent (pid: 584, stack limit = 0xc499a190)
Stack: (0xc499b990 to 0xc499c000)
作者:
匿名
时间:
2020-8-7 19:00
Stack: (0xc499b990 to 0xc499c000)
b980: c499b9bc c499b9a0 c0021718 c01b6740
b9a0: 00000000 c147ccd8 00000006 40000004 c499ba0c c499b9c0 c00219b4 c00216ac
b9c0: c499ba70 c004b28c c499ba72 00400140 0000e091 0000000a c147ccc0 c499a000
b9e0: 60000013 00000000 c1465e74 00000000 c499ba8c 00000001 60000013 c488b660
ba00: c499ba24 c499ba10 c0021df0 c0021918 c499a000 00000000 c499ba44 c499ba28
ba20: c004c014 c0021d58 c499ba58 c00131d8 60000013 f0000000 c499ba54 c499ba48
ba40: c0009024 c004bfc0 c499badc c499ba58 c0013ab0 c0009010 00000000 c147c848
ba60: 00000080 00000000 c147c744 c499bbe8 0000000b c144b728 00000001 60000013
ba80: c488b660 c499badc 60000093 c499baa8 c001eac0 c00131d8 60000013 ffffffff
baa0: c00131c0 c001eaac c499a190 0000000b c0400bb0 00000004 00000817 c4f93c00
bac0: c499bbe8 c499bbe8 c78120e8 c488b660 c499baf4 c499bae0 c001a45c c00130c0
bae0: c499bbe8 00000817 c499bb34 c499baf8 c0016eb0 c001a410 c499bb18 00000002
bb00: c01d91c4 c14a8e60 c499bb44 00000817 c0016c0c 00000004 c144b830 c499bbe8
bb20: c78120e8 c14a8d98 c499bbe4 c499bb38 c00092a0 c0016c1c c499bb64 c499bb48
bb40: c0021718 c01b76bc 00000000 ad11621a 00000006 00000001 c499bb7c c499bb68
bb60: c499bb94 c499bb70 c0039988 c000b308 ffffffff c785e000 00000002 c147c608
bb80: ffffffff 00000000 c499bbbc c499bb98 c0039cf0 c00513f0 00000000 c488b660
bba0: c488b660 c144fab8 c7845220 00000000 c499bbe4 c499bbc0 c035a9a4 c003d3d8
bbc0: 20000013 c01b69a0 a0000013 ffffffff c499bc1c c499bca0 c499bc4c c499bbe8
bbe0: c0013a58 c0009274 c78120b4 c78120e8 00000000 c7812120 c48ce940 00000000
bc00: 00000002 00000002 c499bca0 c78120e8 c14a8d98 c499bc4c c7812138 c499bc38
bc20: c01b6e58 c01b69a0 a0000013 ffffffff c48ce940 c499bc50 c499bc58 c78120b4
bc40: c499bc8c c499bc50 c01b6e58 c01b6968 60000013 00000001 c48ce940 c48ce940
bc60: c0098478 c14a8c74 c14a8d98 c499bca0 010d4000 60000013 30003d07 00008a3b
bc80: c499bccc c499bc90 c01d911c c01b6de4 00000003 c499bca0 000008f1 00d0130a
bca0: 00000000 0000098a 00000001 00000011 c14a8c74 c48d4a70 00000013 00002580
bcc0: c499bcfc c499bcd0 c01da290 c01d901c 00d0130b 00000000 c14a8c74 c48d4a00
bce0: c780bc50 c14a8c74 c780bcc8 00000005 c499bd1c c499bd00 c01d4dcc c01da0c0
bd00: c48d4a00 c499bd4c c780bc50 c14a8c74 c499bd44 c499bd20 c01d57c0 c01d4da4
bd20: c01d5744 c48d4a00 c48d4a58 c499bd5f 00000cbd 00000000 c499bda4 c499bd48
bd40: c01c17f8 c01d5754 c499bd7c 00000000 00000000 000018bf 00000000 00000000
bd60: 00000000 00000000 00000000 00000000 003d0900 003d0900 c499bda4 c48d4a00
bd80: 00000008 c4995680 c48d4a58 c4995680 c48d4a00 b6eddb7c c499bdf4 c499bda8
bda0: c01c1f08 c01c16b4 c78882e0 00000500 00000005 00000cbd 00008a3b 7f1c0300
bdc0: 01000415 1a131100 170f1200 00000016 00002580 00002580 c48d4a00 b6eddb7c
bde0: b6eddb7c b6eddb7c c499be44 c499bdf8 c01c2258 c01c1c44 00000001 00000000
be00: c499be2c c499be10 c019fbe0 c78882dc 00000000 00000000 c499be48 c48db8a4
be20: c499be54 c499be30 b6eddb7c c48d4a00 b6eddb7c b6eddb7c c499be5c c499be48
be40: c01c2528 c01c1fb0 c48d4a00 c90e0000 c499be7c c499be60 c01bdcdc c01c24ec
be60: 00005402 c48d4a00 c495eb40 b6eddb7c c499befc c499be80 c01bbae8 c01bdc5c
be80: c4890940 00000353 b6b1e4c0 00000000 00000000 b6b1e528 b6b1e528 00000001
bea0: c499bf4c c499beb0 c006afdc c0069318 ffffffff 00017df4 c7889320 c499bf78
bec0: 00000002 00017df4 c499bf44 c499bed8 c00b56d0 c011aa8c c495eb40 00000005
bee0: 00005402 b6eddb7c 00000005 c759ccb8 c499bf7c c499bf00 c00c7184 c01bb6ac
bf00: 00000001 c026e7a4 00008000 c481756c c499bf34 c499bf20 c0045b2c c00459dc
bf20: 00000001 c495eb40 c499bf54 c499bf38 c00d2368 c00513f0 00004000 b6eddb7c
bf40: 00005402 b6eddb7c c499bf6c c499bf58 c00d23dc c495eb41 c495eb40 00005402
bf60: b6eddb7c 00000005 c499a000 00000000 c499bfa4 c499bf80 c00c73cc c00c6d5c
bf80: 00000000 00005402 b6eddb7c 00000000 00000036 c000ff28 00000000 c499bfa8
bfa0: c000fd40 c00c73a0 00005402 b6eddb7c 00000005 00005402 b6eddb7c 00000000
bfc0: 00005402 b6eddb7c 00000000 00000036 00000000 b6ede020 00001000 b6eddbcc
bfe0: b6f59eb4 b6eddb50 b6f454a4 b6ef98f0 80000010 00000005 00000000 00000000
Backtrace:
[<c01b6730>] (nuc980_dma_sc_tasklet) from [<c0021718>] (tasklet_action+0x7c/0xe4)
[<c002169c>] (tasklet_action) from [<c00219b4>] (__do_softirq+0xac/0x224)
r7:40000004 r6:00000006 r5:c147ccd8 r4:00000000
[<c0021908>] (__do_softirq) from [<c0021df0>] (irq_exit+0xa8/0x100)
r10:c488b660 r9:60000013 r8:00000001 r7:c499ba8c r6:00000000 r5:c1465e74
r4:00000000
[<c0021d48>] (irq_exit) from [<c004c014>] (__handle_domain_irq+0x64/0xa8)
r4:00000000 r3:c499a000
[<c004bfb0>] (__handle_domain_irq) from [<c0009024>] (asm_do_IRQ+0x24/0x28)
r6:f0000000 r5:60000013 r4:c00131d8 r3:c499ba58
[<c0009000>] (asm_do_IRQ) from [<c0013ab0>] (__irq_svc+0x30/0x70)
Exception stack(0xc499ba58 to 0xc499baa0)
ba40: 00000000 c147c848
ba60: 00000080 00000000 c147c744 c499bbe8 0000000b c144b728 00000001 60000013
ba80: c488b660 c499badc 60000093 c499baa8 c001eac0 c00131d8 60000013 ffffffff
[<c00130b0>] (die) from [<c001a45c>] (__do_kernel_fault.part.0+0x5c/0x400)
r10:c488b660 r9:c78120e8 r8:c499bbe8 r7:c499bbe8 r6:c4f93c00 r5:00000817
r4:00000004
[<c001a400>] (__do_kernel_fault.part.0) from [<c0016eb0>] (do_page_fault+0x2a4/0x2c8)
r7:00000817 r3:c499bbe8
[<c0016c0c>] (do_page_fault) from [<c00092a0>] (do_DataAbort+0x3c/0xbc)
r10:c14a8d98 r9:c78120e8 r8:c499bbe8 r7:c144b830 r6:00000004 r5:c0016c0c
r4:00000817
[<c0009264>] (do_DataAbort) from [<c0013a58>] (__dabt_svc+0x38/0x60)
Exception stack(0xc499bbe8 to 0xc499bc30)
bbe0: c78120b4 c78120e8 00000000 c7812120 c48ce940 00000000
bc00: 00000002 00000002 c499bca0 c78120e8 c14a8d98 c499bc4c c7812138 c499bc38
bc20: c01b6e58 c01b69a0 a0000013 ffffffff
r8:c499bca0 r7:c499bc1c r6:ffffffff r5:a0000013 r4:c01b69a0
[<c01b6958>] (nuc980_dma_desc_put) from [<c01b6e58>] (nuc980_dma_prep_slave_sg+0x84/0x1fc)
r5:c78120b4 r4:c499bc58
[<c01b6dd4>] (nuc980_dma_prep_slave_sg) from [<c01d911c>] (nuc980_prepare_RX_dma+0x110/0x1b8)
r10:00008a3b r9:30003d07 r8:60000013 r7:010d4000 r6:c499bca0 r5:c14a8d98
r4:c14a8c74
[<c01d900c>] (nuc980_prepare_RX_dma) from [<c01da290>] (nuc980serial_set_termios+0x1e0/0x208)
r7:00002580 r6:00000013 r5:c48d4a70 r4:c14a8c74
[<c01da0b0>] (nuc980serial_set_termios) from [<c01d4dcc>] (uart_change_speed+0x38/0x12c)
r9:00000005 r8:c780bcc8 r7:c14a8c74 r6:c780bc50 r5:c48d4a00 r4:c14a8c74
[<c01d4d94>] (uart_change_speed) from [<c01d57c0>] (uart_set_termios+0x7c/0x218)
r7:c14a8c74 r6:c780bc50 r5:c499bd4c r4:c48d4a00
[<c01d5744>] (uart_set_termios) from [<c01c17f8>] (tty_set_termios+0x154/0x1f0)
r8:00000000 r7:00000cbd r6:c499bd5f r5:c48d4a58 r4:c48d4a00 r3:c01d5744
[<c01c16a4>] (tty_set_termios) from [<c01c1f08>] (set_termios+0x2d4/0x318)
r10:b6eddb7c r9:c48d4a00 r8:c4995680 r7:c48d4a58 r6:c4995680 r5:00000008
r4:c48d4a00
[<c01c1c34>] (set_termios) from [<c01c2258>] (tty_mode_ioctl+0x2b8/0x53c)
r7:b6eddb7c r6:b6eddb7c r5:b6eddb7c r4:c48d4a00
[<c01c1fa0>] (tty_mode_ioctl) from [<c01c2528>] (n_tty_ioctl_helper+0x4c/0x178)
r7:b6eddb7c r6:b6eddb7c r5:c48d4a00 r4:b6eddb7c
[<c01c24dc>] (n_tty_ioctl_helper) from [<c01bdcdc>] (n_tty_ioctl+0x90/0x13c)
r5:c90e0000 r4:c48d4a00
[<c01bdc4c>] (n_tty_ioctl) from [<c01bbae8>] (tty_ioctl+0x44c/0xdec)
r7:b6eddb7c r6:c495eb40 r5:c48d4a00 r4:00005402
[<c01bb69c>] (tty_ioctl) from [<c00c7184>] (do_vfs_ioctl+0x438/0x644)
r9:c759ccb8 r8:00000005 r7:b6eddb7c r6:00005402 r5:00000005 r4:c495eb40
[<c00c6d4c>] (do_vfs_ioctl) from [<c00c73cc>] (SyS_ioctl+0x3c/0x64)
r10:00000000 r9:c499a000 r8:00000005 r7:b6eddb7c r6:00005402 r5:c495eb40
r4:c495eb41
[<c00c7390>] (SyS_ioctl) from [<c000fd40>] (ret_fast_syscall+0x0/0x3c)
r8:c000ff28 r7:00000036 r6:00000000 r5:b6eddb7c r4:00005402 r3:00000000
Code: e3a01001 e1530002 12433040 03a03000 (e5932030)
dma dma0chan8: got interrupt while active list is empty
dma dma0chan6: got interrupt while active list is empty
dma dma0chan4: got interrupt while active list is empty
dma dma0chan2: got interrupt while active list is empty
---[ end trace b41f5b77619dd90a ]---
Kernel panic - not syncing: Fatal exception in interrupt
欢迎光临 牛卧堂MCU技术交流 (http://nuvoton-mcu.com/)
Powered by Discuz! X3.2