[#5510] audio test failed on bf527-ezkit with ssm2602
Submitted By: Vivi Li
Open Date
2009-09-04 00:44:52 Close Date
2009-10-21 22:43:13
Priority:
Medium Assignee:
Cliff Cai
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Category:
Audio Board:
N/A
Processor:
BF527 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Out of Date
Uboot version or rev.:
Toolchain version or rev.:
gcc4.1-09r1-rc9
App binary format:
N/A
Summary: audio test failed on bf527-ezkit with ssm2602
Details:
audio test on bf527-ezkit with ssm2602 failed.
When play audio, some error info came up and kernel will crash when run "record|play".
--
Linux version 2.6.30.5-ADI-2010R1-pre-svn7258 (test@uclinux60-bf527-std) (gcc version 4.1.2 (ADI svn)) #4 Thu Sep 3 18:12:52 CST9
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001517d0
rodata = 0x001517d0-0x001c4668
bss = 0x001c5000-0x001d6cfc
data = 0x001d6cfc-0x001ee000
stack = 0x001ec000-0x001ee000
init = 0x001ee000-0x0094d000
available = 0x0094d000-0x03dff000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.0
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15747
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 if
NR_IRQS:119
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 53392k/65536k RAM, (7548k init code, 1345k kernel code, 627k data, 2048k dma, 572k reserved)
Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
net_namespace: 296 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
musb_hdrc: version 6.0, pio, host, debug=0
musb_hdrc: USB Host mode controller at ffc03800 using PIO, IRQ 59
musb_hdrc musb_hdrc.0: MUSB HDRC host driver
musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
msgmni has been set to 104
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-t350mcqb: 320x240 24-bit RGB FrameBuffer initializing...
dma_alloc_init: dma_page @ 0x03d89000 - 512 pages at 0x03e00000
bfin-otp: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
brd: module loaded
Driver 'sd' needs updating - please use bus_type methods
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
m25p80 spi0.1: m25p16 (2048 Kbytes)
Creating 2 MTD partitions on "m25p80":
0x000000000000-0x000000040000 : "bootloader(spi)"
0x000000040000-0x000000200000 : "linux kernel(spi)"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.20.
No device for DAI SSM2602
No device for DAI bf5xx-i2s
dma rx:3 tx:4, err irq:15, regs:ffc00800
ssm2602 Audio Codec 0.1<6>asoc: SSM2602 <-> bf5xx-i2s mapping ok
ALSA device list:
#0: bf5xx_ssm2602 (SSM2602)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2004-05-31 12:39:01 UTC (1086007141)
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf527-ezkit, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
Freeing unused kernel memory: 7548k freed
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - http://blackfin.uclinux.org/
\ YP" `| 8P `. - http://docs.blackfin.uclinux.org/
/ \.___.d| .' - http://www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - https://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.15.0 (2009-09-03 18:10:53 CST) hush - the humble shell
root:/> PHY: 0:01 - Link is Up - 100/Full
usb 1-1: new high speed USB device using musb_hdrc and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access SanDisk U3 Cruzer Micro 3.21 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 2006673 512-byte hardware sectors: (1.02 GB/979 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI removable disk
root:/>
root:/> arecord -t wav -c 2 -f S16_LE -r 8000 -d 5 wav
Recording WAVE 'wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
root:/> aplay wav
Playing WAVE 'wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
__ratelimit: 4 callbacks suppressed
root:/>
root:/> version
kernel: Linux release 2.6.30.5-ADI-2010R1-pre-svn7258, build #4 Thu Sep 3 18:12:52 CST 2009
toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)
user-dist: release svn-8804, build #57 Thu Sep 3 18:11:49 CST 2009
root:/>
root:/> arecord|aplay
------------[ cut here ]------------
kernel BUG at mm/nommu.c:534!
Kernel panic - not syncing: BUG()
Hardware Trace:
0 Target : <0x00004ef0> { _trap_c + 0x0 }
Source : <0xffa00618> { _exception_to_level5 + 0xa4 } CALL pcrel
1 Target : <0xffa00574> { _exception_to_level5 + 0x0 }
Source : <0xffa00428> { _bfin_return_from_exception + 0x18 } RTX
2 Target : <0xffa00410> { _bfin_return_from_exception + 0x0 }
Source : <0xffa004cc> { _ex_trap_c + 0x74 } JUMP.S
3 Target : <0xffa00458> { _ex_trap_c + 0x0 }
Source : <0xffa006de> { _trap + 0x5a } JUMP (P4)
4 Target : <0xffa00684> { _trap + 0x0 }
Source : <0x0003ac2c> { _add_nommu_region + 0x50 } IF !CC JUMP
5 Target : <0x0003ac2a> { _add_nommu_region + 0x4e }
Source : <0x0003ac20> { _add_nommu_region + 0x44 } IF !CC JUMP
6 Target : <0x0003ac1e> { _add_nommu_region + 0x42 }
Source : <0x0003abfa> { _add_nommu_region + 0x1e } IF CC JUMP
7 Target : <0x0003abf3> { _add_nommu_region + 0x17 }
Source : <0x0003ac06> { _add_nommu_region + 0x2a } IF CC JUMP
8 Target : <0x0003abdc> { _add_nommu_region + 0x0 }
Source : <0x0003b9c0> { _do_mmap_pgoff + 0x1c8 } CALL pcrel
9 Target : <0x0003b9ba> { _do_mmap_pgoff + 0x1c2 }
Source : <0x0003bb80> { _do_mmap_pgoff + 0x388 } JUMP.S
10 Target : <0x0003bb7e> { _do_mmap_pgoff + 0x386 }
Source : <0x0003a45a> { _do_mmap_shared_file + 0x32 } RTS
11 Target : <0x0003a43e> { _do_mmap_shared_file + 0x16 }
Source : <0x00101854> { _bf5xx_pcm_mmap + 0x20 } RTS
12 Target : <0x00101834> { _bf5xx_pcm_mmap + 0x0 }
Source : <0x000edea2> { _snd_pcm_mmap_data + 0x92 } JUMP (P2)
13 Target : <0x000ede5c> { _snd_pcm_mmap_data + 0x4c }
Source : <0x000ede56> { _snd_pcm_mmap_data + 0x46 } IF !CC JUMP
14 Target : <0x000ede50> { _snd_pcm_mmap_data + 0x40 }
Source : <0x000ede38> { _snd_pcm_mmap_data + 0x28 } IF !CC JUMP
15 Target : <0x000ede2a> { _snd_pcm_mmap_data + 0x1a }
Source : <0x000ede48> { _snd_pcm_mmap_data + 0x38 } IF CC JUMP
Stack info:
SP: [0x00827ccc] <0x00827ccc> /* kernel dynamic memory */
FP: (0x00827da8)
Memory from 0x00827cc0 to 00828000
00827cc0: 00000013 00827ccc 0000003f [0018ca98]<0000fc50> 001c7db4 0018ca98 001ca49e
00827ce0: 001ca49e 001ca49e 00827d08 00827d08 <00005282> 00827db4 ffe02014 0000003f
00827d00: 00008008 00100100 001d94b8 0000003f <000dada6> 00d21c00 00827da0 00d21d48
00827d20: ffffffff 00000001 00827da0 009e45a0 00000003 00000004 00000005 009e45a0
00827d40:<000dae5c> 00d21c20 001e609c 001e5d70 00000000 0000000c 009e45a0 <00150f44>
00827d60:<000d8bce> 00d21c20 00d21c40 00827da0 00000001 00000014 00000015 00000016
00827d80:<000d9442> 001e6234 00000002 001e5d70 <ffa0061c> 001c7000 00008008 00000021
00827da0: 00ebf704 00000001 (00827dc0)<00100ff6> 00000480 00000480 00008008 00000021
00827dc0:(00000000) 00827e90 00000480 0003ac2e <0003b9c4> 00000000 02003005 0044ad93
00827de0: 0008c100 0044ad92 0008c100 00000000 00000000 00000000 00000000 00000000
00827e00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00827e20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00827e40: 00000000 00f9f27c 00000000 00000020 00ebaaa0 0000003f 00ebf754 00ebf704
00827e60: 0094b25c 00000000 00000000 00ebf704 00000001 00000000 00020000 00000000
00827e80: 00000000 00000000 0094b25c 00000006 00f9f274 00000000 00f9f274 00000000
00827ea0: 00000001 00000000 00827eb0 00497bcc 000000fb 00f9f288 <00003adc> 00000000
00827ec0: 00020000 00eb1940 00826000 00000001 00ebaaa0 00000003 <00049718> 00ebaaa0
00827ee0: 00020000 00000003 00000001 00000000 <ffa00814> 00003a94 000000c0 00000000
00827f00: ffffe000 00000000 00000004 00000000 00000001 00000001 00000001 00000004
00827f20: 00000000 00d8d46a 00008000 00000000 00000000 00828000 00d8d46a 00d8d46a
00827f40:<0044f22e><ffa00f10> 02003025 0044ad93 0083f0b9 0044ad92 0083f0ac 00000000
00827f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00827f80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00827fa0: 00000000 00000000 00000000 00000000 00000000 00f9f27c 00f9f288 00eafd98
00827fc0: 00315dd0 00eb1940 00000001 00000000 000000c0 00000002 000000b8 00000000
00827fe0: 00000004 00000001 00000003 00020000 00000000 00000000 000000c0 00000006
Return addresses in stack:
address : <0x0000fc50> { _panic + 0x4c }
address : <0x00005282> { _trap_c + 0x392 }
address : <0x000dada6> { _bfin_twi_do_master_xfer + 0x10e }
address : <0x000dae5c> { _bfin_twi_master_xfer + 0x28 }
address : <0x00150f44> { _mutex_lock + 0xc }
address : <0x000d8bce> { _i2c_transfer + 0x52 }
address : <0x000d9442> { _i2c_master_send + 0x26 }
address : <0xffa0061c> { _exception_to_level5 + 0xa8 }
frame 1 : <0x00100ff6> { _ssm2602_write + 0x3a }
address : <0x0003b9c4> { _do_mmap_pgoff + 0x1cc }
address : <0x00003adc> { _sys_mmap2 + 0x48 }
address : <0x00049718> { _sys_ioctl + 0x48 }
address : <0xffa00814> { _system_call + 0x68 }
address : <0x0044f22e> [ /usr/lib/libasound.so.2 + 0x4f22e ]
address : <0xffa00f10> { _evt_system_call + 0x64 }
--
Follow-ups
--- Cliff Cai 2009-10-21 22:43:13
this problem is caused by mmap code,it has been fixed now.
Cliff
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.audio_ssm2602 application/octet-stream 40669 Vivi Li