[#4053] nand driver on bf527 ezkit board crashes if bfin_mac installed.
Submitted By: Mingquan Pan
Open Date
2008-04-23 04:19:21 Close Date
2008-04-24 23:31:04
Priority:
Medium Assignee:
Michael Hennerich
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
08r1-8
App binary format:
N/A
Summary: nand driver on bf527 ezkit board crashes if bfin_mac installed.
Details:
nand driver on bf527 ezkit board conflict with bfin_mac on 08r1.
U-Boot 1.1.6-svn1172 (ADI-2008R2-pre) (Apr 8 2008 - 17:18:38)
CPU: ADSP bf527-0.0 (Detected Rev: 0.0)
Board: ADI BF527 EZ-Kit board
Support: blackfin.uclinux.org/
Clock: VCO: 525 MHz, Core: 525 MHz, System: 131 MHz
RAM: 64 MB
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: E2:CD:BC:FF:D0:39
I2C: ready
Hit any key to stop autoboot: 0
bfin> tftp 0x2000000 linux
Using Blackfin EMAC device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'linux'.
Load address: 0x2000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########################################################
done
Bytes transferred = 4610761 (465ac9 hex)
bfin> boote
Loading .text @ 0x00001000 (1021488 bytes)
Loading .rodata @ 0x000fb000 (228388 bytes)
Loading __ksymtab @ 0x00132c24 (14560 bytes)
Loading __ksymtab_gpl @ 0x00136504 (4040 bytes)
Loading __ksymtab_strings @ 0x001374cc (44584 bytes)
Loading __param @ 0x001422f4 (300 bytes)
Loading .data @ 0x00143000 (77824 bytes)
Loading .init.text @ 0x00156000 (89420 bytes)
Loading .init.data @ 0x0016bd4c (3244 bytes)
Loading .init.setup @ 0x0016c9f8 (584 bytes)
Loading .initcall.init @ 0x0016cc40 (424 bytes)
Loading .con_initcall.init @ 0x0016cde8 (4 bytes)
Loading .init.ramfs @ 0x0016cdec (2568012 bytes)
Loading .text_l1 @ 0xffa00000 (5732 bytes)
sh_addr: FFA00000, p_paddr: 003DFD38
Loading from: 023E0000 to 003DFD38, size: 5732
Loading .data_l1 @ 0xff800000 (192 bytes)
sh_addr: FF800000, p_paddr: 003E139C
Loading from: 023E2000 to 003E139C, size: 192
Clearing .bss @ 0x003e2000 (61104 bytes)
## Starting application at 0x00156000 ...
Linux version 2.6.22.19-ADI-2008R1-svn4616 (test@linux-bf527-std) (gcc version 4.1.2 (ADI svn)) #35 Wed Apr 23 01:43:52 CST 2008
early printk enabled on early_BFuart0
Hardware Trace Active and Enabled
Reset caused by Software reset
Blackfin support (C) 2004-2007 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.0
Warning: Unsupported Chip Revision ADSP-BF527 Rev 0.0 detected
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
text = 0x00001000-0x000fa630
rodata = 0x000fb000-0x00142420
data = 0x00143000-0x00156000
stack = 0x00144000-0x00146000
init = 0x00156000-0x003e2000
bss = 0x003e2000-0x003f0eb0
available = 0x003f0eb0-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists. Total pages: 16002
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600
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: 59896k/65536k RAM, (2608k init code, 997k kernel code, 426k data, 1024k dma, 584k reserved)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Data A SRAM: 16 KB (15 KB free)
Blackfin Data B SRAM: 16 KB (16 KB free)
Blackfin Instruction SRAM: 48 KB (42 KB free)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
Generic PHY: Registered new driver
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
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-otp: initialized
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver
BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.
bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3
peripheral_request: Peripheral 32 function 0 is already reserved by bfin_mac !
Hardware Trace:
0 Target : <0x0000479c> { _dump_stack + 0x0 }
Source : <0x00005cb2> { _peripheral_request + 0x152 }
1 Target : <0x00005cb2> { _peripheral_request + 0x152 }
Source : <0x0000cfb6> { _printk + 0x16 }
2 Target : <0x0000cfb2> { _printk + 0x12 }
Source : <0x0000ce68> { _vprintk + 0x1b8 }
3 Target : <0x0000ce5c> { _vprintk + 0x1ac }
Source : <0x0000ce4e> { _vprintk + 0x19e }
4 Target : <0x0000ce4a> { _vprintk + 0x19a }
Source : <0x0000cc98> { _wake_up_klogd + 0x24 }
5 Target : <0x0000cc74> { _wake_up_klogd + 0x0 }
Source : <0x0000d3a0> { _release_console_sem + 0x1f4 }
6 Target : <0x0000d392> { U-Boot 1.1.6-svn1172 (ADI-2008R2-pre) (Apr 8 2008 - 17:18:38)
CPU: ADSP bf527-0.0 (Detected Rev: 0.0)
Board: ADI BF527 EZ-Kit board
Support: blackfin.uclinux.org/
Clock: VCO: 525 MHz, Core: 525 MHz, System: 131 MHz
RAM: 64 MB
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: E2:CD:BC:FF:D0:39
I2C: ready
Hit any key to stop autoboot: 0
bfin> tftp 0x2000000 linux
Using Blackfin EMAC device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'linux'.
Load address: 0x2000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########################################################
done
Bytes transferred = 4610761 (465ac9 hex)
bfin> boote
Loading .text @ 0x00001000 (1021488 bytes)
Loading .rodata @ 0x000fb000 (228388 bytes)
Loading __ksymtab @ 0x00132c24 (14560 bytes)
Loading __ksymtab_gpl @ 0x00136504 (4040 bytes)
Loading __ksymtab_strings @ 0x001374cc (44584 bytes)
Loading __param @ 0x001422f4 (300 bytes)
Loading .data @ 0x00143000 (77824 bytes)
Loading .init.text @ 0x00156000 (89420 bytes)
Loading .init.data @ 0x0016bd4c (3244 bytes)
Loading .init.setup @ 0x0016c9f8 (584 bytes)
Loading .initcall.init @ 0x0016cc40 (424 bytes)
Loading .con_initcall.init @ 0x0016cde8 (4 bytes)
Loading .init.ramfs @ 0x0016cdec (2568012 bytes)
Loading .text_l1 @ 0xffa00000 (5732 bytes)
sh_addr: FFA00000, p_paddr: 003DFD38
Loading from: 023E0000 to 003DFD38, size: 5732
Loading .data_l1 @ 0xff800000 (192 bytes)
sh_addr: FF800000, p_paddr: 003E139C
Loading from: 023E2000 to 003E139C, size: 192
Clearing .bss @ 0x003e2000 (61104 bytes)
## Starting application at 0x00156000 ...
Linux version 2.6.22.19-ADI-2008R1-svn4616 (test@linux-bf527-std) (gcc version 4.1.2 (ADI svn)) #35 Wed Apr 23 01:43:52 CST 2008
early printk enabled on early_BFuart0
Hardware Trace Active and Enabled
Reset caused by Software reset
Blackfin support (C) 2004-2007 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.0
Warning: Unsupported Chip Revision ADSP-BF527 Rev 0.0 detected
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
text = 0x00001000-0x000fa630
rodata = 0x000fb000-0x00142420
data = 0x00143000-0x00156000
stack = 0x00144000-0x00146000
init = 0x00156000-0x003e2000
bss = 0x003e2000-0x003f0eb0
available = 0x003f0eb0-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists. Total pages: 16002
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600
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: 59896k/65536k RAM, (2608k init code, 997k kernel code, 426k data, 1024k dma, 584k reserved)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Data A SRAM: 16 KB (15 KB free)
Blackfin Data B SRAM: 16 KB (16 KB free)
Blackfin Instruction SRAM: 48 KB (42 KB free)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
Generic PHY: Registered new driver
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
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-otp: initialized
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver
BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.
bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3
peripheral_request: Peripheral 32 function 0 is already reserved by bfin_mac !
Hardware Trace:
0 Target : <0x0000479c> { _dump_stack + 0x0 }
Source : <0x00005cb2> { _peripheral_request + 0x152 }
1 Target : <0x00005cb2> { _peripheral_request + 0x152 }
Source : <0x0000cfb6> { _printk + 0x16 }
2 Target : <0x0000cfb2> { _printk + 0x12 }
Source : <0x0000ce68> { _vprintk + 0x1b8 }
3 Target : <0x0000ce5c> { _vprintk + 0x1ac }
Source : <0x0000ce4e> { _vprintk + 0x19e }
4 Target : <0x0000ce4a> { _vprintk + 0x19a }
Source : <0x0000cc98> { _wake_up_klogd + 0x24 }
5 Target : <0x0000cc74> { _wake_up_klogd + 0x0 }
Source : <0x0000d3a0> { _release_console_sem + 0x1f4 }
6 Target : <0x0000d392> { _release_console_sem + 0x1e6 }
Source : <0x0000d384> { _release_console_sem + 0x1d8 }
7 Target : <0x0000d37a> { _release_console_sem + 0x1ce }
Source : <0x0000d36c> { _release_console_sem + 0x1c0 }
8 Target : <0x0000d34c> { _release_console_sem + 0x1a0 }
Source : <0x0000d232> { _release_console_sem + 0x86 }
9 Target : <0x0000d202> { _release_console_sem + 0x56 }
Source : <0x0000d32e> { _release_console_sem + 0x182 }
10 Target : <0x0000d328> { _release_console_sem + 0x17c }
Source : <0x0000cb6e> { __call_console_drivers + 0x7e }
11 Target : <0x0000cb68> { __call_console_drivers + 0x78 }
Source : <0x0000cb2a> { __call_console_drivers + 0x3a }
12 Target : <0x0000cb1a> { __call_console_drivers + 0x2a }
Source : <0x0000cb0a> { __call_console_drivers + 0x1a }
13 Target : <0x0000caf0> { __call_console_drivers + 0x0 }
Source : <0x0000d324> { _release_console_sem + 0x178 }
14 Target : <0x0000d31a> { _release_console_sem + 0x16e }
Source : <0x0000d2b8> { _release_console_sem + 0x10c }
15 Target : <0x0000d2b2> { _release_console_sem + 0x106 }
Source : <0x0000caee> { ___call_console_drivers + 0x52 }
Stack from 00485e44:
007ad8c0 00005cb6 00000004 00008020 00000001 000fb7b8 00000020 00000000
003e2b44 00005d04 0014fd68 007b9acc 007b9a00 00000000 00000002 00124770
000000a4 007b9a0c 00148678 000000a4 0009c7d0 00148e28 00000100 007b9a0c
00148678 000195e6 00124770 00148724 00000100 00000008 00000003 00000003
00000054 0008ec32 00148680 0014fcd8 003ede68 000000d8 0014fcd8 0014fcd8
00000000 0007aac2 00491075 000f8412 00000000 0008ef0e 00148758 00148680
Call Trace:
[<0008e0ea>] _bus_for_each_dev+0x36/0x64
[<0008ee0c>] ___driver_attach+0x0/0x10c
[<0007a522>] _kobject_register+0x2e/0x44
[<0008eaea>] _driver_attach+0x1a/0x20
[<0008e416>] _bus_add_driver+0x4e/0x164
[<0008ee0c>] ___driver_attach+0x0/0x10c
[<0008e42c>] _bus_add_driver+0x64/0x164
[<00156654>] _kernel_init+0x88/0x234
[<001565cc>] _kernel_init+0x0/0x234
[<00001686>] _kernel_thread_helper+0x6/0xc
bf5xx-nand: Requesting Peripherals failed
bf5xx-nand: probe of bf5xx-nand.0 failed with error -14
Data access misaligned address violation
- Attempted misaligned data memory or data cache access.
Kernel OOPS in progress
Defered Exception context
CURRENT PROCESS:
COMM=bfin-spi.0 PID=67
invalid mm
return address: [0x00019a0c]; contents of:
0x000199e0: b1e2 1045 0000 0000 9162 0862 1882 3046
0x000199f0: 4d68 e147 0014 4f68 e107 8574 3238 9162
0x00019a00: 326a 6fe5 aceb bd25 ac50 9151 [bc48] 9341
0x00019a10: bc52 9352 3217 9110 0040 63e0 9129 5401
SEQUENCER STATUS: Not tainted
SEQSTAT: 00002024 IPEND: 8030 SYSCFG: 0006
HWERRCAUSE: 0x0
EXCAUSE : 0x24
physical IVG15 asserted : <0xffa00dbc> { _evt_system_call + 0x0 }
logical irq 6 mapped : <0xffa00250> { _timer_interrupt + 0x0 }
logical irq 35 mapped : <0x0009460c> { _bf537mac_interrupt + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x0079bf84> /* unknown address */
RETX: <0x00019a0c> { _run_workqueue + 0x3c }
RETS: <0x0001a30e> { _worker_thread + 0x6e }
PC : <0x00019a0c> { _run_workqueue + 0x3c }
DCPLB_FAULT_ADDR: <0x2d6e6968> /* unknown address */
ICPLB_FAULT_ADDR: <0x00019a0c> { _run_workqueue + 0x3c }
PROCESSOR STATE:
R0 : 0079a000 R1 : 00000000 R2 : 00000001 R3 : 0000ffff
R4 : 00000000 R5 : 00000000 R6 : 0079bfb8 R7 : 00148574
P0 : 00697073 P1 : 2d6e6966 P2 : 007b9abc P3 : 0009d2d4
P4 : 007ad860 P5 : 007b9ab8 FP : 0079a000 SP : 0079bea8
LB0: 0007dcec LT0: 0007dcea LC0: 00000000
LB1: 0007d854 LT1: 0007d84a LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 00000000
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 00000000
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : fffedc81
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 00000000 ASTAT: 00002000
Hardware Trace:
0 Target : <0x000048c0> { _trap_c + 0x0 }
Source : <0xffa006fc> { _exception_to_level5 + 0xb4 }
1 Target : <0xffa00648> { _exception_to_level5 + 0x0 }
Source : <0xffa005a0> { _ex_trap_c + 0x5c }
2 Target : <0xffa00544> { _ex_trap_c + 0x0 }
Source : <0xffa0079c> { _trap + 0x28 }
3 Target : <0xffa00774> { _trap + 0x0 }
Source : <0x00019a0a> { _run_workqueue + 0x3a }
4 Target : <0x000199d0> { _run_workqueue + 0x0 }
Source : <0x0001a30a> { _worker_thread + 0x6a }
5 Target : <0x0001a304> { _worker_thread + 0x64 }
Source : <0x0001c788> { _kthread_should_stop + 0x18 }
6 Target : <0x0001c770> { _kthread_should_stop + 0x0 }
Source : <0x0001a300> { _worker_thread + 0x60 }
7 Target : <0x0001a300> { _worker_thread + 0x60 }
Source : <0x0001cbe0> { _finish_wait + 0x3c }
8 Target : <0x0001cba4> { _finish_wait + 0x0 }
Source : <0x0001a2fc> { _worker_thread + 0x5c }
9 Target : <0x0001a2f8> { _worker_thread + 0x58 }
Source : <0x0001a324> { _worker_thread + 0x84 }
10 Target : <0x0001a31c> { _worker_thread + 0x7c }
Source : <0x0001c788> { _kthread_should_stop + 0x18 }
11 Target : <0x0001c770> { _kthread_should_stop + 0x0 }
Source : <0x0001a318> { _worker_thread + 0x78 }
12 Target : <0x0001a318> { _worker_thread + 0x78 }
Source : <0x0001cb42> { _prepare_to_wait + 0x5e }
13 Target : <0x0001cb2e> { _prepare_to_wait + 0x4a }
Source : <0x0001cb20> { _prepare_to_wait + 0x3c }
14 Target : <0x0001cae4> { _prepare_to_wait + 0x0 }
Source : <0x0001a314> { _worker_thread + 0x74 }
15 Target : <0x0001a30e> { _worker_thread + 0x6e }
Source : <0x0001a2f6> { _worker_thread + 0x56 }
Stack from 0079be88:
007d5714 ffa00700 00148568 00148568 00148564 0079beb8 0079bf30 0007d7c2
00019a0c 00008030 00002024 00000000 0079bf84 00019a0c 00019a0c 0001a30e
0079a000 00002000 0007d854 0007dcec 0007d84a 0007dcea 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 fffedc81 00000000 00000000 00000000 0079a000 007b9ab8 007ad860
Call Trace:
[<0009d2d4>] _pump_messages+0x0/0x110
[<0000ffff>] _do_setitimer+0x11f/0x22c
[<0001a30e>] _worker_thread+0x6e/0xa4
[<0001cc7c>] _autoremove_wake_function+0x0/0x30
[<0001c8b0>] _kthread+0x50/0x64
[<0001a2a0>] _worker_thread+0x0/0xa4
[<00001686>] _kernel_thread_helper+0x6/0xc
Modules linked in:
Kernel panic - not syncing: Kernel exception
_release_console_sem + 0x1e6 }
Source : <0x0000d384> { _release_console_sem + 0x1d8 }
7 Target : <0x0000d37a> { _release_console_sem + 0x1ce }
Source : <0x0000d36c> { _release_console_sem + 0x1c0 }
8 Target : <0x0000d34c> { _release_console_sem + 0x1a0 }
Source : <0x0000d232> { _release_console_sem + 0x86 }
9 Target : <0x0000d202> { _release_console_sem + 0x56 }
Source : <0x0000d32e> { _release_console_sem + 0x182 }
10 Target : <0x0000d328> { _release_console_sem + 0x17c }
Source : <0x0000cb6e> { __call_console_drivers + 0x7e }
11 Target : <0x0000cb68> { __call_console_drivers + 0x78 }
Source : <0x0000cb2a> { __call_console_drivers + 0x3a }
12 Target : <0x0000cb1a> { __call_console_drivers + 0x2a }
Source : <0x0000cb0a> { __call_console_drivers + 0x1a }
13 Target : <0x0000caf0> { __call_console_drivers + 0x0 }
Source : <0x0000d324> { _release_console_sem + 0x178 }
14 Target : <0x0000d31a> { _release_console_sem + 0x16e }
Source : <0x0000d2b8> { _release_console_sem + 0x10c }
15 Target : <0x0000d2b2> { _release_console_sem + 0x106 }
Source : <0x0000caee> { ___call_console_drivers + 0x52 }
Stack from 00485e44:
007ad8c0 00005cb6 00000004 00008020 00000001 000fb7b8 00000020 00000000
003e2b44 00005d04 0014fd68 007b9acc 007b9a00 00000000 00000002 00124770
000000a4 007b9a0c 00148678 000000a4 0009c7d0 00148e28 00000100 007b9a0c
00148678 000195e6 00124770 00148724 00000100 00000008 00000003 00000003
00000054 0008ec32 00148680 0014fcd8 003ede68 000000d8 0014fcd8 0014fcd8
00000000 0007aac2 00491075 000f8412 00000000 0008ef0e 00148758 00148680
Call Trace:
[<0008e0ea>] _bus_for_each_dev+0x36/0x64
[<0008ee0c>] ___driver_attach+0x0/0x10c
[<0007a522>] _kobject_register+0x2e/0x44
[<0008eaea>] _driver_attach+0x1a/0x20
[<0008e416>] _bus_add_driver+0x4e/0x164
[<0008ee0c>] ___driver_attach+0x0/0x10c
[<0008e42c>] _bus_add_driver+0x64/0x164
[<00156654>] _kernel_init+0x88/0x234
[<001565cc>] _kernel_init+0x0/0x234
[<00001686>] _kernel_thread_helper+0x6/0xc
bf5xx-nand: Requesting Peripherals failed
bf5xx-nand: probe of bf5xx-nand.0 failed with error -14
Data access misaligned address violation
- Attempted misaligned data memory or data cache access.
Kernel OOPS in progress
Defered Exception context
CURRENT PROCESS:
COMM=bfin-spi.0 PID=67
invalid mm
return address: [0x00019a0c]; contents of:
0x000199e0: b1e2 1045 0000 0000 9162 0862 1882 3046
0x000199f0: 4d68 e147 0014 4f68 e107 8574 3238 9162
0x00019a00: 326a 6fe5 aceb bd25 ac50 9151 [bc48] 9341
0x00019a10: bc52 9352 3217 9110 0040 63e0 9129 5401
SEQUENCER STATUS: Not tainted
SEQSTAT: 00002024 IPEND: 8030 SYSCFG: 0006
HWERRCAUSE: 0x0
EXCAUSE : 0x24
physical IVG15 asserted : <0xffa00dbc> { _evt_system_call + 0x0 }
logical irq 6 mapped : <0xffa00250> { _timer_interrupt + 0x0 }
logical irq 35 mapped : <0x0009460c> { _bf537mac_interrupt + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x0079bf84> /* unknown address */
RETX: <0x00019a0c> { _run_workqueue + 0x3c }
RETS: <0x0001a30e> { _worker_thread + 0x6e }
PC : <0x00019a0c> { _run_workqueue + 0x3c }
DCPLB_FAULT_ADDR: <0x2d6e6968> /* unknown address */
ICPLB_FAULT_ADDR: <0x00019a0c> { _run_workqueue + 0x3c }
PROCESSOR STATE:
R0 : 0079a000 R1 : 00000000 R2 : 00000001 R3 : 0000ffff
R4 : 00000000 R5 : 00000000 R6 : 0079bfb8 R7 : 00148574
P0 : 00697073 P1 : 2d6e6966 P2 : 007b9abc P3 : 0009d2d4
P4 : 007ad860 P5 : 007b9ab8 FP : 0079a000 SP : 0079bea8
LB0: 0007dcec LT0: 0007dcea LC0: 00000000
LB1: 0007d854 LT1: 0007d84a LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 00000000
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 00000000
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : fffedc81
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 00000000 ASTAT: 00002000
Hardware Trace:
0 Target : <0x000048c0> { _trap_c + 0x0 }
Source : <0xffa006fc> { _exception_to_level5 + 0xb4 }
1 Target : <0xffa00648> { _exception_to_level5 + 0x0 }
Source : <0xffa005a0> { _ex_trap_c + 0x5c }
2 Target : <0xffa00544> { _ex_trap_c + 0x0 }
Source : <0xffa0079c> { _trap + 0x28 }
3 Target : <0xffa00774> { _trap + 0x0 }
Source : <0x00019a0a> { _run_workqueue + 0x3a }
4 Target : <0x000199d0> { _run_workqueue + 0x0 }
Source : <0x0001a30a> { _worker_thread + 0x6a }
5 Target : <0x0001a304> { _worker_thread + 0x64 }
Source : <0x0001c788> { _kthread_should_stop + 0x18 }
6 Target : <0x0001c770> { _kthread_should_stop + 0x0 }
Source : <0x0001a300> { _worker_thread + 0x60 }
7 Target : <0x0001a300> { _worker_thread + 0x60 }
Source : <0x0001cbe0> { _finish_wait + 0x3c }
8 Target : <0x0001cba4> { _finish_wait + 0x0 }
Source : <0x0001a2fc> { _worker_thread + 0x5c }
9 Target : <0x0001a2f8> { _worker_thread + 0x58 }
Source : <0x0001a324> { _worker_thread + 0x84 }
10 Target : <0x0001a31c> { _worker_thread + 0x7c }
Source : <0x0001c788> { _kthread_should_stop + 0x18 }
11 Target : <0x0001c770> { _kthread_should_stop + 0x0 }
Source : <0x0001a318> { _worker_thread + 0x78 }
12 Target : <0x0001a318> { _worker_thread + 0x78 }
Source : <0x0001cb42> { _prepare_to_wait + 0x5e }
13 Target : <0x0001cb2e> { _prepare_to_wait + 0x4a }
Source : <0x0001cb20> { _prepare_to_wait + 0x3c }
14 Target : <0x0001cae4> { _prepare_to_wait + 0x0 }
Source : <0x0001a314> { _worker_thread + 0x74 }
15 Target : <0x0001a30e> { _worker_thread + 0x6e }
Source : <0x0001a2f6> { _worker_thread + 0x56 }
Stack from 0079be88:
007d5714 ffa00700 00148568 00148568 00148564 0079beb8 0079bf30 0007d7c2
00019a0c 00008030 00002024 00000000 0079bf84 00019a0c 00019a0c 0001a30e
0079a000 00002000 0007d854 0007dcec 0007d84a 0007dcea 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 fffedc81 00000000 00000000 00000000 0079a000 007b9ab8 007ad860
Call Trace:
[<0009d2d4>] _pump_messages+0x0/0x110
[<0000ffff>] _do_setitimer+0x11f/0x22c
[<0001a30e>] _worker_thread+0x6e/0xa4
[<0001cc7c>] _autoremove_wake_function+0x0/0x30
[<0001c8b0>] _kthread+0x50/0x64
[<0001a2a0>] _worker_thread+0x0/0xa4
[<00001686>] _kernel_thread_helper+0x6/0xc
Modules linked in:
Kernel panic - not syncing: Kernel exception
kernel config is posted.
Follow-ups
--- Michael Hennerich 2008-04-23 10:41:21
This is not a bug.
It's a matter of hardware - the EZkit is designed that way.
In order to test NAND on the BF527-EZkit - you have to disable the bfin_mac
driver. And invert all SW1 (ETH Enable Switches).
See here (disable Ethernet):
docs.blackfin.uclinux.org/doku.php?id=hw:boards:bf527-ezkit
-Michael
--- Robin Getz 2008-04-23 16:42:08
Michael:
The bug is not that it conflicts - it is that it crashes the kernel, rather
that just not loading the driver.
We should be able to compile both as module. install one, install the 2nd
(which should fail - gracefully), and then continue on.
The one that gets their first should "win" - but we should never
crash the kernel.
-robin
--- Michael Hennerich 2008-04-24 04:48:02
Your absolutely right.
I didn't notice the crash, because I didn't scroll down the tiny Details window
up to the bottom. I just saw the fail message.
Fixed now.
The peripheral request was happening after peripheral initialization, which is
totally wrong.
-Michael
--- Michael Hennerich 2008-04-24 04:49:10
Change resolution to fixed.
--- Mingquan Pan 2008-04-24 23:31:01
Yes,fixed.Now the fist module that is inserted could win the resource and
work.Kernel does not crash.
Log is like:
root:/> uname -a
Linux blackfin 2.6.24.4-ADI-2008R2-pre-svn4662 #44 Fri Apr 25 11:22:13 CST 2008
blackfin unknown
root:/>
root:/> ifconfig eth0 10.100.4.50
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
root:/>
root:/> modprobe bfin_mac
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1,
mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
root:/> ifconfig eth0 10.100.4.50
root:/> PHY: 0:03 - Link is Up - 100/Full
ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:22:FE:B8:11
inet addr:10.100.4.50 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
root:/> insmod
/lib/modules/2.6.24.4-ADI-2008R2-pre-svn4662/kernel/drivers/mtd/nand/bf5xx_nand.ko
BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog
Devices, Inc.
Hardware Trace:
0 Target : <0x000044bc> { _dump_stack + 0x0 }
Source : <0x000059a2> { _peripheral_request + 0x122 }
1 Target : <0x0000599e> { _peripheral_request + 0x11e }
Source : <0x0000585e> { _cmp_label + 0x4a }
2 Target : <0x00005854> { _cmp_label + 0x40 }
Source : <0x00005844> { _cmp_label + 0x30 }
3 Target : <0x0000583e> { _cmp_label + 0x2a }
Source : <0x0000584e> { _cmp_label + 0x3a }
4 Target : <0x0000583e> { _cmp_label + 0x2a }
Source : <0x0000584e> { _cmp_label + 0x3a }
5 Target : <0x00005828> { _cmp_label + 0x14 }
Source : <0x000823fa> { _strlen + 0x16 }
6 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
7 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
8 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
9 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
10 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
11 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
12 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
13 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
14 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
15 Target : <0x000823e4> { _strlen + 0x0 }
Source : <0x00005824> { _cmp_label + 0x10 }
Stack from 03ed1d20:
03ed1e54 000059a6 00000004 00008020 0004a306 03ef2e00 0040b420
03ed1e54
001026e0 00005a1c 03ed2a74 03ed31ac 0015c088 00000000 00000002
03ed2c24
001ed0d8 001e7f84 0015c088 03ed1d84 03ed2720 00160ce0 000000a4
03ed31ac
00160cd8 03eeecf0 00000000 00000000 00000001 00095a18 00160ce0
03ed31ac
03ed1e54 00095b12 00160ce0 03ed31ac 0015c088 000000a4 03ed31ac
03ed31ac
001ed0d8 03ed1e00 004b9000 00101742 00000000 00095dee 00160d84
00160ce0
Call Trace:
[<00094fbe>] _bus_for_each_dev+0x36/0x64
[<00095cec>] ___driver_attach+0x0/0x10c
[<0007fcfe>] _kobject_register+0x2e/0x44
[<000959ce>] _driver_attach+0x1a/0x20
[<000952f2>] _bus_add_driver+0x4a/0x190
[<00095cec>] ___driver_attach+0x0/0x10c
[<0009530a>] _bus_add_driver+0x62/0x190
[<000278fc>] _sys_init_module+0xc0/0x119c
[<00003000>] _do_signal+0x3d0/0xcb4
[<0002783c>] _sys_init_module+0x0/0x119c
[<000021e4>] _show_cpuinfo+0x1bc/0x2d4
[<00008000>] _bfin_gpio_unmask_irq+0x10/0x18
[<00002000>] _get_sclk+0x30/0x58
[<03ed2000>] _init_module+0x494e0/0x49f40 [bf5xx_nand]
[<000021e4>] _show_cpuinfo+0x1bc/0x2d4
[<000021e4>] _show_cpuinfo+0x1bc/0x2d4
[<000021e4>] _show_cpuinfo+0x1bc/0x2d4
[<000021e4>] _show_cpuinfo+0x1bc/0x2d4
peripheral_request: Peripheral 32 function 0 is already reserved by bfin_mac !
bf5xx-nand: Requesting Peripherals failed
bf5xx-nand: probe of bf5xx-nand.0 failed with error -14
root:/>
root:/> lsmod
Module Size Used by
bf5xx_nand 4996 0
bfin_mac 7136 0
root:/> cat /proc/mtd
dev: size erasesize name
root:/> cat /proc/partitions
major minor #blocks name
root:/> rmmod bfin_mac
root:/> PHY: 0:03 - Link is Down
root:/> lsmod
Module Size Used by
bf5xx_nand 4996 0
root:/> rmmod bf5xx_nand
root:/> lsmod
Module Size Used by
root:/> lsmod
Module Size Used by
root:/> lsmod
Module Size Used by
root:/> insmod
/lib/modules/2.6.24.4-ADI-2008R2-pre-svn4662/kernel/drivers/mtd/nand/bf5xx_nand.ko
BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog
Devices, Inc.
bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3
NAND device: Manufacturer ID: 0x20, Chip ID: 0xdc (ST Micro NAND 512MiB 3,3V
8-bit)
Creating 2 MTD partitions on "NAND 512MiB 3,3V 8-bit":
0x00000000-0x00400000 : "Linux Kernel"
0x00400000-0x20000000 : "File System"
root:/>
root:/>
root:/> cat /proc/mtd
dev: size erasesize name
mtd0: 00400000 00020000 "Linux Kernel"
mtd1: 1fc00000 00020000 "File System"
root:/> cat /proc/partitions
major minor #blocks name
root:/> modprobe bfin_mac
Hardware Trace:
0 Target : <0x000044bc> { _dump_stack + 0x0 }
Source : <0x000059a2> { _peripheral_request + 0x122 }
1 Target : <0x0000599e> { _peripheral_request + 0x11e }
Source : <0x0000585e> { _cmp_label + 0x4a }
2 Target : <0x00005854> { _cmp_label + 0x40 }
Source : <0x00005844> { _cmp_label + 0x30 }
3 Target : <0x0000583e> { _cmp_label + 0x2a }
Source : <0x0000584e> { _cmp_label + 0x3a }
4 Target : <0x0000583e> { _cmp_label + 0x2a }
Source : <0x0000584e> { _cmp_label + 0x3a }
5 Target : <0x00005828> { _cmp_label + 0x14 }
Source : <0x000823fa> { _strlen + 0x16 }
6 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
7 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
8 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
9 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
10 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
11 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
12 Target : <0x000823ee> { _strlen + 0xa }
Source : <0x000823f4> { _strlen + 0x10 }
13 Target : <0x000823e4> { _strlen + 0x0 }
Source : <0x00005824> { _cmp_label + 0x10 }
14 Target : <0x00005814> { _cmp_label + 0x0 }
Source : <0x0000599a> { _peripheral_request + 0x11a }
15 Target : <0x00005992> { _peripheral_request + 0x112 }
Source : <0x000058d0> { _peripheral_request + 0x50 }
Stack from 03ed1d18:
03ef2e00 000059a6 00000004 00008225 00160f08 00000137 00000340
ffffffe0
0040bc80 00005a1c 03ed398c 004b812c 004b8000 000000a4 00000000
03ed2ee0
00160f00 000000a4 03ed3918 03ed3918 004b88dc 004b8340 000000a4
03ed3918
03ed3918 00000002 00000000 03eeeae0 00000000 00000000 00000001
00095a18
00160f08 03ed3918 03ed1e54 00095b12 00160f08 03ed3918 0015c088
000000a4
03ed3918 03ed3918 001edb58 03ed1e00 00101728 00101742 00160e3c
00095dee
Call Trace:
[<00094fbe>] _bus_for_each_dev+0x36/0x64
[<00095cec>] ___driver_attach+0x0/0x10c
[<0007fcfe>] _kobject_register+0x2e/0x44
[<000959ce>] _driver_attach+0x1a/0x20
[<000952f2>] _bus_add_driver+0x4a/0x190
[<00095cec>] ___driver_attach+0x0/0x10c
[<0009530a>] _bus_add_driver+0x62/0x190
[<000278fc>] _sys_init_module+0xc0/0x119c
[<00004000>] _show_regs+0x1e8/0x368
[<0002783c>] _sys_init_module+0x0/0x119c
[<00003604>] _do_signal+0x9d4/0xcb4
[<00008000>] _bfin_gpio_unmask_irq+0x10/0x18
[<00002000>] _get_sclk+0x30/0x58
[<03ed2000>] _init_module+0x3a19800/0x3a1980c [bfin_mac]
[<00003604>] _do_signal+0x9d4/0xcb4
[<00003604>] _do_signal+0x9d4/0xcb4
[<00003604>] _do_signal+0x9d4/0xcb4
[<00003604>] _do_signal+0x9d4/0xcb4
peripheral_request: Peripheral 37 function 1 is already reserved by bf5xx-nand
!
bfin_mac bfin_mac.0: Requesting peripherals failed!
bfin_mac: probe of bfin_mac.0 failed with error -14
root:/>
root:/> lsmod
Module Size Used by
bfin_mac 7136 0
bf5xx_nand 4996 0
root:/> ifconfig eth0 10.100.4.50
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
nand.config application/octet-stream 25987 Mingquan Pan