2011-01-10 14:14:47     workqueue

Document created by Aaronwu Employee on Aug 26, 2013
Version 1Show Document
  • View in full screen mode

2011-01-10 14:14:47     workqueue

Chris Brissette (UNITED STATES)

Message: 97302   

 

I have been hunting a random lockup, happens about once a week. Seems like it has something to do with the using the ttybf1 uart.  I have been looking to where workqueue is used in drivers. Haven't had a whole lot of luck. Any insite would be greatly appreciated.

 

Thanks

 

Chris

 

BF537 custom board.

 

kernel:    Linux release 2.6.34.7-ADI-2010R1-svn9519, build #305 Tue Dec 14 11:41:38 EST 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2010R1-RC4)

user-dist: release svn-9993, build #147 Tue Dec 14 11:40:50 EST 2010

 

[   20.799916] kernel BUG at kernel/workqueue.c:225!

[   20.809387] Kernel panic - not syncing: BUG()

[   20.818159] Hardware Trace:

[   20.823811]    0 Target : <0x000041e4> { _trap_c + 0x0 }

[   20.834524]      Source : <0xffa00738> { _exception_to_level5 + 0xa4 } CALL pcrel

[   20.849593]    1 Target : <0xffa00694> { _exception_to_level5 + 0x0 }

[   20.862580]      Source : <0xffa00548> { _bfin_return_from_exception + 0x18 } RTX

[   20.877673]    2 Target : <0xffa00530> { _bfin_return_from_exception + 0x0 }

[   20.891882]      Source : <0xffa005ec> { _ex_trap_c + 0x74 } JUMP.S

[   20.904520]    3 Target : <0xffa00578> { _ex_trap_c + 0x0 }

[   20.915747]      Source : <0xffa007fc> { _trap + 0x58 } JUMP (P4)

[   20.928034]    4 Target : <0xffa007a4> { _trap + 0x0 }

[   20.938394]       FAULT : <0x0001e34a> { ___queue_work + 0x12 } BUG

[   20.951020]      Source : <0x0001e348> { ___queue_work + 0x10 } IF !CC JUMP pcrel

[   20.966290]    5 Target : <0x0001e338> { ___queue_work + 0x0 }

[   20.978047]      Source : <0x0001e3a4> { _delayed_work_timer_fn + 0x10 } CALL pcrel

[   20.993491]    6 Target : <0x0001e394> { _delayed_work_timer_fn + 0x0 }

[   21.006850]      Source : <0x00018ed6> { _run_timer_softirq + 0x112 } CALL (P3)

[   21.021571]    7 Target : <0x00018eb0> { _run_timer_softirq + 0xec }

[   21.034380]      Source : <0x00018e92> { _run_timer_softirq + 0xce } IF CC JUMP pcrel

[   21.050353]    8 Target : <0x00018e8a> { _run_timer_softirq + 0xc6 }

[   21.063160]      Source : <0x00018e60> { _run_timer_softirq + 0x9c } IF !CC JUMP pcrel

[   21.079309]    9 Target : <0x00018ddc> { _run_timer_softirq + 0x18 }

[   21.092133]      Source : <0x00023e70> { _hrtimer_run_pending + 0x1c } RTS

[   21.105982]   10 Target : <0x00023e54> { _hrtimer_run_pending + 0x0 }

[   21.118966]      Source : <0x00018dd8> { _run_timer_softirq + 0x14 } JUMP.L

[   21.133008]   11 Target : <0x00018dc4> { _run_timer_softirq + 0x0 }

[   21.145639]      Source : <0x00015c04> { ___do_softirq + 0x74 } CALL (P2)

[   21.159328]   12 Target : <0x00015bd4> { ___do_softirq + 0x44 }

[   21.171259]      Source : <0x00015be0> { ___do_softirq + 0x50 } IF CC JUMP pcrel (BP)

[   21.187057]   13 Target : <0x00015bde> { ___do_softirq + 0x4e }

[   21.198987]      Source : <0x00015bd2> { ___do_softirq + 0x42 } JUMP.S

[   21.212151]   14 Target : <0x00015b90> { ___do_softirq + 0x0 }

