[#5637] Kernel crashed when arecord and aplay on bf537-stamp with SoC I2S audio

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

[#5637] Kernel crashed when arecord and aplay on bf537-stamp with SoC I2S audio

Submitted By: Vivi Li

Open Date

2009-10-23 02:27:41     Close Date

2009-11-01 22:27:32

Priority:

Medium     Assignee:

Graf Yang

Cliff Cai

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

Tests     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-09r1-rc9

App binary format:

N/A     

Summary: Kernel crashed when arecord and aplay on bf537-stamp with SoC I2S audio

Details:

 

Kernel crashed when arecord and aplay at the same time on bf537-stamp with ad73311/SSM2602.

 

Bellow is the log for SSM2602:

--

Linux version 2.6.31.4-ADI-2010R1-pre-svn7692 (test@uclinux71-digiumPBX) (gcc version 4.1.2 (ADI svn)) #89 Thu Oct 22 14:15:49 CST 2009^M

register early platform devices^M

bootconsole [early_shadow0] enabled^M

bootconsole [early_BFuart0] enabled^M

early printk enabled on early_BFuart0^M

Limiting kernel memory to 56MB due to anomaly 05000263^M

Board Memory: 64MB^M

Kernel Managed Memory: 64MB^M

Memory map:^M

  fixedcode = 0x00000400-0x00000490^M

  text      = 0x00001000-0x0012c7a0^M

  rodata    = 0x0012c7a0-0x0018ee34^M

  bss       = 0x0018f000-0x001a0324^M

  data      = 0x001a0324-0x001b2000^M

    stack   = 0x001b0000-0x001b2000^M

  init      = 0x001b2000-0x008e0000^M

  available = 0x008e0000-0x037ff000^M

  DMA Zone  = 0x03e00000-0x04000000^M

Hardware Trace Active and Enabled^M

Boot Mode: 0^M

Reset caused by Software reset^M

Blackfin support (C) 2004-2009 Analog Devices, Inc.^M

Compiled for ADSP-BF537 Rev 0.2^M

Blackfin Linux support by http://blackfin.uclinux.org/^M

Processor Speed: 500 MHz core clock and 125 MHz System Clock^M

NOMPU: setting up cplb tables^M

Instruction Cache Enabled for CPU0^M

  External memory: cacheable in instruction cache^M

Data Cache Enabled for CPU0^M

  External memory: cacheable (write-back) in data cache^M

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14223^M

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off^M

PID hash table entries: 256 (order: 8, 1024 bytes)^M

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)^M

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)^M

Memory available: 47684k/65536k RAM, (7352k init code, 1197k kernel code, 535k data, 2048k dma, 6720k reserved)^M

NR_IRQS:98^M

Configuring Blackfin Priority Driven Interrupts^M

console [ttyBF0] enabled, bootconsole disabled^M

console [ttyBF0] enabled, bootconsole disabled^M

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)^M

Security Framework initialized^M

Mount-cache hash table entries: 512^M

Blackfin Scratchpad data SRAM: 4 KB^M

Blackfin L1 Data A SRAM: 16 KB (16 KB free)^M

Blackfin L1 Data B SRAM: 16 KB (16 KB free)^M

Blackfin L1 Instruction SRAM: 48 KB (36 KB free)^M

NET: Registered protocol family 16^M

Blackfin DMA Controller^M

stamp_init(): registering device resources^M

bio: create slab <bio-0> at 0^M

NET: Registered protocol family 2^M

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)^M

TCP established hash table entries: 2048 (order: 2, 16384 bytes)^M

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)^M

TCP: Hash tables configured (established 2048 bind 2048)^M

TCP reno registered^M

NET: Registered protocol family 1^M

msgmni has been set to 93^M

io scheduler noop registered^M

io scheduler anticipatory registered (default)^M

io scheduler cfq registered^M

bfin-uart: Blackfin serial driver^M

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART^M

brd: module loaded^M

bfin_mii_bus: probed^M

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)^M

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1^M

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7^M

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0^M

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400^M

bfin-wdt: initialized: timeout=20 sec (nowayout=0)^M

Advanced Linux Sound Architecture Driver Version 1.0.20.^M

No device for DAI AD73311^M

dma rx:3 tx:4, err irq:45, regs:ffc00800^M

dma_alloc_init: dma_page @ 0x02943000 - 512 pages at 0x03e00000^M

asoc: AD73311 <-> bf5xx-i2s mapping ok^M

ALSA device list:^M

  #0: bf5xx_ad73311 (AD73311)^M

TCP cubic registered^M

NET: Registered protocol family 17^M

rtc-bfin rtc-bfin: setting system clock to 1970-02-04 20:05:34 UTC (3009934)^M

