2010-04-20 09:58:18 Kernel not syncing on bf527 when /proc/cplbinfo is read
Stefan Wanja (GERMANY)
Message: 88649
Hello,
when doing a cat /proc/cplbinfo/cpu0/dcplb or cat /proc/cplbinfo/cpu0/icplb on an bf527 EZKit the kernel panics.
## Booting kernel from Legacy Image at 20040000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1-svn
Created: 2010-04-20 13:48:15 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 1013325 Bytes = 989.6 kB
Load Address: 00001000
Entry Point: 00207338
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 00207338
Linux version 2.6.28.10-ADI-2009R1.1-svn8364 (stefan@Erich) (gcc version 4.1.2 (ADI svn)) #42 PREEMPT Tue Apr 20 15:48:09 CEST 2010
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0013c290
rodata = 0x0013c290-0x001979a4
bss = 0x00198000-0x001e8498
data = 0x001e8498-0x001fa000
stack = 0x001f8000-0x001fa000
init = 0x001fa000-0x0021a000
available = 0x0021a000-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 blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-through)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 15747
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 mtdparts=physmap-flash.0:256k(Bootloader)ro,1024k(Kernel),2816k(RootFS) debuglevel=9 clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console [ttyBF0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 60764k/65536k RAM, (128k init code, 1260k kernel code, 760k data, 2048k dma, 572k reserved)
Calibrating delay loop... 1032.19 BogoMIPS (lpj=516096)
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 (34 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
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
JFFS2 version 2.2. (NAND) Â 2001-2006 Red Hat, Inc.
msgmni has been set to 118
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-otp: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
brd: module loaded
bfin_mii_bus: 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
physmap platform flash device: 00400000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
3 cmdlinepart partitions found on MTD device physmap-flash.0
Creating 3 MTD partitions on "physmap-flash.0":
0x00000000-0x00040000 : "Bootloader"
0x00040000-0x00140000 : "Kernel"
0x00140000-0x00400000 : "RootFS"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
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
Advanced Linux Sound Architecture Driver Version 1.0.18rc3.
ASoC version 0.13.2
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-02 05:51:54 UTC (107514)
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 128k freed
dma_alloc_init: dma_page @ 0x00216000 - 512 pages at 0x03e00000
/ # cat /proc/cp
/proc/cplbinfo/ /proc/cpuinfo
/ # cat /proc/cplbinfo/cpu0/dcplb
DCPLBs are enKbled: rx1n0el panic - not syncing: Aiee, killing interrupt handler!
Index AddrDss uDatmpSiie UnRDgU/W ftrWR awctche
0 bx00u00f00 fd0ed rM Y:Y
N
1 0xf(80f000t30raf 4c Ye YbNu
Y f 0f0edr00 0 2empt 1MyY)Y Y
0x03c00000 2d09d 1M Y Y Y Y
4 0x20000000 3009d 4M Y Y Y Y
5 0x03e00000 2009d 1M Y Y Y Y
6 0x03f00000 2009d 1M Y Y Y Y
7 0x03800000 3d09d 4M Y Y Y Y
8 0x00000000 00000 1K N N N Y
9 0x00000000 00000 1K N N N Y
10 0x00000000 00000 1K N N N Y
11 0x00000000 00000 1K N N N Y
12 0x00000000 00000 1K N N N Y
13 0x00000000 00000 1K N N N Y
14 0x00000000 00000 1K N N N Y
15 0x00000000 00000 1K N N N Y
Is this a bug? Please find my kernel config attached.
Kind Regards,
Stefan
config
QuoteReplyEditDelete
2010-04-20 18:42:46 Re: Kernel not syncing on bf527 when /proc/cplbinfo is read
Mike Frysinger (UNITED STATES)
Message: 88674
you really shouldnt go around disabling all the debug options. you get no crash output because you explicitly disabled support for everything.
you also should never disable the NULL pointer checking.
the crash is due to using PREEMPT. only use voluntary or none preempt.