AM3352内核在执行SPI驱动时出现异常

[ 159.825184] Unable to handle kernel paging request at virtual address 00001b1a
[ 159.835009] pgd = cf720000
[ 159.837855] [00001b1a] *pgd=8f740831, *pte=00000000, *ppte=00000000
[ 159.844450] Internal error: Oops: 17 [#3] PREEMPT ARM
[ 159.849743] Modules linked in: fpga_download(O) rtc_rx8803(O) sec_ctrl(O) ne1617(O) at24(O) gpmc_fpga(O)
[ 159.859732] CPU: 0 PID: 244 Comm: usp_smp Tainted: G D O 4.1.18 #1
[ 159.867206] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 159.873590] task: cf700900 ti: cf71a000 task.ti: cf71a000
[ 159.879270] PC is at kmem_cache_alloc+0x88/0x1dc
[ 159.884117] LR is at single_open+0x28/0x98
[ 159.888410] pc : [<c00f68b0>] lr : [<c012820c>] psr: 20000013
[ 159.888410] sp : cf71bd10 ip : cf71bd38 fp : cf71bd34
[ 159.900435] r10: cf442a90 r9 : c01282f0 r8 : 00024304
[ 159.905908] r7 : 000000d0 r6 : 00001b1a r5 : cf71a000 r4 : cf001e40
[ 159.912745] r3 : 00000000 r2 : 00024304 r1 : 000000d0 r0 : cf001e40
[ 159.919585] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 159.927060] Control: 10c5387d Table: 8f720019 DAC: 00000015
[ 159.933080] Process usp_smp (pid: 244, stack limit = 0xcf71a210)
[ 159.939373] Stack: (0xcf71bd10 to 0xcf71c000)
[ 159.943940] bd00: c016b994 cf678d80 c016b994 00000000
[ 159.952513] bd20: cf475000 c01282f0 cf71bd54 cf71bd38 c012820c c00f6834 c016b994 cf678d80
[ 159.961085] bd40: 00000604 00000000 cf71bd7c cf71bd58 c01282b8 c01281f0 c016b8ac cf678d80
[ 159.969657] bd60: cf15b500 cf786140 cce29bf0 c01282f0 cf71bd8c cf71bd80 c016b8d8 c0128288
[ 159.978229] bd80: cf71bdb4 cf71bd90 c0163a80 c016b8b8 cf678d80 cce29bf0 cf678d88 c01639fc
[ 159.986801] bda0: cf601800 00000000 cf71bde4 cf71bdb8 c010215c c0163a08 cf601800 cf678d80
[ 159.995373] bdc0: cf601800 00000000 00000000 cf71be88 cc802198 cf442a90 cf71bdfc cf71bde8
[ 160.003945] bde0: c010326c c0101fa8 cf71bed0 cf71bf5c cf71be6c cf71be00 c0110350 c0103210
[ 160.012517] be00: cf442a90 cc802198 cc804020 00000000 cf5416c0 cf71be3c 00000000 00000000
[ 160.021089] be20: 00000000 00000000 00000024 cf678d80 cc802198 00000000 0171be6c cce29bf0
[ 160.029661] be40: c0111870 cf678d80 cf71bed0 00000000 cf71bf5c cf63c000 cf71be88 00000000
[ 160.038233] be60: cf71bec4 cf71be70 c0112898 c010fd20 cf71be84 cf63c000 cf71be9c cf71be88
[ 160.046805] be80: cf71be9c 00000000 cf442a90 cce2b660 cf71bedc cf71bea0 c0391a74 cf71bf5c
[ 160.055377] bea0: 00000001 ffffff9c cf63c000 c000fac4 cf71a000 00000000 cf71bf4c cf71bec8
[ 160.063949] bec0: c0113940 c011281c 00000041 0000001a cf442a90 cce2b660 176d180b 00000004
[ 160.072521] bee0: cf63c016 cf71bef0 cf442550 cc86d770 cce29bf0 00000101 00000002 00000058
[ 160.081093] bf00: 00000000 00000000 00000000 c030d60c 00000000 ffffff9c 00000000 cf63c000
[ 160.089665] bf20: 00000005 c000fac4 cf71a000 00000000 ffffff9c 00000012 cf63c000 00000005
[ 160.098237] bf40: cf71bf94 cf71bf50 c0103598 c0113918 cf71bf84 cf71bf60 c007cf00 00000000
[ 160.106808] bf60: 5a490000 00000024 00000100 00000001 00f1cfe8 00000000 00000008 00000005
[ 160.115380] bf80: c000fac4 cf71a000 cf71bfa4 cf71bf98 c0103688 c01034a0 00000000 cf71bfa8
[ 160.123952] bfa0: c000f920 c0103674 00f1cfe8 00000000 002246f8 00000000 000001b6 000001b6
[ 160.132524] bfc0: 00f1cfe8 00000000 00000008 00000005 00000000 002241d8 f0220001 002ca480
[ 160.141096] bfe0: 00000000 be81a8dc b6de68e1 b6e20c46 60000030 002246f8 00000000 00000000
[ 160.149658] Backtrace:
[ 160.152238] [<c00f6828>] (kmem_cache_alloc) from [<c012820c>] (single_open+0x28/0x98)
[ 160.160439] r9:c01282f0 r8:cf475000 r7:00000000 r6:c016b994 r5:cf678d80 r4:c016b994
[ 160.168594] [<c01281e4>] (single_open) from [<c01282b8>] (single_open_size+0x3c/0x74)
[ 160.176794] r7:00000000 r6:00000604 r5:cf678d80 r4:c016b994
[ 160.182767] [<c012827c>] (single_open_size) from [<c016b8d8>] (stat_open+0x2c/0x38)
[ 160.190786] r9:c01282f0 r8:cce29bf0 r7:cf786140 r6:cf15b500 r5:cf678d80 r4:c016b8ac
[ 160.198941] [<c016b8ac>] (stat_open) from [<c0163a80>] (proc_reg_open+0x84/0x144)
[ 160.206795] [<c01639fc>] (proc_reg_open) from [<c010215c>] (do_dentry_open+0x1c0/0x314)
[ 160.215176] r9:00000000 r8:cf601800 r7:c01639fc r6:cf678d88 r5:cce29bf0 r4:cf678d80
[ 160.223332] [<c0101f9c>] (do_dentry_open) from [<c010326c>] (vfs_open+0x68/0x70)
[ 160.231078] r10:cf442a90 r9:cc802198 r8:cf71be88 r7:00000000 r6:00000000 r5:cf601800
[ 160.239312] r4:cf678d80 r3:cf601800
[ 160.243085] [<c0103204>] (vfs_open) from [<c0110350>] (do_last+0x63c/0xcb4)
[ 160.250377] r5:cf71bf5c r4:cf71bed0
[ 160.254141] [<c010fd14>] (do_last) from [<c0112898>] (path_openat+0x88/0x5f0)
[ 160.261614] r10:00000000 r9:cf71be88 r8:cf63c000 r7:cf71bf5c r6:00000000 r5:cf71bed0
[ 160.269848] r4:cf678d80
[ 160.272515] [<c0112810>] (path_openat) from [<c0113940>] (do_filp_open+0x34/0x90)
[ 160.280351] r10:00000000 r9:cf71a000 r8:c000fac4 r7:cf63c000 r6:ffffff9c r5:00000001
[ 160.288585] r4:cf71bf5c
[ 160.291250] [<c011390c>] (do_filp_open) from [<c0103598>] (do_sys_open+0x104/0x1d4)
[ 160.299268] r7:00000005 r6:cf63c000 r5:00000012 r4:ffffff9c
[ 160.305230] [<c0103494>] (do_sys_open) from [<c0103688>] (SyS_open+0x20/0x24)
[ 160.312703] r9:cf71a000 r8:c000fac4 r7:00000005 r6:00000008 r5:00000000 r4:00f1cfe8
[ 160.320864] [<c0103668>] (SyS_open) from [<c000f920>] (ret_fast_syscall+0x0/0x3c)
[ 160.328710] Code: e5936000 e3560000 0a000040 e5943014 (e7960003)
[ 160.341203] ---[ end trace 65ab98c3ee3d5258 ]---
(usp_comm_linkCtrlEntry) select result = 0
[ 162.341481] Unable to handle kernel paging request at virtual address 00001b1a
[ 162.349339] pgd = cf5cc000
[ 162.352233] [00001b1a] *pgd=8f72e831, *pte=00000000, *ppte=00000000
[ 162.359661] Internal error: Oops: 17 [#4] PREEMPT ARM
[ 162.364960] Modules linked in: fpga_download(O) rtc_rx8803(O) sec_ctrl(O) ne1617(O) at24(O) gpmc_fpga(O)
[ 162.374950] CPU: 0 PID: 233 Comm: usp_timer Tainted: G D O 4.1.18 #1
[ 162.382607] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 162.388992] task: cf56e400 ti: cf5da000 task.ti: cf5da000
[ 162.394670] PC is at __kmalloc+0xa0/0x20c
[ 162.398873] LR is at __kmalloc+0x1c/0x20c
[ 162.403076] pc : [<c00f66bc>] lr : [<c00f6638>] psr: 200d0013
[ 162.403076] sp : cf5dbed0 ip : cf5dbed0 fp : cf5dbef4
[ 162.415100] r10: 00000000 r9 : c08cc92c r8 : 00024304
[ 162.420573] r7 : 000000d0 r6 : cf001e40 r5 : cf5da000 r4 : 00001b1a
[ 162.427410] r3 : 00000000 r2 : 00024304 r1 : 000000d0 r0 : cf001e40
[ 162.434250] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 162.441725] Control: 10c5387d Table: 8f5cc019 DAC: 00000015
[ 162.447745] Process usp_timer (pid: 233, stack limit = 0xcf5da210)
[ 162.454220] Stack: (0xcf5dbed0 to 0xcf5dc000)
[ 162.458787] bec0: 00098009 00000001 00000018 00000018
[ 162.467360] bee0: 00000018 c08cc92c cf5dbf2c cf5dbef8 c029c464 c00f6628 0000c350 00ea4c48
[ 162.475932] bf00: 00000000 00098009 00000001 00ea4c44 00000018 00000000 c08cc92c 00000000
[ 162.484504] bf20: cf5dbf84 cf5dbf30 c029d1fc c029c43c 00000000 00000000 cc0715f9 00000025
[ 162.493076] bf40: cc0652a9 00000025 c0076d80 c08c5390 00000000 00000000 00000000 00ea4c44
[ 162.501648] bf60: 00000018 00ea4c44 0000012d c000fac4 cf5da000 00000000 cf5dbfa4 cf5dbf88
[ 162.510220] bf80: c029d610 c029d1a0 00000000 cf5dbf98 00000000 002c5130 00000000 cf5dbfa8
[ 162.518792] bfa0: c000f920 c029d5c4 00000000 002c5130 00098009 00ea4c44 00000018 00000000
[ 162.527364] bfc0: 00000000 002c5130 00ea4c44 0000012d 0000ffff 000027bb 00000065 00ea4c30
[ 162.535936] bfe0: 00000000 be81aa94 0019aef7 b6e2c826 400d0030 00098009 8fff2821 8fff2c21
[ 162.544498] Backtrace:
[ 162.547092] [<c00f661c>] (__kmalloc) from [<c029c464>] (load_msg+0x34/0x1d4)
[ 162.554474] r9:c08cc92c r8:00000018 r7:00000018 r6:00000018 r5:00000001 r4:00098009
[ 162.562630] [<c029c430>] (load_msg) from [<c029d1fc>] (do_msgsnd+0x68/0x424)
[ 162.570012] r10:00000000 r9:c08cc92c r8:00000000 r7:00000018 r6:00ea4c44 r5:00000001
[ 162.578246] r4:00098009
[ 162.580912] [<c029d194>] (do_msgsnd) from [<c029d610>] (SyS_msgsnd+0x58/0x68)
[ 162.588384] r10:00000000 r9:cf5da000 r8:c000fac4 r7:0000012d r6:00ea4c44 r5:00000018
[ 162.596618] r4:00ea4c44
[ 162.599293] [<c029d5b8>] (SyS_msgsnd) from [<c000f920>] (ret_fast_syscall+0x0/0x3c)
[ 162.607312] r5:002c5130 r4:00000000
[ 162.611073] Code: e5934000 e3540000 0a000044 e5963014 (e7940003)
[ 162.621758] ---[ end trace 65ab98c3ee3d5259 ]---
(usp_comm_linkCtrlEntry) select result = 0
(usp_comm_linkCtrlEntry) select result = 0
(usp_comm_linkCtrlEntry) select result = 0
[ 171.190169] Unable to handle kernel paging request at virtual address 00001b1a