IP-Config: Complete:^M

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,^M

     host=bf537-stamp, domain=, nis-domain=(none),^M

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=^M

Freeing unused kernel memory: 7352k freed^M

                           _____________________________________^M

        a8888b.           / Welcome to the uClinux distribution \^M

       d888888b.         /       _     _                         \^M

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |^M

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |^M

       8'    .88       \        | |   | |  _ \| | | | \  /        |^M

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |^M

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |^M

     dP   .    Y8b.       \   For embedded processors including   |^M

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /^M

   d8"         'Y88b        \___________________________________/^M

  :8P    '      :888^M

   8a.   :     _a88P         For further information, check out:^M

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/^M

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/^M

/     \.___.d|    .'           - http://www.uclinux.org/^M

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin^M

^M

Have a lot of fun...^M

^M

^M

BusyBox v1.15.2 (2009-10-22 14:11:44 CST) hush - the humble shell^M

^M

root:/> version

kernel:    Linux release 2.6.31.4-ADI-2010R1-pre-svn7692, build #89 Thu Oct 22 14:15:49 CST 2009

toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-9020, build #1235 Thu Oct 22 14:15:00 CST 2009

root:/>

root:/> arecord -t wav -c 2 -f S16_LE -r 8000 -d 5 |aplay^M

Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo^M

------------[ cut here ]------------^M

kernel BUG at mm/nommu.c:550!^M

Kernel panic - not syncing: BUG()^M

Hardware Trace:^M

   0 Target : <0x00004fd0> { _trap_c + 0x0 }^M

     Source : <0xffa00788> { _exception_to_level5 + 0xa4 } CALL pcrel^M

   1 Target : <0xffa006e4> { _exception_to_level5 + 0x0 }^M

     Source : <0xffa00598> { _bfin_return_from_exception + 0x20 } RTX^M

   2 Target : <0xffa00578> { _bfin_return_from_exception + 0x0 }^M

     Source : <0xffa0063c> { _ex_trap_c + 0x74 } JUMP.S^M

   3 Target : <0xffa005c8> { _ex_trap_c + 0x0 }^M

     Source : <0xffa0085c> { _trap + 0x68 } JUMP (P4)^M

   4 Target : <0xffa00814> { _trap + 0x20 }^M

     Source : <0xffa00810> { _trap + 0x1c } IF !CC JUMP^M

   5 Target : <0xffa007f4> { _trap + 0x0 }^M

     Source : <0x0003e1fc> { _add_nommu_region + 0x50 } IF !CC JUMP^M

   6 Target : <0x0003e1fa> { _add_nommu_region + 0x4e }^M

     Source : <0x0003e1f0> { _add_nommu_region + 0x44 } IF !CC JUMP^M

   7 Target : <0x0003e1ee> { _add_nommu_region + 0x42 }^M

     Source : <0x0003e1ca> { _add_nommu_region + 0x1e } IF CC JUMP^M

   8 Target : <0x0003e1c3> { _add_nommu_region + 0x17 }^M

     Source : <0x0003e1d6> { _add_nommu_region + 0x2a } IF CC JUMP^M

   9 Target : <0x0003e1ac> { _add_nommu_region + 0x0 }^M

     Source : <0x0003ef44> { _do_mmap_pgoff + 0x184 } CALL pcrel^M

  10 Target : <0x0003ef3e> { _do_mmap_pgoff + 0x17e }^M

     Source : <0x0003f112> { _do_mmap_pgoff + 0x352 } JUMP.S^M

  11 Target : <0x0003f110> { _do_mmap_pgoff + 0x350 }^M

     Source : <0x0003da26> { _do_mmap_shared_file + 0x32 } RTS^M

  12 Target : <0x0003da0a> { _do_mmap_shared_file + 0x16 }^M

     Source : <0x000dd2cc> { _bf5xx_pcm_mmap + 0x20 } RTS^M

  13 Target : <0x000dd2ac> { _bf5xx_pcm_mmap + 0x0 }^M

     Source : <0x000c9862> { _snd_pcm_mmap_data + 0x92 } JUMP (P2)^M

  14 Target : <0x000c981c> { _snd_pcm_mmap_data + 0x4c }^M

     Source : <0x000c9816> { _snd_pcm_mmap_data + 0x46 } IF !CC JUMP^M

  15 Target : <0x000c9810> { _snd_pcm_mmap_data + 0x40 }^M

     Source : <0x000c97f8> { _snd_pcm_mmap_data + 0x28 } IF !CC JUMP^M

Stack info:^M

SP: [0x02e87ccc] <0x02e87ccc> /* kernel dynamic memory */^M

FP: (0x02e87eec)^M

Memory from 0x02e87cc0 to 02e88000^M

