This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BUG: soft lockup - CPU#0 stuck for 61s!

Other Parts Discussed in Thread: AM3505

Hello,

I am using Linux 2.6.32 from PSP 03.00.01.06 for my AM3505 based board. I am running some application which uses major interfaces like USB, DSS, VPFE, DDR, NAND, I2C, EMAC, UART etc.

While running the application for long time, I am getting "BUG: soft lockup - CPU#0 stuck for 61s! " errors from kernel and CPU stucks. Below are some of the crash:

+++++++++++++++++

Log 1:

BUG: soft lockup - CPU#0 stuck for 61s! [kswapd0:296]

Modules linked in: invalidatecache(P) ar9170usb dieid(P) mac80211 ath cfg80211 arc4 ecb pcbc aes_generic sierra option usbserial ppp_async ppp_synctty ppp_generic slhc 8021q

 

Pid: 296, comm:              kswapd0

CPU: 0    Tainted: P            (2.6.32liveu_008 #1)

PC is at inactive_anon_is_low+0xc/0x20

LR is at kswapd+0x2fc/0x62c

pc : [<c00ab8d0>]    lr : [<c00adc78>]    psr: 60000013

sp : cf8f1f28  ip : 00000000  fp : 00000001

r10: 0000000c  r9 : c04f2f30  r8 : 00000000

r7 : c04f2f30  r6 : cf8f1f50  r5 : c04f3228  r4 : c04f2f30

r3 : 00000001  r2 : 0000675e  r1 : 00006739  r0 : c04f2f30

Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

Control: 10c5387d  Table: 8dfa8019  DAC: 00000017

BUG: soft lockup - CPU#0 stuck for 61s! [kswapd0:296]

Modules linked in: invalidatecache(P) ar9170usb dieid(P) mac80211 ath cfg80211 arc4 ecb pcbc aes_generic sierra option usbserial ppp_async ppp_synctty ppp_generic slhc 8021q

Log 2:

BUG: soft lockup - CPU#0 stuck for 61s! [ifconfig:1853]

Modules linked in: invalidatecache(P) ar9170usb dieid(P) mac80211 ath cfg80211 arc4 ecb pcbc aes_generic sierra option usbserial ppp_async ppp_synctty ppp_generic slhc 8021q

 

Pid: 1853, comm:             ifconfig

CPU: 0    Tainted: P            (2.6.32liveu_008 #1)

PC is at handle_IRQ_event+0x20/0xf4

LR is at handle_edge_irq+0x10c/0x14c

pc : [<c009eb70>]    lr : [<c00a0384>]    psr: 40000113

sp : cdf19cb0  ip : 00000001  fp : fb052018

r10: 0000001f  r9 : c04c7e40  r8 : 00000001

r7 : 000000e0  r6 : cfa08280  r5 : 00000000  r4 : cfa08280

r3 : 00000002  r2 : fb052000  r1 : cfa08280  r0 : 000000e0

Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user

Control: 10c5387d  Table: 8dc50019  DAC: 00000015

BUG: soft lockup - CPU#0 stuck for 61s! [ifconfig:1853]

Modules linked in: invalidatecache(P) ar9170usb dieid(P) mac80211 ath cfg80211 arc4 ecb pcbc aes_generic sierra option usbserial ppp_async ppp_synctty ppp_generic slhc 8021q

+++++++++++++++++

While searching on net, I found that there are many such soft locks reported on open source kernel as well. I can see many bugs on Fedora, CentOS, RedHat or Ubuntu bug tracking systems. But did not get any patch that can resolve the issue I am facing.

Anybody has resolved the issue in kernel? Please help me if you have any idea.

Thank you,

Bhavin Patel

  • I'm running into the same problem as you do, did you find any fix?

  • Hi,

    In above log I notice that the crash is because of kswapd daemon. This daemon is responsible to handle memory management unit operations.

    I have experienced such crash when there is memory leak in the driver/application.Due to memory leak the there is no swap memory on the device when system runs for longer duration with memory leak. That might create such crashes.

    If you have added any new module/application/driver in your system, try to disable that part and check if you still get the crash. If you don't get crash check for your memory allocation/de-allocation/management logic in that module/application/driver.

    -- Krunal