[   21.223906]      Source : <0x00015c92> { _irq_exit + 0x32 } CALL pcrel

[   21.237070]   15 Target : <0x00015c92> { _irq_exit + 0x32 }

[   21.248299]      Source : <0x00015c8e> { _irq_exit + 0x2e } IF !CC JUMP pcrel

[   21.262849] Stack info:

[   21.267784]  SP: [0x02027bc4] <0x02027bc4> /* kernel dynamic memory (maybe user-space) */

[   21.284367]  Memory from 0x02027bc0 to 02028000

[   21.293034] 02027bc0: 00000013 [002567b0] 001fce8e  02027ca0  002567b0  002c13d6  002c13d6  002c13d6

[   21.311636] 02027be0: 02027bf4  00004616  02027ca0  0000c008  02027c20  0000001f  ffffffff  0201806c

[   21.330237] 02027c00: 00000001  02018040  00000003  02027c3c  00004501  00000598  2793d600  00000000

[   21.348840] 02027c20: 02027c3c  0000b056  00028a5c  00000000  00000000  00000000  277f4243  00000000

[   21.367441] 02027c40: 02027c6c  0000b1ec  0001381c  0201806c  00000000  00000000  0001381c <02fa5c80>

[   21.386043] 02027c60: 002dbd10  00000000  0001381c  02027c9c  0000b378  00000000  02fa5cac  ffa0073c

[   21.404646] 02027c80: 002be000  0000c008  00000021  002dd0b0  00000000  00000000  00000000  00000480

[   21.423247] 02027ca0: 00000480  0000c008  00000021  00000000  02027d7c  00000480  0001e34a <00018ed8>

[   21.441849] 02027cc0: 02001a60  02002060  0000f90c  ffa01738  0000f8f6  ffa01718  00000000  00000000

[   21.460451] 02027ce0: 0000485f  00000000  0024483b  00000000  ffffffff  7ffff000  f4240000  956c0000

[   21.479053] 02027d00: 00000000  00000000  00000000  00000000  0000005b  00001802  fffdcb6d  00000000

[   21.497655] 02027d20: ffffffff  fffa34fa  fffffef9  00000000  00000000  02027dc4  02fe0ca4  002c5dec

[   21.516257] 02027d40: 0001e394  02001a80  02fe0ca4  02001a60  0000ffff  02fe0ca4  002dd0b0  00000000

[   21.534859] 02027d60: 000007d8  00000000  02fe0ca4  02001a60  02001a60  02001a60  00000006  00024622

[   21.553461] 02027d80: 00000000  000246aa  00000674 <00018ed8> 02fe0cb4  00000100  00024622  00000674

[   21.572063] 02027da0: 28c50b0f  00000674  28c50b0f  00000000  02026000  002c6bf8  002c69f8  002c67f8

[   21.590665] 02027dc0: 002c65f8  02027dc4  02027dc4  002c5cc4 <00015c06> 00000001  002c5cd0  02026000

[   21.609267] 02027de0: 00000001  00000004  00000100  0000000a  00000001  00032f28  002de054  02fe0ca4

[   21.627869] 02027e00: 02995400  00000006  02fe0c84  ffa00386  002eb844  02fe0ca4  02995400  00000006

[   21.646471] 02027e20: 00000000  ffffffc0  002dafbc  002eb844  02001a60  001003fc  ffa00c7e  02fe0c00

[   21.665073] 02027e40: 02026000  0000ffff  0004303e  0004302e  00000000  0010058c  00008050  00000000

[   21.683674] 02027e60: 00000000  02ffa000  00a8e1a4  0010058c  00100410  00000006  02003044  00a9cfdf

[   21.702276] 02027e80: ffa014c8  00a9cfde  ffa014c6  00000000  00000000  000002a5  00000000  000014f9

[   21.720879] 02027ea0: 00000000  00000000  7ffff000  000000c0  00000000  00000000  00000000  00000000

[   21.739480] 02027ec0: 00000000  0000005b  00001802  00000001  ffffffe8  00666666  68000000  02fe0428

[   21.758082] 02027ee0: 002dafbc  00000000  02fe0c84  02fe0c00  02fe0ca4  02995400  002dafbc  02995400