(usp_comm_zllrp_recvDataNet) running. ucLinkTy[ 171.201223] pgd = cf6fc000
pe = 0, ucLinkIndex = 6, wNeedLen = 19, wRecvPoi[ 171.208928] [00001b1a] *pgd=8f739831nter = 0
Source/comm.c exception: exceptCode , *pte=00000000= 4026548236, line = 3580, var1 = 6, var2 = 0, v, *ppte=00000000ar3 = 6
Source/comm.c exception: exceptCode =
4026548236, line = 3581, var1 = 0, var2 = 0, va[ 171.231679] Internal error: Oops: 17 [#5] PREEMPT ARM
[ 171.241089] Modules linked in: fpga_download(O) rtc_rx8803(O) sec_ctrl(O) ne1617(O) at24(O) gpmc_fpga(O)
[ 171.251081] CPU: 0 PID: 251 Comm: usp_comm Tainted: G D O 4.1.18 #1
[ 171.258647] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 171.265032] task: cf702880 ti: cf75c000 task.ti: cf75c000
[ 171.270710] PC is at __kmalloc+0xa0/0x20c
[ 171.274912] LR is at __kmalloc+0x1c/0x20c
[ 171.279115] pc : [<c00f66bc>] lr : [<c00f6638>] psr: 20010013
[ 171.279115] sp : cf75ded0 ip : cf75ded0 fp : cf75def4
[ 171.291140] r10: 00000000 r9 : c08cc92c r8 : 00024304
[ 171.296613] r7 : 000000d0 r6 : cf001e40 r5 : cf75c000 r4 : 00001b1a
[ 171.303450] r3 : 00000000 r2 : 00024304 r1 : 000000d0 r0 : cf001e40
[ 171.310290] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 171.317766] Control: 10c5387d Table: 8f6fc019 DAC: 00000015
[ 171.323785] Process usp_comm (pid: 251, stack limit = 0xcf75c210)
[ 171.330168] Stack: (0xcf75ded0 to 0xcf75e000)
[ 171.334737] dec0: 00098009 00000001 00000018 00000018
[ 171.343309] dee0: 00000018 c08cc92c cf75df2c cf75def8 c029c464 c00f6628 0000006e 002d0658
[ 171.351881] df00: 00000001 00098009 00000001 002d0654 00000018 00000000 c08cc92c 00000000
[ 171.360453] df20: cf75df84 cf75df30 c029d1fc c029c43c 00000002 cf5416c8 cf75c000 00000000
[ 171.369026] df40: cf75df7c cf75df50 c01044ec c0140f6c 00000000 00000000 cf75df7c 002d0654
[ 171.377597] df60: 00000018 002d0654 0000012d c000fac4 cf75c000 00000000 cf75dfa4 cf75df88
[ 171.386169] df80: c029d610 c029d1a0 00000000 00000001 00000000 002c5130 00000000 cf75dfa8
[ 171.394741] dfa0: c000f920 c029d5c4 00000000 002c5130 00098009 002d0654 00000018 00000000
[ 171.403314] dfc0: 00000000 002c5130 002d0654 0000012d 00000000 002cf990 002d5f60 b64c4c80
[ 171.411885] dfe0: 00000000 b64c4bf0 00000000 b6e2c842 80010030 00098009 00000000 00000000
[ 171.420447] Backtrace:
[ 171.423038] [<c00f661c>] (__kmalloc) from [<c029c464>] (load_msg+0x34/0x1d4)
[ 171.430421] r9:c08cc92c r8:00000018 r7:00000018 r6:00000018 r5:00000001 r4:00098009
[ 171.438577] [<c029c430>] (load_msg) from [<c029d1fc>] (do_msgsnd+0x68/0x424)
[ 171.445959] r10:00000000 r9:c08cc92c r8:00000000 r7:00000018 r6:002d0654 r5:00000001
[ 171.454193] r4:00098009
[ 171.456859] [<c029d194>] (do_msgsnd) from [<c029d610>] (SyS_msgsnd+0x58/0x68)
[ 171.464332] r10:00000000 r9:cf75c000 r8:c000fac4 r7:0000012d r6:002d0654 r5:00000018
[ 171.472566] r4:002d0654
[ 171.475241] [<c029d5b8>] (SyS_msgsnd) from [<c000f920>] (ret_fast_syscall+0x0/0x3c)
[ 171.483260] r5:002c5130 r4:00000000
[ 171.487021] Code: e5934000 e3540000 0a000044 e5963014 (e7940003)
r3 = 0
(comm_linkCtrlProcFd) running. ucAppType = 6, ucLinkType = 0, ucLinkIndex = 6, recvDat[ 171.498199] ---[ end trace 65ab98c3ee3d525a ]---
a result = 4026548236
[ 172.563871] Unable to handle kernel paging request at virtual address 00001b1a
[ 172.571637] pgd = cf468000
[ 172.574480] [00001b1a] *pgd=00000000
[ 172.578930] Internal error: Oops: 5 [#6] PREEMPT ARM
[ 172.584137] Modules linked in: fpga_download(O) rtc_rx8803(O) sec_ctrl(O) ne1617(O) at24(O) gpmc_fpga(O)
[ 172.594128] CPU: 0 PID: 129 Comm: ntpd Tainted: G D O 4.1.18 #1
[ 172.601330] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 172.607716] task: cf56c000 ti: cf548000 task.ti: cf548000
[ 172.613393] PC is at kmem_cache_alloc+0x88/0x1dc
[ 172.618247] LR is at sock_alloc_inode+0x34/0xa0
[ 172.622996] pc : [<c00f68b0>] lr : [<c0554950>] psr: 200b0013
[ 172.622996] sp : cf549ea0 ip : cf549ec8 fp : cf549ec4
[ 172.635021] r10: 00000000 r9 : 00000000 r8 : 00024304
[ 172.640494] r7 : 000000d0 r6 : 00001b1a r5 : cf548000 r4 : cf001e40
[ 172.647331] r3 : 00000000 r2 : 00024304 r1 : 000000d0 r0 : cf001e40
[ 172.654171] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 172.661646] Control: 10c5387d Table: 8f468019 DAC: 00000015
[ 172.667666] Process ntpd (pid: 129, stack limit = 0xcf548210)
[ 172.673686] Stack: (0xcf549ea0 to 0xcf54a000)
[ 172.678258] 9ea0: cce0ad80 cf0c6800 c08b8670 00000119 c08ed6e0 00000000 cf549ee4 cf549ec8
[ 172.686830] 9ec0: c0554950 c00f6834 00000002 cf0c6800 00000002 00000119 cf549efc cf549ee8
[ 172.695403] 9ee0: c011dbac c0554928 00000002 00000000 cf549f14 cf549f00 c0120000 c011db94
[ 172.703975] 9f00: 00000002 00000000 cf549f2c cf549f18 c05542f8 c011fffc 00000002 00000000
[ 172.712546] 9f20: cf549f5c cf549f30 c0554c80 c05542e8 00000000 00000802 00000000 b6b0d714
[ 172.721119] 9f40: 00000119 c000fac4 cf548000 00000000 cf549f74 cf549f60 c0554e28 c0554c50
[ 172.729690] 9f60: cf549f84 00000000 cf549fa4 cf549f78 c0555614 c0554df0 00000008 00000000
[ 172.738263] 9f80: 00000000 c0075088 ffffffff b6b0d714 b6b0d714 00000119 00000000 cf549fa8
[ 172.746834] 9fa0: c000f920 c05555f0 ffffffff b6b0d714 00000002 00000802 00000000 00000001
[ 172.755407] 9fc0: ffffffff b6b0d714 b6b0d714 00000119 b6900490 b6b2e7ac b6b0d8f8 b6b0d8f8
[ 172.763978] 9fe0: b6b2c0e4 b6b0b1f4 b6b14507 b6c1a326 600b0030 00000002 00000000 00000000
[ 172.772540] Backtrace:
[ 172.775121] [<c00f6828>] (kmem_cache_alloc) from [<c0554950>] (sock_alloc_inode+0x34/0xa0)
[ 172.783778] r9:00000000 r8:c08ed6e0 r7:00000119 r6:c08b8670 r5:cf0c6800 r4:cce0ad80
[ 172.791940] [<c055491c>] (sock_alloc_inode) from [<c011dbac>] (alloc_inode+0x24/0xa4)
[ 172.800141] r7:00000119 r6:00000002 r5:cf0c6800 r4:00000002
[ 172.806105] [<c011db88>] (alloc_inode) from [<c0120000>] (new_inode_pseudo+0x10/0x70)
[ 172.814305] r5:00000000 r4:00000002
[ 172.818070] [<c011fff0>] (new_inode_pseudo) from [<c05542f8>] (sock_alloc+0x1c/0xa4)
[ 172.826179] r5:00000000 r4:00000002
[ 172.829944] [<c05542dc>] (sock_alloc) from [<c0554c80>] (__sock_create+0x3c/0x1a0)
[ 172.837871] r5:00000000 r4:00000002
[ 172.841636] [<c0554c44>] (__sock_create) from [<c0554e28>] (sock_create+0x44/0x4c)
[ 172.849563] r10:00000000 r9:cf548000 r8:c000fac4 r7:00000119 r6:b6b0d714 r5:00000000
[ 172.857797] r4:00000802 r3:00000000
[ 172.861563] [<c0554de4>] (sock_create) from [<c0555614>] (SyS_socket+0x30/0xc8)
[ 172.869237] [<c05555e4>] (SyS_socket) from [<c000f920>] (ret_fast_syscall+0x0/0x3c)
[ 172.877255] r7:00000119 r6:b6b0d714 r5:b6b0d714 r4:ffffffff
[ 172.883214] Code: e5936000 e3560000 0a000040 e5943014 (e7960003)
[ 172.894379] ---[ end trace 65ab98c3ee3d525b ]---

3 个回复