02e87cc0: 00000013  02e87ccc  00008000 [001602b8]<00010c84> 00197db4  001602b8  001943d2 ^M

02e87ce0: 001943d2  001943d2  02e87d08  02e87d08 <0000535e> 02e87db4  ffe02014  00008000 ^M

02e87d00: 00008008  00000000  0000003f  ffffffff  00000000  ffffffff  00000002 <000cc5d0>^M

02e87d20: 00004000  01694000 <000cc5d0> 00000002  00000003  00000004  00000005  00000006 ^M

02e87d40: 00000007  00000008  00000009  0000000a  0000000b  0000000c  0000000d  0000000e ^M

02e87d60: 0000000f  00000010  00000011  00000012  00000013  00000014  00000015  00000016 ^M

02e87d80: 00000017  00000000  02e87d7c  00000001 <ffa0078c> 00191000  00008008  00002021 ^M

02e87da0: 00000008  00000000  00000001  00000001  00000480  00000480  00008008  00002021 ^M

02e87dc0: 00000000  02e87e90  00000480  0003e1fe <0003ef48> 00000000  02003005  0164ad93 ^M

02e87de0: ffa01808  0164ad92  ffa01808  00000000  00000000  00000000  00000000  00000000 ^M

02e87e00: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

02e87e20: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00381940 ^M

02e87e40: 00000000  016bf26c  00000001  0019a5f4  023f5120  00008000  014bc81c  014bc72c ^M

02e87e60: 0207f43c  00000000  014bc72c  00000008  00000000  00000000  00020000  00000000 ^M

02e87e80: 00000000  00000000  0207f43c  00000006  00000000  016bf264 <000232f6> 00000000 ^M

02e87ea0: 00000001  00000000  02e87eb0  00b8fc24  000000fb  016bf278 <00003ce8> 00000000 ^M

02e87ec0: 00008000  00381940  02e86000  00000001  023f5120  00000003  80104132  023f5120 ^M

02e87ee0: 023f5120  00000003  00000001 (00000000)<ffa00994> 00003ca0  000000c0  00000000 ^M

02e87f00: ffffe000  00000000  00000004  ffc00014 <0168381c> 00381940  00000001  00000004 ^M

02e87f20: 00000000  02a0d46a  00008000  00002000  00000000  02e88000  02a0d46a  02a0d46a ^M

02e87f40:<0164f22e><ffa01128> 02003025  0164ad93  0158f0b9  0164ad92  0158f0ac  00000000 ^M

02e87f60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

02e87f80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000 ^M

02e87fa0: 00000000  00000000  00000000  00381940  00000000  016bf26c  016bf278  02cfcdb4 ^M

02e87fc0: 00b85dd0  00381940  00000001  00000000  000000c0  00000001  0000005c  00000000 ^M

02e87fe0: 00000004  00000001  00000003  00008000  00000000  00000000  000000c0  00000006 ^M

Return addresses in stack:^M

    address : <0x00010c84> { _panic + 0x4c }^M

    address : <0x0000535e> { _trap_c + 0x38e }^M

    address : <0x000cc5d0> { _snd_pcm_hw_refine + 0x2ac }^M

    address : <0x000cc5d0> { _snd_pcm_hw_refine + 0x2ac }^M

    address : <0xffa0078c> { _exception_to_level5 + 0xa8 }^M

    address : <0x0003ef48> { _do_mmap_pgoff + 0x188 }^M

    address : <0x000232f6> { _ktime_get_ts + 0x26 }^M

    address : <0x00003ce8> { _sys_mmap2 + 0x48 }^M

   frame  1 : <0xffa00994> { _system_call + 0x68 }^M

    address : <0x0168381c> [ /usr/lib/libasound.so.2 + 0x8381c ]^M

    address : <0x0164f22e> [ /usr/lib/libasound.so.2 + 0x4f22e ]^M

    address : <0xffa01128> { _evt_system_call + 0x64 }^M

--

 

Follow-ups

 

--- Cliff Cai                                                2009-10-26 04:47:24

this is a problem of mmap,Graf,would you have a look at it?

 

Thanks

 

Cliff

 

--- Graf Yang                                                2009-10-26 05:04:18

Please reference the following link,

http://mailman.alsa-project.org/pipermail/alsa-devel/2009-March/015802.html

 

We may need to update to the alsa mainline code.

 

--- Sonic Zhang                                              2009-10-27 00:35:39

I think Cliff can import that patch to SVN head before we update to new kernel

version.

 

--- Cliff Cai                                                2009-10-29 02:39:45

it works for me,thanks.

 

--- Vivi Li                                                  2009-11-01 22:27:32

OK now. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.audio_ad73311    application/octet-stream    35201    Vivi Li

Attachments

Outcomes