[   21.776684] 02027f00: 02fe0ca8  02026000  0000ffff  ffffffc0  002dafbc  00000000  0000000f  ffffffc0

[   21.795286] 02027f20: 0000ffff  0000ffff  02fe0ca8  00000006  ffffffc0  00000002  00000002  00000001

[   21.813888] 02027f40: 002dafbc <0001e5f2> 02fe0ca4  02001a60  001003fc  02026000  00000000  fffffffc

[   21.832490] 02027f60: ffffffc0  02027fb0  02026008  02026000  02026000  00000000  0001e69e  02001a60

[   21.851092] 02027f80: 0001e664  00000000  02001a68  02027fa4  00000000  00000000  02026008  02026000

[   21.869694] 02027fa0: 02026000  00000000  02018040  00021340  02027fb0  02027fb0 <00020fd6> 0201bf3c

[   21.888296] 02027fc0: 02001a60  00000000  00000000  00020f7c  000014a8  00000000  00000000  02027fdc

[   21.906898] 02027fe0: 02027fdc <000014ae> 00000000  00000000  00000000  00000000  ffffffff  00000006

[   21.925850] Return addresses in stack:

[   21.933423]     address : <0x02fa5c80> /* kernel dynamic memory (maybe user-space) */

[   21.949231]     address : <0x00018ed8> { _run_timer_softirq + 0x114 }

[   21.962220]     address : <0x00018ed8> { _run_timer_softirq + 0x114 }

[   21.975190]     address : <0x00015c06> { ___do_softirq + 0x76 }

[   21.987163]     address : <0x0001e5f2> { _run_workqueue + 0x8a }

[   21.999248]     address : <0x00020fd6> { _kthread + 0x5a }

[   22.010284]     address : <0x000014ae> { _kernel_thread_helper + 0x6 }

QuoteReplyEditDelete

 

 

2011-01-10 15:06:33     Re: workqueue

Chris Brissette (UNITED STATES)

Message: 97303   

 

Just got another exception here it is.

 

[   12.283491] kernel BUG at kernel/workqueue.c:355!

[   12.292962] Kernel panic - not syncing: BUG()

[   12.301734] Hardware Trace:

[   12.307383]    0 Target : <0x000041e4> { _trap_c + 0x0 }

[   12.318094]      Source : <0xffa00738> { _exception_to_level5 + 0xa4 } CALL pcrel

[   12.333169]    1 Target : <0xffa00694> { _exception_to_level5 + 0x0 }

[   12.346155]      Source : <0xffa00548> { _bfin_return_from_exception + 0x18 } RTX

[   12.361248]    2 Target : <0xffa00530> { _bfin_return_from_exception + 0x0 }

[   12.375457]      Source : <0xffa005ec> { _ex_trap_c + 0x74 } JUMP.S

[   12.388095]    3 Target : <0xffa00578> { _ex_trap_c + 0x0 }

[   12.399323]      Source : <0xffa007fc> { _trap + 0x58 } JUMP (P4)

[   12.411609]    4 Target : <0xffa007a4> { _trap + 0x0 }

[   12.421972]       FAULT : <0x0001e9d4> { _queue_delayed_work_on + 0xc0 } BUG

[   12.436176]      Source : <0x0001e95e> { _queue_delayed_work_on + 0x4a } IF !CC JUMP pcrel

[   12.453026]    5 Target : <0x0001e94e> { _queue_delayed_work_on + 0x3a }

[   12.466536]      Source : <0x0001e942> { _queue_delayed_work_on + 0x2e } IF CC JUMP pcrel

[   12.483210]    6 Target : <0x0001e914> { _queue_delayed_work_on + 0x0 }

[   12.496544]      Source : <0x0001ea14> { _queue_delayed_work + 0x14 } CALL pcrel

[   12.511463]    7 Target : <0x0001ea00> { _queue_delayed_work + 0x0 }

[   12.524272]      Source : <0x0001ea38> { _schedule_delayed_work + 0x10 } CALL pcrel

[   12.539717]    8 Target : <0x0001ea28> { _schedule_delayed_work + 0x0 }

