[#5324] dmacopy test crashed in BF561-EZKIT SMP kernel
Submitted By: Vivi Li
Open Date
2009-07-07 23:40:41 Close Date
2009-07-15 00:24:25
Priority:
Medium High Assignee:
Vivi Li
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
Tests Board:
N/A
Processor:
BF561 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.1_2009r1-rc7
App binary format:
N/A
Summary: dmacopy test crashed in BF561-EZKIT SMP kernel
Details:
dmacopy test crashed in BF561-EZKIT SMP kernel.
Bellow is the log:
--
Linux version 2.6.28.10-ADI-2009R1-svn6930 (test@uclinux65-561-SMP) (gcc version 4.1.2 (ADI svn)) #7 SMP Tue Jul 7 17:39:41 GMT 2009^M
bootconsole [early_shadow0] enabled^M
bootconsole [early_BFuart0] enabled^M
early printk enabled on early_BFuart0^M
Board Memory: 64MB^M
Kernel Managed Memory: 64MB^M
Memory map:^M
fixedcode = 0x00000400-0x00000490^M
text = 0x00001000-0x001042a0^M
rodata = 0x001042a0-0x00151d0c^M
bss = 0x00152000-0x00164124^M
data = 0x00164140-0x00176000^M
stack = 0x00174000-0x00176000^M
init = 0x00176000-0x0074a000^M
available = 0x0074a000-0x03eff000^M
DMA Zone = 0x03f00000-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-BF561 Rev 0.5^M
Blackfin Linux support by http://blackfin.uclinux.org/^M
Processor Speed: 600 MHz core clock and 100 MHz System Clock^M
NOMPU: setting up cplb tables^M
NOMPU: setting up cplb tables^M
Instruction Cache Enabled for CPU0^M
Data Cache Enabled for CPU0 (write-through)^M
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001^M
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf561-ezkit:eth0:off^M
Configuring Blackfin Priority Driven Interrupts^M
PID hash table entries: 256 (order: 8, 1024 bytes)^M
console handover:boot [early_BFuart0] boot [early_shadow0] -> real [ttyBF0]^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: 56448k/65536k RAM, (5968k init code, 1036k kernel code, 456k data, 1024k dma, 600k reserved)^M
Calibrating delay loop... 1187.84 BogoMIPS (lpj=2375680)^M
Security Framework initialized^M
Mount-cache hash table entries: 512^M
CoreB bootstrap code to SRAM ff600000 via DMA.^M
Booting Core B.^M
Instruction Cache Enabled for CPU1^M
Data Cache Enabled for CPU1 (write-through)^M
Calibrating delay loop... 1191.93 BogoMIPS (lpj=2383872)^M
Brought up 2 CPUs^M
SMP: Total of 2 processors activated (1191.93 BogoMIPS).^M
Blackfin Scratchpad data SRAM: 4 KB^M
Blackfin Scratchpad data SRAM: 4 KB^M
Blackfin L1 Data A SRAM: 16 KB (16 KB free)^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 Data B SRAM: 16 KB (16 KB free)^M
Blackfin L1 Instruction SRAM: 16 KB (15 KB free)^M
Blackfin L1 Instruction SRAM: 16 KB (15 KB free)^M
Blackfin L2 SRAM: 128 KB (127 KB free)^M
net_namespace: 296 bytes^M
NET: Registered protocol family 16^M
Blackfin DMA Controller^M
ezkit_init(): registering device resources^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: 2, 16384 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 110^M
io scheduler noop registered^M
io scheduler anticipatory registered (default)^M
io scheduler cfq registered^M
Serial: Blackfin serial driver^M
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 35) is a BFIN-UART^M
brd: module loaded^M
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@cam.org>^M
eth0: SMC91C11xFD (rev 2) at 2c010300 IRQ 82 [nowait]^M
eth0: Ethernet addr: 00:e0:22:fe:ba:2a^M
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@16^M
bfin-wdt: initialized: timeout=20 sec (nowayout=0)^M
TCP cubic registered^M
NET: Registered protocol family 17^M
eth0: link down^M
IP-Config: Complete:^M
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,^M
host=bf561-ezkit, domain=, nis-domain=(none),^M
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=^M
Freeing unused kernel memory: 5968k freed^M
dma_alloc_init: dma_page @ 0x00747000 - 256 pages at 0x03f00000^M
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1^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 - https://www.analog.com/blackfin^M
^M
Have a lot of fun...^M
^M
^M
BusyBox v1.13.4 (2009-07-07 11:45:12 GMT) built-in shell (msh)^M
Enter 'help' for a list of built-in commands.^M
^M
root:/> version^M
kernel: Linux release 2.6.28.10-ADI-2009R1-svn6930, build #7 SMP Tue Jul 7 17:39:41 GMT 2009^M
toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)^M
user-dist: release svn-8435, build #23 Tue Jul 7 17:39:02 GMT 2009^M
root:/> ./dmacopy^M
TESD: a-t SRAM aL1 IaSc) <-c esRAs /C bytes P--LB protection violation^M
- Attempted read or write to Supervisor resource,^M
or illegal data memory access. ^M
Deferred Exception context^M
CURRENT PROCESS:^M
COMM=dmacopy PID=150^M
CPU = 1^M
TEXT = 0x00670040-0x00674fe0 DATA = 0x00675000-0x00676854^M
BSS = 0x00676854-0x00676b80 USER-STACK = 0x00677f84^M
^M
return address: [0x00671cc4]; contents of:^M
0x00671ca0: 0411 c422 4411 3213 e0a2 1002 9202 0850 ^M
0x00671cb0: 1002 0010 3013 3058 529a 3212 0c42 1804 ^M
0x00671cc0: e0a2 2002 [9a01] 0010 4900 6020 5210 3208 ^M
0x00671cd0: 3040 1002 9a01 0d12 440a 13df 9a01 9a01 ^M
^M
ADSP-BF561-0.5 600(MHz CCLK) 100(MHz SCLK) (mpu off)^M
Linux version 2.6.28.10-ADI-2009R1-svn6930^M
Built with gcc version 4.1.2 (ADI svn)^M
^M
SEQUENCER STATUS: Not tainted^M
SEQSTAT: 00060023 IPEND: 0030 SYSCFG: 0006^M
EXCAUSE : 0x23^M
interrupts disabled^M
physical IVG5 asserted : <0x0000a15c> { _evt_ivhw + 0x0 }^M
RETE: <0x00000000> /* Maybe null pointer? */^M
RETN: <0x03eb8000> /* kernel dynamic memory */^M
RETX: <0x00000480> /* Maybe fixed code section */^M
RETS: <0x00670470> [ dmacopy + 0x430 ]^M
PC : <0x00671cc4> [ dmacopy + 0x1c84 ]^M
DCPLB_FAULT_ADDR: <0xff600028> /* kernel dynamic memory */^M
ICPLB_FAULT_ADDR: <0x00671cc4> [ dmacopy + 0x1c84 ]^M
^M
PROCESSOR STATE:^M
R0 : ff600028 R1 : 00000063 R2 : 00000004 R3 : ff60002c^M
R4 : 00000001 R5 : 00674fb0 R6 : 00676a80 R7 : 00000000^M
P0 : ff600028 P1 : 00677d04 P2 : 00000004 P3 : 00677f88^M
P4 : 00676850 P5 : 00675000 FP : 00677e8c SP : 03eb7f24^M
LB0: 00671cc5 LT0: 00671cc4 LC0: 00000004^M
LB1: 006739fd LT1: 006739b6 LC1: 00000000^M
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 00675317^M
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 00648004^M
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000^M
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000^M
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000^M
USP : 00677e74 ASTAT: 02002002^M
^M
Hardware Trace:^M
Userspace Stack^M
Stack info:^M
SP: [0x00677e74] <0x00677e74> [ dmacopy + 0x7e74 ]^M
FP: (0x00677e6c)^M
Memory from 0x00677e70 to 00678000^M
00677e70:<00670460>[ff600028] 00000001 00676678 00000000 0067667c <00677e98> 00677ec0 ^M
00677e90:<006706dc> 00675390 0067539c <0067666c><00676680> ff600028 00000004 00000001 ^M
00677eb0: 00000000 <0067666c><00676680> ff600028 00677f30 <00670b06> 00000000 <00676a80>^M
00677ed0: 00000004 006754e4 00000001 081c0300 00000004 00000010 00001000 <00010000>^M
00677ef0: 00012340 00022340 00032340 00042340 00054320 00323450 00000004 00000010 ^M
00677f10: 00001000 <00010000> 00012340 00000004 00000010 00001000 00000000 00000000 ^M
00677f30: 00677f44 <00672db4> 00000001 00677f88 00000000 00000000 <001a26bc><00675000>^M
00677f50: 00644004 00600448 00000000 0060042c 006003dc 00000001 00670a74 00000000 ^M
00677f70: 00000000 00674fb0 00674fc2 00000000 0064477f 00000001 00677fa5 00000000 ^M
00677f90: 00677faf 00677fb6 00677fc4 00677fe7 00000000 642f2e00 6f63616d 48007970 ^M
00677fb0: 3d454d4f 4853002f 3d4c4c45 6e69622f 0068732f 48544150 69622f3d 752f3a6e ^M
00677fd0: 622f7273 2f3a6e69 6e696273 73752f3a 62732f72 54006e69 3d4d5245 756e696c ^M
00677ff0: 2f2e0078 63616d64 0079706f 00000000 544c4662 ^M
Return addresses in stack:^M
address : <0x00670460> [ dmacopy + 0x420 ]^M
address : <0x00677e98> [ dmacopy + 0x7e98 ]^M
address : <0x006706dc> [ dmacopy + 0x69c ]^M
address : <0x0067666c> [ dmacopy + 0x666c ]^M
address : <0x00676680> [ dmacopy + 0x6680 ]^M
address : <0x0067666c> [ dmacopy + 0x666c ]^M
address : <0x00676680> [ dmacopy + 0x6680 ]^M
address : <0x00670b06> [ dmacopy + 0xac6 ]^M
address : <0x00676a80> [ dmacopy + 0x6a80 ]^M
address : <0x00010000> { _sched_rt_period_timer + 0xf4 }^M
address : <0x00010000> { _sched_rt_period_timer + 0xf4 }^M
address : <0x00672db4> [ dmacopy + 0x2d74 ]^M
address : <0x001a26bc> [ sh + 0x226bc ]^M
address : <0x00675000> [ dmacopy + 0x5000 ]^M
^M
^M
U-Boot 2008.10-svn1954 (ADI-2009R1-rc2) (Jul 1 2009 - 00:35:43)^M
^M
CPU: ADSP bf561-0.3 (Detected Rev: 0.5) (bypass boot)^M
Board: ADI BF561 EZ-Kit Lite board^M
Support: http://blackfin.uclinux.org/^M
Clock: VCO: 600 MHz, Core: 600 MHz, System: 100 MHz^M
RAM: 64 MB^M
Flash: 8 MB^M
In: serial^M
Out: serial^M
Err: serial^M
Net: MAC: 00:E0:22:FE:BA:2A^M
Hit any key to stop autoboot: 5
--
It crashed since version:
--
root:/> version^M
kernel: Linux release 2.6.28.10-ADI-2009R1-pre-svn6341, build #24 SMP Sun May 10 03:07:48 GMT 2009^M
toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)^M
user-dist: release svn-8048, build #194 Sun May 10 03:07:08 GMT 2009^M
root:/> ^M
--
Follow-ups
--- Graf Yang 2009-07-10 07:41:54
fixed on trunk and branch
--- Vivi Li 2009-07-13 23:10:55
It doesn't crash now. But the test still can not pass.
--
TEST: --- SRAM (L1 DATA) <-> SDRAM w/4096 bytes ---^M
PASS: dma_memcpy SDRAMx32[s] to SRAMx32[c]^M
PASS: dma_memcpy(chk, src) test case 16, memcmp result is 0^M
PASS: dma_memcpy SRAMx32[c] to SDRAMx32[d]^M
PASS: dma_memcpy(dst, chk) test case 16, memcmp result is 0^M
PASS: dma_memcpy(dst, src) test case 16, memcmp result is 0^M
PASS: dma_memcpy SDRAMx16[s] to SRAMx16[c]^M
PASS: dma_memcpy(chk, src) test case 17, memcmp result is 0^M
PASS: dma_memcpy SRAMx16[c] to SDRAMx16[d]^M
PASS: dma_memcpy(dst, chk) test case 17, memcmp result is 0^M
PASS: dma_memcpy(dst, src) test case 17, memcmp result is 0^M
PASS: dma_memcpy SDRAMx8[s] to SRAMx8[c]^M
PASS: dma_memcpy(chk, src) test case 18, memcmp result is 0^M
PASS: dma_memcpy SRAMx8[c] to SDRAMx8[d]^M
PASS: dma_memcpy(dst, chk) test case 18, memcmp result is 0^M
PASS: dma_memcpy(dst, src) test case 18, memcmp result is 0^M
^M
^M
U-Boot 2008.10-svn1954 (ADI-2009R1-rc2) (Jul 1 2009 - 00:35:43)^M
^M
CPU: ADSP bf561-0.3 (Detected Rev: 0.5) (bypass boot)^M
Board: ADI BF561 EZ-Kit Lite board^M
Support: http://blackfin.uclinux.org/^M
Clock: VCO: 600 MHz, Core: 600 MHz, System: 100 MHz^M
RAM: 64 MB^M
Flash: 8 MB^M
In: serial^M
Out: serial^M
Err: serial^M
Net: MAC: 00:E0:22:FE:BA:2A^M
Hit any key to stop autoboot: 5
bfin>
--
--- Sonic Zhang 2009-07-14 01:04:40
Please run dma_memcpy twice on bf561 SMP kernel by taskset on each CPU.
--- Vivi Li 2009-07-14 03:03:13
I've run following two commands on bf561-ezkit smp kernel, and they all passed.
--
taskset 1 ./dmacopy
taskset 2 ./dmacopy
--
--- Vivi Li 2009-07-15 00:24:25
Update dmacopy test script, run dmacopy by taskset on core a and core b.
Don't let kernel migrate it between A and B because it uses L1 data and that
wont work.
Test script is update.
Close this bug.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.dmacopy application/octet-stream 26307 Vivi Li