AnsweredAssumed Answered

Has anyone found a solution to SPI driver crashes? Specifically spidev on top of spi-xilinx

Question asked by EdwardK on Jun 23, 2015
Latest reply on Aug 13, 2015 by larsc

All attempts to access any spidev result in this

 

[  373.497956] Unhandled fault: imprecise external abort (0x1406) at 0x00df35e8
[  373.497965] pgd = c0004000
[  373.497970] [00df35e8] *pgd=00000000
[  373.497980] Internal error: : 1406 [#1] PREEMPT SMP ARM
[  373.500458] Modules linked in:
[  373.502201] CPU: 0 PID: 502 Comm: spi32764 Not tainted 4.0.0-xilinx-adi-g4de595d #1
[  373.508530] Hardware name: Xilinx Zynq Platform
[  373.511744] task: ee958e40 ti: eea0e000 task.ti: eea0e000
[  373.515833] PC is at xspi_read32+0x8/0x10
[  373.518517] LR is at xilinx_spi_txrx_bufs+0x170/0x26c
[  373.522249] pc : [<c03293ec>]    lr : [<c0329718>]    psr: 20050013
               sp : eea0feb0  ip : 00000000  fp : 00000000
[  373.531099] r10: ee336c80  r9 : 00000086  r8 : 00000001
[  373.535006] r7 : 00000010  r6 : 00000026  r5 : 00000003  r4 : ee8e2a60
[  373.540213] r3 : 000000ff  r2 : 00000001  r1 : 00000000  r0 : f012006c
[  373.545424] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[  373.551412] Control: 18c5387d  Table: 2e3bc04a  DAC: 00000015
[  373.555838] Process spi32764 (pid: 502, stack limit = 0xeea0e210)
[  373.560612] Stack: (0xeea0feb0 to 0xeea10000)
[  373.563653] fea0:                                     2318fa36 ee8e2a88 eefde6c0 ee336c80
[  373.570511] fec0: 00000000 ee115ee0 ee978800 ee8e2a60 00000001 c069c06c 00000000 c0328a3c
[  373.577368] fee0: 00000000 ee8e2800 00000000 ee8e2a04 ee115ee0 00000001 eea0e000 00000001
[  373.584225] ff00: ee8e29e0 00000000 ee8e2800 c03267dc ee959104 c068ce70 eea0e000 00000000
[  373.591082] ff20: ee8e29dc ee8e29f4 00000000 ee8e29dc eea0e000 00000001 ee8e29e0 00000000
[  373.597939] ff40: 00000000 c0042ea0 ee958e40 00000000 eeabd380 ee8e29dc c0042e00 00000000
[  373.604796] ff60: 00000000 c0042de8 ee996680 00000000 eea0ff70 ee8e29dc 00000000 00000000
[  373.611654] ff80: eea0ff80 eea0ff80 00000000 00000000 eea0ff90 eea0ff90 eea0ffac eeabd380
[  373.618511] ffa0: c0042d0c 00000000 00000000 c000f380 00000000 00000000 00000000 00000000
[  373.625368] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  373.632225] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 ffffffff
[  373.639092] [<c03293ec>] (xspi_read32) from [<c0329718>] (xilinx_spi_txrx_bufs+0x170/0x26c)
[  373.646118] [<c0329718>] (xilinx_spi_txrx_bufs) from [<c0328a3c>] (spi_bitbang_transfer_one+0x9c/0x240)
[  373.654190] [<c0328a3c>] (spi_bitbang_transfer_one) from [<c03267dc>] (__spi_pump_messages+0x37c/0x4cc)
[  373.662265] [<c03267dc>] (__spi_pump_messages) from [<c0042ea0>] (kthread_worker_fn+0xa0/0xf0)
[  373.669553] [<c0042ea0>] (kthread_worker_fn) from [<c0042de8>] (kthread+0xdc/0xf4)
[  373.675806] [<c0042de8>] (kthread) from [<c000f380>] (ret_from_fork+0x14/0x34)
[  373.681703] Code: e5845000 e8bd8038 e5903000 f57ff04f (e1a00003) 
[  373.686479] ---[ end trace e134e2e095c07284 ]---

Outcomes