[   12.553068]      Source : <0x00100638> { _tty_flip_buffer_push + 0x38 } CALL pcrel

[   12.568324]    9 Target : <0x00100600> { _tty_flip_buffer_push + 0x0 }

[   12.581484]      Source : <0x001051ec> { _bfin_serial_dma_rx_chars + 0x16c } JUMP.L

[   12.596926]   10 Target : <0x001051ea> { _bfin_serial_dma_rx_chars + 0x16a }

[   12.611139]      Source : <0x00105186> { _bfin_serial_dma_rx_chars + 0x106 } IF CC JUMP pcrel

[   12.628515]   11 Target : <0x00105177> { _bfin_serial_dma_rx_chars + 0xf7 }

[   12.642551]      Source : <0x0010513e> { _bfin_serial_dma_rx_chars + 0xbe } IF CC JUMP pcrel (BP)

[   12.660454]   12 Target : <0x0010511e> { _bfin_serial_dma_rx_chars + 0x9e }

[   12.674490]      Source : <0x001051bf> { _bfin_serial_dma_rx_chars + 0x13f }

[   12.688882]   13 Target : <0x0010517c> { _bfin_serial_dma_rx_chars + 0xfc }

[   12.702919]      Source : <0x0010511c> { _bfin_serial_dma_rx_chars + 0x9c } JUMP.S

[   12.718189]   14 Target : <0x00105110> { _bfin_serial_dma_rx_chars + 0x90 }

[   12.732227]      Source : <0x0010520a> { _bfin_serial_dma_rx_chars + 0x18a } JUMP.S

[   12.747672]   15 Target : <0x00105202> { _bfin_serial_dma_rx_chars + 0x182 }

[   12.761884]      Source : <0x001051fc> { _bfin_serial_dma_rx_chars + 0x17c } IF CC JUMP pcrel (BP)

[   12.779942] Stack info:

[   12.784878]  SP: [0x02027b58] <0x02027b58> /* kernel dynamic memory (maybe user-space) */

[   12.801413]  FP: (0x02027d88)

[   12.807323]  Memory from 0x02027b50 to 02028000

[   12.816095] 02027b50: 02027b58  00000013 [002567b0] 001fce8e  02027c34  002567b0  002c13d6  002c13d6

[   12.834696] 02027b70: 002c13d6  02027b88  00004616  02027c34  0000c008  000027da  0000001f  ffffffff

[   12.853298] 02027b90: 0002af70  00000000  0002af70  000027da  7302c4fd <ffa003fe> 002da794  002dafbc

[   12.871900] 02027bb0: 02027d48  00000000  00000000  00000006  ffffffc0  02a40414  02c99d60  001ca546

[   12.890502] 02027bd0: 00000000  02c99d60  00000400  00000000  02027c0c  00000001  02027c18  0000d1cc

[   12.909104] 02027bf0: 02027c18  0000d2dc  002dbd10  02043080  002dbd10  00000001  ffea63fc  02027c3c

[   12.927706] 02027c10: ffa0073c  002be000  0000c008  00000021  00000000  00000000  00028a5c  00000000

[   12.946308] 02027c30: 00000480  00000480  0000c008  00000021  00000000  02027d10  00000480  0001e9d4

[   12.964910] 02027c50: 0001ea18  028de6fc  02002042  0000f90c  ffa01738  0000f8f6  ffa01718  00000000

[   12.983512] 02027c70: 00000000  000036f5  00000000  002436d1  00000000  ffffffff  7ffff000  f4240000

[   13.002114] 02027c90: e4d80000  00000000  00000000  00000000  00000000  0000005b  00001802  fffe14bf

[   13.020715] 02027cb0: 00000000  ffffffff  fffd5794  ffffffe6  00000000  00000000  00000004  028f80a4

[   13.039317] 02027cd0: 02001a80  00000000  002dafbc  0001ea18  02fa6800  00000a02  ffffffff  00000000

[   13.057919] 02027cf0: 00000000  02001a60  02001a61  028f80a8  028de6fc  028de6fc  02fa6800  00000006

[   13.076521] 02027d10: 00002b29  00002b29  02027d50  0001ea18  028f8000  02004d60  00000a02  00000000

