[#6400] dmacopy test fail and cause kernel crash
Submitted By: Vivi Li
Open Date
2010-12-07 22:25:20 Close Date
2010-12-07 23:31:38
Priority:
Medium Assignee:
Nobody
Status:
Closed Fixed In Release:
N/A
Found In Release:
2011R1 Release:
Category:
Kernel Functions Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Duplicate
Uboot version or rev.:
Toolchain version or rev.:
trunk
App binary format:
N/A
Summary: dmacopy test fail and cause kernel crash
Details:
dmacopy test fail and cause kernel crash on bf537.
First failed version:
--
kernel: Linux release 2.6.36.1-ADI-2011R1-pre-svn9522, build #4 Wed Dec 8 02:33:33 GMT 2010
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013)
user-dist: release svn-10000, build #29 Wed Dec 8 02:33:06 GMT 2010
--
Last passed version:
--
kernel: Linux release 2.6.36.1-ADI-2011R1-pre-svn9514, build #28 Sun Nov 28 19:47:22 GMT 2010
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013)
user-dist: release svn-9990, build #514 Sun Nov 28 19:46:47 GMT 2010
--
Bellow is the error log:
--
Linux version 2.6.36.1-ADI-2011R1-pre-svn9522 (test@uclinux59-kernel-perf) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #4 Wed Dec 0
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Limiting kernel memory to 56MB due to anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001063d0
rodata = 0x001063d0-0x00158fac
bss = 0x00159000-0x0016961c
data = 0x0016961c-0x0017a000
stack = 0x00178000-0x0017a000
init = 0x0017a000-0x003d0000
available = 0x003d0000-0x03800000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 0
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 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: 14224
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50f
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 52872k/65536k RAM, (2392k init code, 1044k kernel code, 464k data, 1024k dma, 7740k reserved)
Hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:138
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
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 (35 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
Switching to clocksource bfin_cs_cycles
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
msgmni has been set to 103
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1
TCP cubic registered
NET: Registered protocol family 17
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,
host=bf537-stamp, domain=, nis-domain=(none),
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
dma_alloc_init: dma_page @ 0x023ee000 - 256 pages at 0x03f00000
Freeing unused kernel memory: 2392k 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.17.4 (2010-12-08 02:31:54 GMT) hush - the humble shell
root:/> PHY: 0:01 - Link is Up - 100/Full
root:/>
root:/> dmacopy
TEST:N --- SRAM (L1 INST) <-> SDRAM w/4 bytes ---ULL pointer access
Kernel OOPS in progress
Deferred Exception context
CURRENT PROCESS:
COMM=dmacopy PID=147 CPU=0
TEXT = 0x025f0040-0x025f53a0 DATA = 0x025f53c0-0x025f6eb8
BSS = 0x025f6eb8-0x025f71f0 USER-STACK = 0x025f8f7c
return address: [0x00008f98]; contents of:
0x00008f70: 914a e511 002d e50d 0055 0c45 1820 e12a
0x00008f80: 0154 5b11 63ff 2002 3262 a068 0830 180d
0x00008f90: 0000 0000 0000 9162 [9155] 0c45 17f6 6c66
0x00008fa0: 3007 0127 05b4 0010 3006 e3ff ffb1 3038
ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)
Linux version 2.6.36.1-ADI-2011R1-pre-svn9522 (test@uclinux59-kernel-perf) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #4 Wed Dec 0
SEQUENCER STATUS: Not tainted
SEQSTAT: 00000027 IPEND: 8008 IMASK: ffff SYSCFG: 0006
EXCAUSE : 0x27
physical IVG3 asserted : <0xffa007d4> { _trap + 0x0 }
physical IVG15 asserted : <0xffa010b8> { _evt_system_call + 0x0 }
logical irq 6 mapped : <0xffa003ec> { _bfin_coretmr_interrupt + 0x0 }
logical irq 18 mapped : <0x000a5bec> { _bfin_serial_dma_rx_int + 0x0 }
logical irq 19 mapped : <0x000a5944> { _bfin_serial_dma_tx_int + 0x0 }
logical irq 24 mapped : <0x000b288c> { _bfin_mac_interrupt + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x02407eec> /* kernel dynamic memory (maybe user-space) */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x00008fba> { _sram_free_with_lsl + 0x5a }
PC : <0x00008f98> { _sram_free_with_lsl + 0x38 }
DCPLB_FAULT_ADDR: <0x00000000> /* Maybe null pointer? */
ICPLB_FAULT_ADDR: <0x00008f98> { _sram_free_with_lsl + 0x38 }
PROCESSOR STATE:
R0 : 0000ffff R1 : 0041a2a0 R2 : 00000004 R3 : ffa03108
R4 : 025f0a40 R5 : 025f5378 R6 : ffa03108 R7 : 00000000
P0 : 020000c0 P1 : 00000002 P2 : 00000000 P3 : 025f6d78
P4 : 02419334 P5 : 02415c60 FP : 025f8e70 SP : 02407e10
LB0: 025f1a83 LT0: 025f1a7a LC0: 00000000
LB1: 025f3601 LT1: 025f35b6 LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 025f6d64
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 025f6d78
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 025f8e64 ASTAT: 02001004
Hardware Trace:
0 Target : <0x00003ee4> { _trap_c + 0x0 }
Source : <0xffa00768> { _exception_to_level5 + 0xa4 } CALL pcrel
1 Target : <0xffa006c4> { _exception_to_level5 + 0x0 }
Source : <0xffa00578> { _bfin_return_from_exception + 0x20 } RTX
2 Target : <0xffa00558> { _bfin_return_from_exception + 0x0 }
Source : <0xffa0061c> { _ex_trap_c + 0x74 } JUMP.S
3 Target : <0xffa005a8> { _ex_trap_c + 0x0 }
Source : <0xffa00480> { _ex_workaround_261 + 0x1c } JUMP.S
4 Target : <0xffa00464> { _ex_workaround_261 + 0x0 }
Source : <0xffa0083c> { _trap + 0x68 } JUMP (P4)
5 Target : <0xffa007f2> { _trap + 0x1e }
Source : <0xffa007ee> { _trap + 0x1a } IF CC JUMP pcrel
6 Target : <0xffa007d4> { _trap + 0x0 }
FAULT : <0x00008f98> { _sram_free_with_lsl + 0x38 } P5 = [P2]
Source : <0xffa00578> { _bfin_return_from_exception + 0x20 } RTX
7 Target : <0xffa00558> { _bfin_return_from_exception + 0x0 }
Source : <0xffa00476> { _ex_workaround_261 + 0x12 } IF !CC JUMP pcrel
8 Target : <0xffa00464> { _ex_workaround_261 + 0x0 }
Source : <0xffa0083c> { _trap + 0x68 } JUMP (P4)
9 Target : <0xffa007f2> { _trap + 0x1e }
Source : <0xffa007ee> { _trap + 0x1a } IF CC JUMP pcrel
10 Target : <0xffa007d4> { _trap + 0x0 }
Source : <0x00008f96> { _sram_free_with_lsl + 0x36 } P2 = [P4]
11 Target : <0x00008f96> { _sram_free_with_lsl + 0x36 }
Source : <0x00008fba> { _sram_free_with_lsl + 0x5a } JUMP.S
12 Target : <0x00008fba> { _sram_free_with_lsl + 0x5a }
Source : <0x0004472c> { _kfree + 0x78 } RTS
13 Target : <0x000446fc> { _kfree + 0x48 }
Source : <0x000446f6> { _kfree + 0x42 } IF !CC JUMP pcrel (BP)
14 Target : <0x000446f0> { _kfree + 0x3c }
Source : <0x000446ec> { _kfree + 0x38 } IF CC JUMP pcrel (BP)
15 Target : <0x000446e6> { _kfree + 0x32 }
Source : <0x000446e2> { _kfree + 0x2e } IF CC JUMP pcrel (BP)
Kernel Stack
Stack info:
SP: [0x02407f24] <0x02407f24> /* kernel dynamic memory (maybe user-space) */
Memory from 0x02407f20 to 02408000
02407f20: 025f5378 [025f0c08] 00008000 00000000 00000000 02408000 025f0c08 025f0c08
02407f40: 025f072e ffa0111c 02000022 025f3601 025f1a83 025f35b6 025f1a7a 00000000
02407f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02407f80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02407fa0: 00000000 00000000 00000000 025f6d78 025f6d64 025f8e64 025f8e70 00000000
02407fc0: 00000001 025f6d78 025f2918 025f6c7c 00000138 ffa03109 025f6b95 025f5378
02407fe0: 025f0a40 025f6bb0 00000014 00000100 ffa03108 ffa03108 00000138 00000006
Return addresses in stack:
Modules linked in:
Kernel panic - not syncing: Kernel exception
Hardware Trace:
Stack info:
SP: [0x02407d1c] <0x02407d1c> /* kernel dynamic memory (maybe user-space) */
FP: (0x02407ef4)
Memory from 0x02407d10 to 02408000
02407d10: 0000000b 02407d1c 00000013 [00130a04] 0010621c 02407e10 00130a04 0015e3bf
02407d30: 0015e3bf 0015e3bf 02407d64 025f8e70 0000431c 02407e10 ffe02014 025f6d78
02407d50: 00008008 0000000b 00000027 00000013 02407e10 0000003f 0000003f 000000d0
02407d70: 00000001 0003000b 0271916c 0016b520 02719174 <0000df06> 02407db0 0000beb0
02407d90: 0016b4ec 020188a0 02719140 02048e6c 024191e0 020188a0 020189fc 02719140
02407db0:<000a289e> 023eca00 00000031 020188a0 000a3e28 00000000 000a3e28 00000000
02407dd0: 0000a142 0206d4a0 <0009d2f2> 023fd03a 0241e400 02406000 00000002 ffa0076c
02407df0: 0015b000 00008008 00000027 025f5378 025f0a40 0009d33c 0000000a 00000480
02407e10: 00000480 00008008 00000027 00000000 02407eec 00000480 00008f98 00008fba
02407e30: 0000ffff 02001004 025f3601 025f1a83 025f35b6 025f1a7a 00000000 00000000
02407e50: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02407e70: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02407e90: 00000000 00000000 025f6d78 025f6d64 025f8e64 025f8e70 02415c60 02419334
02407eb0: 025f6d78 00000000 00000002 020000c0 00000000 ffa03108 025f5378 025f0a40
02407ed0: ffa03108 00000004 0041a2a0 0000ffff 0000ffff 020000c0 00000006 02407ef0
02407ef0: 00000000 (00000000)<ffa00976> 00003d6c 00000138 00000000 ffffe000 025e9ff2
02407f10: 020188a0 00000001 025f6bb0 025f0a40 025f5378 025f0c08 00008000 00000000
02407f30: 00000000 02408000 025f0c08 025f0c08 025f072e ffa0111c 02000022 025f3601
02407f50: 025f1a83 025f35b6 025f1a7a 00000000 00000000 00000000 00000000 00000000
02407f70: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02407f90: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 025f6d78
02407fb0: 025f6d64 025f8e64 025f8e70 00000000 00000001 025f6d78 025f2918 025f6c7c
02407fd0: 00000138 ffa03109 025f6b95 025f5378 025f0a40 025f6bb0 00000014 00000100
02407ff0: ffa03108 ffa03108 00000138 00000006
Return addresses in stack:
address : <0x0000df06> { _dequeue_task + 0x2a }
address : <0x000a289e> { _uart_start + 0x66 }
address : <0x0009d2f2> { _do_output_char + 0x146 }
frame 1 : <0xffa00976> { _system_call + 0x6a }
--
Follow-ups
--- Mike Frysinger 2010-12-07 22:50:52
probably same as [#6399]
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.linux.dmacopy application/octet-stream 30756 Vivi Li