[#4710] kernel will crash when record and play in bf527-ezkit
Submitted By: Vivi Li
Open Date
2008-12-10 05:22:39 Close Date
2009-01-20 05:19:29
Priority:
High Assignee:
Cliff Cai
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
Audio Board:
EZKIT Lite
Processor:
BF527 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
toolchain4.1_2008-11-13
App binary format:
N/A
Summary: kernel will crash when record and play in bf527-ezkit
Details:
In bf527-ezkit, kernel will crash when record and play.
--
Linux version 2.6.28-rc2-ADI-2009R1-pre-svn5849 (test@107-local) (gcc version 4.1.2 (ADI svn)) #8 W8
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00141f70
rodata = 0x00141f70-0x001a4d00
bss = 0x001a4d00-0x001b5784
data = 0x001b5784-0x001c8000
stack = 0x001c6000-0x001c8000
init = 0x001c8000-0x0049a000
available = 0x0049a000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Reset caused by Software reset
Blackfin support (C) 2004-2008 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.0
ERROR: Not running on ADSP-BF527: unknown CPUID 0x27e0 Rev 0.0
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables for global access
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-through)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyf
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 59216k/65536k RAM, (2888k init code, 1283k kernel code, 537k data, 1024k dma, 584)
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 (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
PDA for CPU0 reserved at 001a5c38
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
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 115
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 @ 0x03a4f000 - 256 pages at 0x03f00000
bfin-otp: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
brd: module loaded
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_d)
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":
0x00000000-0x00040000 : "bootloader(spi)"
0x00040000-0x00200000 : "linux kernel(spi)"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma c7
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.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
ASoC version 0.13.2
dma rx:3 tx:4, err irq:15, regs:ffc00800
ssm2602 Audio Codec 0.1<4>hid_zpff: Unknown symbol _input_ff_create_memless
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 05:42:01 UTC (1085982121)
usb 1-1: new high speed USB device using musb_hdrc and address 2
usb 1-1: configuration #1 chosen from 1 choice
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: 2888k 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| - blackfin.uclinux.org/
\ YP" `| 8P `. - docs.blackfin.uclinux.org/
/ \.___.d| .' - www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.1 (2008-12-10 17:54:01 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> PHY: 0:01 - Link is Up - 100/Full
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
NULL pointer access
Kernel OOPS in progress
Deferred Exception context
CURRENT PROCESS:
COMM=aplay PID=238
CPU = 0
TEXT = 0x00310000-0x0031b9ac DATA = 0x0029a9ac-0x0029b5a4
BSS = 0x0029b5a4-0x002a0000 USER-STACK = 0x002bfeb0
return address: [0x000ea364]; contents of:
0x000ea340: 04c3 3218 0167 6f86 ac9a ac52 acd2 ae94
0x000ea350: ac62 0c42 181a 0000 0000 6059 e515 001c
0x000ea360: e418 001c [a2aa] b0f2 e3ff 9046 e42a 0012
0x000ea370: e418 001c 6041 b0f2 e3ff 903e bca3 6c86
SEQUENCER STATUS: Not tainted
SEQSTAT: 00062027 IPEND: 8030 SYSCFG: 0006
EXCAUSE : 0x27
physical IVG15 asserted : <0xffa00cf4> { _evt_system_call + 0x0 }
logical irq 6 mapped : <0xffa0032c> { _timer_interrupt + 0x0 }
logical irq 13 mapped : <0x00095580> { _bfin_t350mcqb_irq_error + 0x0 }
logical irq 15 mapped : <0x000ec058> { _err_handler + 0x0 }
logical irq 21 mapped : <0x000c3ff4> { _bfin_rtc_interrupt + 0x0 }
logical irq 23 mapped : <0x000eae38> { _rx_handler + 0x0 }
logical irq 24 mapped : <0x000eadd4> { _tx_handler + 0x0 }
logical irq 27 mapped : <0x000c66a0> { _bfin_twi_interrupt_entry + 0x0 }
logical irq 31 mapped : <0x000a0f7c> { _bfin_serial_dma_rx_int + 0x0 }
logical irq 32 mapped : <0x000a127c> { _bfin_serial_dma_tx_int + 0x0 }
logical irq 35 mapped : <0x000a9234> { _bfin_mac_interrupt + 0x0 }
logical irq 59 mapped : <0x000bdbd4> { _blackfin_interrupt + 0x0 }
RETE: <0x00000000> { _do_one_initcall + 0xfffff000 }
RETN: <0x0023bce0> /* kernel dynamic memory */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x000e7d14> { _soc_pcm_open + 0x60 }
PC : <0x000ea364> { _ssm2602_startup + 0x24 }
DCPLB_FAULT_ADDR: <0x00000028> /* Maybe null pointer? */
ICPLB_FAULT_ADDR: <0x000ea364> { _ssm2602_startup + 0x24 }
PROCESSOR STATE:
R0 : 03a63400 R1 : 0000000b R2 : 00000000 R3 : 00000000
R4 : 001c08cc R5 : 001c07b8 R6 : 001c094c R7 : 00000000
P0 : 03a635f4 P1 : 00000140 P2 : 03a55aa0 P3 : 03a55ba0
P4 : 03a5ea20 P5 : 00000000 FP : 03a55ba0 SP : 0023bc04
LB0: 0008c2fa LT0: 0008c2fa LC0: 00000000
LB1: 0003bac2 LT1: 0003babc LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 03e79009
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 03bf5c00
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 0000003a A0.x: 00000000 A1.w: 0000003a A1.x: 00000000
USP : 002bf7cc ASTAT: 02003005
Hardware Trace:
0 Target : <0x000049f4> { _trap_c + 0x0 }
Source : <0xffa00662> { _exception_to_level5 + 0x9e } CALL pcrel
1 Target : <0xffa005c4> { _exception_to_level5 + 0x0 }
Source : <0xffa0045a> { _bfin_return_from_exception + 0x6 } RTX
2 Target : <0xffa00454> { _bfin_return_from_exception + 0x0 }
Source : <0xffa0051e> { _ex_trap_c + 0x66 } JUMP.S
3 Target : <0xffa004b8> { _ex_trap_c + 0x0 }
Source : <0xffa006ee> { _trap + 0x2a } JUMP (P4)
4 Target : <0xffa006c4> { _trap + 0x0 }
Source : <0x000ea360> { _ssm2602_startup + 0x20 } 0xe418
5 Target : <0x000ea340> { _ssm2602_startup + 0x0 }
Source : <0x000e7d12> { _soc_pcm_open + 0x5e } CALL (P2)
6 Target : <0x000e7cfe> { _soc_pcm_open + 0x4a }
Source : <0x000ea906> { _bf5xx_pcm_open + 0x3e } RTS
7 Target : <0x000ea8e8> { _bf5xx_pcm_open + 0x20 }
Source : <0x000dd916> { _snd_pcm_hw_constraint_integer + 0x2e } RTS
8 Target : <0x000dd8e8> { _snd_pcm_hw_constraint_integer + 0x0 }
Source : <0x000ea8e4> { _bf5xx_pcm_open + 0x1c } CALL pcrel
9 Target : <0x000ea8e0> { _bf5xx_pcm_open + 0x18 }
Source : <0x000e707c> { _snd_soc_set_runtime_hwparams + 0x40 } RTS
10 Target : <0x000e703c> { _snd_soc_set_runtime_hwparams + 0x0 }
Source : <0x000ea8dc> { _bf5xx_pcm_open + 0x14 } CALL pcrel
11 Target : <0x000ea8c8> { _bf5xx_pcm_open + 0x0 }
Source : <0x000e7cfc> { _soc_pcm_open + 0x48 } CALL (P2)
12 Target : <0x000e7ce6> { _soc_pcm_open + 0x32 }
Source : <0x000ec3f4> { _bf5xx_i2s_startup + 0x10 } RTS
13 Target : <0x000ec3e4> { _bf5xx_i2s_startup + 0x0 }
Source : <0x000e7ce4> { _soc_pcm_open + 0x30 } CALL (P2)
14 Target : <0x000e7cdc> { _soc_pcm_open + 0x28 }
Source : <0x0014113a> { _mutex_lock + 0x32 } RTS
15 Target : <0x00141114> { _mutex_lock + 0xc }
Source : <0x00140b42> { __cond_resched + 0x1a } RTS
Kernel Stack
Stack info:
SP: [0x0023bf24] <0x0023bf24> /* kernel dynamic memory */
Memory from 0x0023bf20 to 0023c000
0023bf20: 002bf94c [0040d52a] 00008000 00002000 00000000 0023c000 0040d52a 0040d52a
0023bf40:<00268cf6><ffa00d58><02002020> 0041d7fb 004863d1 0041d7fa 004863c4 00000000
0023bf60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0023bf80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0023bfa0: 00000000 00000000 00000000 00436b40 00436b14 002bf7cc 002bf7dc 00000000
0023bfc0: ffffffff 00304df8 0030cbe0 0040d510 00000005 0030d4e0 00000802 002bf94c
0023bfe0: 00000001 002bf94c 00000000 00000802 002bf94c 002bf94c 00000005 00000006
0023c000: 00000000
Return addresses in stack:
address : <0x00268cf6> [ /lib/libpthread-0.9.29.so + 0x8cf6 ]
address : <0xffa00d58> { _evt_system_call + 0x64 }
address : <0x02002020> /* kernel dynamic memory */
Modules linked in:
Kernel panic - not syncing: Kernel exception
--
Follow-ups
--- Cliff Cai 2009-01-12 04:41:24
fixed now,Set constraint only if the value is not 0.
Cliff
--- Vivi Li 2009-01-20 05:19:29
OK, close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found