[   13.095123] 02027d30: 29b9d4a2  00002b29  02027d70  00000001  001051f0  002c5dec  0001e394  0000001f

[   13.113725] 02027d50: 028de6f8  028f8000  0d000000  02027dc4  00105690  02004d60  002c5dec  001055f8

[   13.132327] 02027d70: 002bc6ec  02004d60  002dd0b0  00000000  00000000  000246aa (00000000)<00018ed8>

[   13.150929] 02027d90: 02004e10  00000100  0003f447  00002b29  29b936e9  00002b29  29b936e9  00000000

[   13.169531] 02027db0: 02026000  002c6bf8  002c69f8  002c67f8  002c65f8  02004f10  02004f10  002c5cc4

[   13.188133] 02027dd0:<00015c06> 00000001  002c5cd0  02026000  00000001  00000004  00000100  0000000a

[   13.206735] 02027df0: 0000001f  00032f28  002de054  028f80a4  001003fc  00000006  02027f40  ffa00386

[   13.225337] 02027e10: 002eb844  028f80a4  001003fc  00000006  00000000  fffffffc  ffffffc0  028f8000

[   13.243939] 02027e30: 02fa681c  0000ffff  ffa00c7e  028f8000  02026000  00000000  00000000  00043040

[   13.262541] 02027e50: 00000000  000ffa82  00008050  00000000  00000000  02ff4000  00a8e642  000ffa82

[   13.281143] 02027e70: 00100410  00000006  02003044  00a9cfdf  ffa014c8  00a9cfde  ffa014c6  00000000

[   13.299745] 02027e90: 00000000  000000ff  00000000  000007dd  00000000  00000000  7ffff000  000000c0

[   13.318347] 02027eb0: 00000000  00000000  00000000  00000000  00000000  0000005b  00001802  00000001

[   13.336949] 02027ed0: ffffffe8  00666666  68000000  02fa6828  002dafbc  00000000  02027f40  028f8000

[   13.355551] 02027ef0: 028f80a4  001003fc  002dafbc  02999380  028f80a8  02026000  00000000  fffffffc

[   13.374152] 02027f10: ffffffc0  02001a60  0000ffff  ffffffc0  0000ffff  0000ffff  028f80a8  00000006

[   13.392754] 02027f30: 02fa7cac  02a044e0  02018040  0000000d  002dafbc <0001e5f2> 028f80a4  02001a60

[   13.411356] 02027f50: 001003fc  02026000  00000000  fffffffc  ffffffc0  00000000  02026008  02026000

[   13.429958] 02027f70: 02026000  00000000  0001e69e  02001a60  0001e664  00000000  02001a68  02027fa4

[   13.448560] 02027f90: 00000000  00000000  02026008  02026000  02026000  00000000  02018040  00021340

[   13.467162] 02027fb0: 02027fb0  02027fb0 <00020fd6> 0201bf3c  02001a60  00000000  00000000  00020f7c

[   13.485764] 02027fd0: 000014a8  00000000  00000000  02027fdc  02027fdc <000014ae> 00000000  00000000

[   13.504366] 02027ff0: 00000000  00000000  ffffffff  00000006

[   13.516298] Return addresses in stack:

[   13.523883]     address : <0xffa003fe> { _bfin_coretmr_interrupt + 0x12 }

[   13.537622]    frame  1 : <0x00018ed8> { _run_timer_softirq + 0x114 }

[   13.550546]     address : <0x00015c06> { ___do_softirq + 0x76 }

[   13.562517]     address : <0x0001e5f2> { _run_workqueue + 0x8a }

[   13.574601]     address : <0x00020fd6> { _kthread + 0x5a }

[   13.585641]     address : <0x000014ae> { _kernel_thread_helper + 0x6 }

QuoteReplyEditDelete

 

 

2011-01-10 16:17:15     Re: workqueue

Mike Frysinger (UNITED STATES)

Message: 97305   

 

please post your config files.  use `make bugreport` to generate them.

QuoteReplyEditDelete

 

 

2011-01-10 16:22:03     Re: workqueue

Chris Brissette (UNITED STATES)

Message: 97306   

 

Here is the bugreport

 

bugreport.tar.gz

