ttyS0 at wrong baudrate
"Erazem Polutnik" <[email protected]>
| Newsgroups | gmane.linux.ports.arm.general |
|---|---|
| Message-ID | <545DB548153C404B8967AB016B1C2DBD@frodo> |
Dear all, I'm having PXA270 toradex board running kernel 2.6.23. kernel console is set to ttyS0,115200n8. In program we are also using ttyS0 and we initalize it to 4800,8,n,1. We output an NMEA stream on ttyS0 and everything is working ok. However, if PXA270 receive few characters from outer world at different baudrate than 4800, program crash with out of memory. dmesg gives following: ---- [ 321.610000] Mem-info: [ 321.620000] DMA per-cpu: [ 321.630000] CPU 0: Hot: hi: 18, btch: 3 usd: 3 Cold: hi: 6, btch: 1 usd: 0 [ 321.650000] Active:4547 inactive:5148 dirty:0 writeback:0 unstable:0 [ 321.650000] free:4923 slab:599 mapped:3114 pagetables:72 bounce:0 [ 321.690000] DMA free:19692kB min:1016kB low:1268kB high:1524kB active:18188kB inactive:20592kB present:65024kB pages_scanned:0 all_unreclaimable? no [ 321.730000] lowmem_reserve[]: 0 0 0 [ 321.740000] DMA: 1*4kB 1*8kB 0*16kB 1*32kB 1*64kB 1*128kB 0*256kB 0*512kB 1*1024kB 1*2048kB 4*4096kB = 19692kB [ 321.770000] Free swap: 0kB [ 321.790000] 16384 pages of RAM [ 321.800000] 4987 free pages [ 321.800000] 888 reserved pages [ 321.810000] 599 slab pages [ 321.820000] 4391 pages shared [ 321.830000] 0 pages swap cached [ 321.840000] Out of memory: kill process 1407 (lx8000) score 26622 or a child [ 321.860000] Killed process 1407 (lx8000) [ 322.240000] SysRq : Manual OOM execution [ 322.250000] SysRq : HELP : loglevel0-8 reBoot tErm Full kIll saK showMem Nice showPc show-all-timers(Q) unRaw Sync showTasks Unmount shoW-blocked-tasks [ 322.290000] events/0 invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0 [ 322.310000] [<c0037be8>] (dump_stack+0x0/0x14) from [<c00719f0>] (out_of_memory+0x7c/0x200) [ 322.330000] SysRq : Manual OOM execution [ 322.350000] [<c0071974>] (out_of_memory+0x0/0x200) from [<c0146af8>] (moom_callback+0x1c/0x24) [ 322.370000] SysRq : Manual OOM execution [ 322.380000] SysRq : HELP : loglevel0-8 reBoot tErm Full kIll saK showMem Nice showPc show-all-timers(Q) unRaw Sync showTasks Unmount shoW-blocked-tasks [ 322.420000] SysRq : Manual OOM execution [ 322.440000] r8:00000000 r7:00000000 r6:c037fa20 r5:c0146adc r4:c037fa20 [ 322.460000] [<c0146adc>] (moom_callback+0x0/0x24) from [<c005a5d8>] (run_workqueue+0xb8/0x14c) [ 322.480000] [<c005a520>] (run_workqueue+0x0/0x14c) from [<c005a724>] (worker_thread+0xb8/0xcc) [ 322.510000] r5:c03a1fb0 r4:c037fa28 [ 322.520000] [<c005a66c>] (worker_thread+0x0/0xcc) from [<c005e00c>] (kthread+0x54/0x7c) [ 322.540000] r6:00000000 r5:c005a66c r4:fffffffc [ 322.560000] [<c005dfb8>] (kthread+0x0/0x7c) from [<c004cfbc>] (do_exit+0x0/0x748) [ 322.580000] r5:00000000 r4:00000000 ---- Many thanks Erazem ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php