QuoteReplyEditDelete

 

 

2011-01-10 16:50:18     Re: workqueue

Mike Frysinger (UNITED STATES)

Message: 97307   

 

under what conditions are you hitting this bug ?  is the system idling ?  are you pumping a lot of data through ttyBF1 ?

 

also, please post the output of your system booting to the prompt.

QuoteReplyEditDelete

 

 

2011-01-10 17:08:26     Re: workqueue

Chris Brissette (UNITED STATES)

Message: 97308   

 

19200 Baud, send receive a message probably every second. (It's as fast as the pic on the other side can respond)

 

 

 

Loading from NAND 1GiB 3,3V 8-bit, offset 0x0

   Image Name:   bf537-2.6.34.7-ADI-2010R1-svn951

   Created:      2010-12-14  16:41:44 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    5359995 Bytes =  5.1 MB

   Load Address: 00001000

   Entry Point:  003096a4

## Booting kernel from Legacy Image at 02000000 ...

   Image Name:   bf537-2.6.34.7-ADI-2010R1-svn951

   Created:      2010-12-14  16:41:44 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    5359995 Bytes =  5.1 MB

   Load Address: 00001000

   Entry Point:  003096a4

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 003096a4

[    0.000000] Linux version 2.6.34.7-ADI-2010R1-svn9519 (root@debpoweredge) (gcc version 4.3.5 (ADI-2010R1-RC4) ) #305 Tue Dec 14 11:41:38 EST 2010

[    0.000000] register early platform devices

[    0.000000] bootconsole [early_shadow0] enabled

[    0.000000] bootconsole [early_BFuart0] enabled

[    0.000000] early printk enabled on early_BFuart0

[    0.000000] Board Memory: 64MB

[    0.000000] Kernel Managed Memory: 64MB

[    0.000000] Memory map:

[    0.000000]   fixedcode = 0x00000400-0x00000490

[    0.000000]   text      = 0x00001000-0x001fcf98

[    0.000000]   rodata    = 0x001fcf98-0x002bba3c

[    0.000000]   bss       = 0x002bc000-0x002d9a8c

[    0.000000]   data      = 0x002d9a90-0x002fe000

[    0.000000]     stack   = 0x002fc000-0x002fe000

[    0.000000]   init      = 0x002fe000-0x009dc000

[    0.000000]   available = 0x009dc000-0x03f00000

[    0.000000]   DMA Zone  = 0x03f00000-0x04000000

[    0.000000] Hardware Trace Active and Enabled

[    0.000000] Boot Mode: 0

[    0.000000] Blackfin support (C) 2004-2010 Analog Devices, Inc.

[    0.000000] Compiled for ADSP-BF537 Rev 0.3

[    0.000000] Blackfin Linux support by   blackfin.uclinux.org/

[    0.000000] Processor Speed: 600 MHz core clock and 100 MHz System Clock

[    0.000000] NOMPU: setting up cplb tables

[    0.000000] Instruction Cache Enabled for CPU0

[    0.000000]   External memory: cacheable in instruction cache

[    0.000000] Data Cache Enabled for CPU0

[    0.000000]   External memory: cacheable (write-back) in data cache

[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16002

[    0.000000] Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)

[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Memory available: 53848k/65536k RAM, (7032k init code, 2031k kernel code, 1029k data, 1024k dma, 572k reserved)

[    0.000000] Hierarchical RCU implementation.

[    0.000000] NR_IRQS:138

[    0.000000] Configuring Blackfin Priority Driven Interrupts

[    0.000000] console [ttyBF0] enabled, bootconsole disabled

[    0.000000] console [ttyBF0] enabled, bootconsole disabled

[    0.022201] Calibrating delay loop... 1191.93 BogoMIPS (lpj=2383872)

[    0.133681] Security Framework initialized

[    0.141916] Mount-cache hash table entries: 512

[    0.155692] Blackfin Scratchpad data SRAM: 4 KB

[    0.164596] Blackfin L1 Data A SRAM: 16 KB (16 KB free)

[    0.175066] Blackfin L1 Data B SRAM: 16 KB (16 KB free)

[    0.185592] Blackfin L1 Instruction SRAM: 48 KB (36 KB free)

[    0.197693] NET: Registered protocol family 16

[    0.208673] Blackfin DMA Controller

[    0.215503] stamp_init(): registering device resources

[    0.259852] bio: create slab <bio-0> at 0

[    0.271391] SCSI subsystem initialized

[    0.281374] usbcore: registered new interface driver usbfs

[    0.292772] usbcore: registered new interface driver hub

[    0.303935] usbcore: registered new device driver usb

[    0.317647] cfg80211: Calling CRDA to update world regulatory domain

[    0.330888] Switching to clocksource bfin_cs_gptimer0

[    0.346161] NET: Registered protocol family 2

[    0.355061] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

[    0.369483] TCP established hash table entries: 2048 (order: 2, 16384 bytes)

[    0.383679] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

[    0.396372] TCP: Hash tables configured (established 2048 bind 2048)

[    0.409063] TCP reno registered

[    0.415394] UDP hash table entries: 256 (order: 0, 4096 bytes)

[    0.427211] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[    0.440274] NET: Registered protocol family 1

[    0.805425] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

[    0.817802] fuse init (API version 7.13)

[    0.827634] msgmni has been set to 105

[    0.849948] alg: No test for stdrng (krng)

[    0.858192] io scheduler noop registered

[    0.866064] io scheduler cfq registered (default)

[    0.877656] bfin-uart: Blackfin serial driver

[    0.886428] bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

[    0.901191] bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART

[    0.940663] brd: module loaded

[    0.951808] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)

[    0.968534] Scanning device for bad blocks

[    1.081020] Bad eraseblock 1541 at 0x000018140000

[    1.114060] Bad eraseblock 1893 at 0x00001d940000

[    1.141322] Bad eraseblock 2159 at 0x000021bc0000

[    1.173632] Bad eraseblock 2500 at 0x000027100000

[    1.203488] Bad eraseblock 2805 at 0x00002bd40000

[    1.232075] Bad eraseblock 3091 at 0x0000304c0000

[    1.279097] Bad eraseblock 3650 at 0x000039080000

[    1.345176] RedBoot partition parsing not available

[    1.354796] Creating 2 MTD partitions on "gen_nand":

[    1.364772] 0x000000000000-0x000000800000 : "linux kernel(nand)"

[    1.379832] 0x000000800000-0x000040000000 : "file system(nand)"

[    1.398253] tun: Universal TUN/TAP device driver, 1.6

[    1.408292] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>

[    1.428289] bfin_mii_bus: probed

[    1.435306] bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:07, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)

[    1.460582] bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

[    1.476257] Atmel at76x USB Wireless LAN Driver 0.17 loading

[    1.488073] usbcore: registered new interface driver at76c50x-usb

[    1.501146] usbcore: registered new interface driver zd1211rw

[    1.513208] usbcore: registered new interface driver rtl8187

[    1.525178] usbcore: registered new interface driver usb8xxx

[    1.537291] usbcore: registered new interface driver lbtf_usb

[    1.549354] usbcore: registered new interface driver rt2500usb

[    1.561561] usbcore: registered new interface driver rt73usb

[    1.573470] usbcore: registered new interface driver rt2800usb

[    1.585649] usbcore: registered new interface driver ar9170usb

[    1.598460] Initializing USB Mass Storage driver...

[    1.608752] usbcore: registered new interface driver usb-storage

[    1.620681] USB Mass Storage support registered.

[    1.630520] usbcore: registered new interface driver libusual

[    1.642734] rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

[    1.657848] bfin-wdt: initialized: timeout=20 sec (nowayout=0)

[    1.669575] TCP cubic registered

[    1.675866] NET: Registered protocol family 17

[    1.684837] lib80211: common routines for IEEE802.11 drivers

[    1.698675] rtc-bfin rtc-bfin: setting system clock to 2011-01-10 21:01:54 UTC (1294693314)

[    1.721346] dma_alloc_init: dma_page @ 0x02a14000 - 256 pages at 0x03f00000

[    1.737965] Freeing unused kernel memory: 7032k freed

mkdir: can't create directory '/var/lib': File exists

[    2.570155] yaffs: dev is 32505857 name is "mtdblock1" rw

[    2.580838] yaffs: passed flags ""

 

Jan 10 22:03:00 login[255]: root login on 'console'

 

 

 

BusyBox v1.16.2 (2010-12-13 15:06:17 EST) hush - the humble shell

 

root:~>

 

 

 

 

 

Thanks

 

Chris

QuoteReplyEditDelete

 

 

2011-01-10 22:37:36     Re: workqueue

Sonic Zhang (CHINA)

Message: 97315   

 

Do you have a test applicaton for us to replicate on bf537-stamp? And please list all steps to run your test as well.

QuoteReplyEditDelete

 

 

2011-01-20 12:19:27     Re: workqueue

Chris Brissette (UNITED STATES)

Message: 97571   

 

Sorry it took so long to get back, I have been out of the office. This is what the software engineer found.

 

"We were finally able to isolate our kernel reboot problem. It appears to be some sort of interaction between reading on ttyBF1 and making ioctl calls to get the current IP address. It only happens when these occur on separate threads. Performed sequentially or protected with a mutex, it works fine.

 

Our product has multiple threads, one polling the current IP address for wlan0 and eth0, the other communicating through ttyBF1. As it was implemented, it would fail only once a week. This test application has two threads, one polling the IP addresses, and the other communicating on the serial port almost continuously and should fail within an hour.

 

 

 

The problem does not occur if nothing is received on the serial port, so a loopback is required.

 

 

 

I’ve included the source as well as the makefiles."

 

 

 

Thanks,

 

Chris

 

 

SerialTest2.tar.gz

QuoteReplyEditDelete

 

 

2011-01-21 01:13:25     Re: workqueue

Sonic Zhang (CHINA)

Message: 97590   

 

Could you replicate this problem on bf537-stamp?

 

Could you give us a sample test code to replicate on bf537-stamp?

QuoteReplyEditDelete

 

 

2011-01-21 01:24:27     Re: workqueue

Mike Frysinger (UNITED STATES)

Message: 97593   

 

the code he posted looks like it should run fine on a bf537-stamp board

QuoteReplyEditDelete

 

 

2011-01-21 10:21:21     Re: workqueue

Chris Brissette (UNITED STATES)

Message: 97606   

 

We have a stamp here, I will pull it out.

 

Chris

QuoteReplyEditDelete

 

 

2011-01-25 17:07:34     Re: workqueue

Chris Brissette (UNITED STATES)

Message: 97692   

 

We have done the BFtty0 test on the BF537 stamp and it seems to lockup and watchdog or throw up the workqueue failure that I have shown above. We backported our config to Linux release 2.6.28.10-ADI-2009R1.1-svn9578 and ran overnight without any problems.

 

We really dont know were to go with it from here. It is defintly TTY receive related, using PIO it fails immediately DMA lasts a little while. It seems much worse when you put NAND into the mix as well. The Stamp took alittle longer to fail without the other peripherals that we have on our board.

 

We have no real reason to go to the 2010 build so we are going to continue testing on the 2009r1.1

 

Thanks!

QuoteReplyEditDelete

 

 

2011-01-26 00:50:40     Re: workqueue

Sonic Zhang (CHINA)

Message: 97695   

 

Could you attach your test application here for us to replicate on 2010R1?

QuoteReplyEditDelete

 

 

2011-01-26 00:54:46     Re: workqueue

Sonic Zhang (CHINA)

Message: 97696   

 

OK. I see your attached tar ball. We will have a try on bf537-stamp.

 

Is the only hardware configure required to loop back the serial port?

QuoteReplyEditDelete

 

 

2011-01-26 08:35:08     Re: workqueue

Chris Brissette (UNITED STATES)

Message: 97698   

 

All we did was jumper Tx-Rx on the BF537-Stamp Pins 6-10 on p12. It took up to 2 hours to fail sometimes. Others were right away.

 

 

 

Thanks

QuoteReplyEditDelete

 

 

2011-01-28 09:11:58     Re: workqueue

Chris Brissette (UNITED STATES)

Message: 97731   

 

I added a tracker for this issue.

 

Thanks again

 

Chris

Attachments

Outcomes