kernel built with usbhost_isp1362 fails to boot up.
Image Name: bf537-0.2-4.0.0-rc3-ADI-2014R1-p
Created: 2015-03-19 3:46:24 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 5418820 Bytes = 5.2 MiB
Load Address: 00001000
Entry Point: 002abdc8
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 002abdc8
Linux version 4.0.0-rc3-ADI-2014R1-pre-00465-ga43d96b-dirty (test@54-7393-1362-sl811-jtap) (gcc version 4.3.5 (ADI-master/git-46c6a72) ) #4 Thu Mar 19 11:46:08 CST 2015
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-0x001d10e8
rodata = 0x001d10e8-0x00271078
bss = 0x00272000-0x00286f44
data = 0x00286f60-0x002a4000
stack = 0x002a2000-0x002a4000
init = 0x002a4000-0x0067b000
available = 0x0067b000-0x03800000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 0
Reset caused by Software reset
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 ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off
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: 50100K/57344K available (1856K kernel code, 116K rwdata, 639K rodata, 3932K init, 83K bss, 7244K reserved, 0K cma-reserved, 1024K DMA)
NR_IRQS:146
Configuring Blackfin Priority Driven Interrupts
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
devtmpfs: initialized
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 (31 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
SCSI subsystem initialized
bfin-spi bfin-spi.0: master is unqueued, this is deprecated
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switched to clocksource bfin_cs_cycles
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
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
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18, base_baud = 7812500) is a BFIN-UART
console [ttyBF0] enabled
console [ttyBF0] enabled
bootconsole [early_BFuart0] disabled
bootconsole [early_BFuart0] disabled
bootconsole [early_shadow0] disabled
brd: module loaded
m25p80 spi0.1: unrecognized JEDEC id bytes: ff, ff, ff
libphy: bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=bfin_mii_bus-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
isp1362-hcd isp1362-hcd.0: ISP1362 Host Controller
isp1362-hcd isp1362-hcd.0: new USB bus registered, assigned bus number 1
isp1362-hcd isp1362-hcd.0: irq 53, io mem 0x20360000
isp1362-hcd isp1362-hcd.0: ISP1362 Memory usage:
isp1362-hcd isp1362-hcd.0: ISTL: 2 * 256: 512 @ $0000:$0100
isp1362-hcd isp1362-hcd.0: INTL: 16 * ( 64+8): 1152 @ $0200
isp1362-hcd isp1362-hcd.0: ATL : 32 * ( 64+8): 2304 @ $0680
isp1362-hcd isp1362-hcd.0: USED/FREE: 3968 128
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
isp1362-hcd isp1362-hcd.0: ISP1362 Host Controller, irq 53
usbcore: registered new interface driver usb-storage
rtc (null): invalid alarm value: 1900-1-20 0:0:0
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-19 11:55:32 UTC (1598132)
IP-Config: Complete:
device=eth0, hwaddr=00:e0:22:fe:47:c0, ipaddr=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 @ 0x02a1b000 - 256 pages at 0x03f00000
Freeing unused kernel memory: 3932K (002a4000 - 0067b000)
BUG: sleeping function called from invalid context at /home/test/workspace/src/kernel/label/BF537-STAMP-ADV7393/linux/linux-kernel/kernel/irq/manage.c:104
in_atomic(): 1, irqs_disabled(): 0, pid: 1, name: init
Hardware Trace:
0 Target : <0x001d0c3c> { _dump_stack + 0x0 }
Source : <0x00022596> { _mightsleep + 0xda } CALL pcrel
1 Target : <0x00022574> { __might_sleep + 0xb8 }
Source : <0x001d0e6c> { _printk + 0x30 } RTS
2 Target : <0x001d0e68> { _printk + 0x2c }
Source : <0x0002f630> { _vprintk_default + 0x1c } RTS
3 Target : <0x0002f62c> { _vprintk_default + 0x18 }
Source : <0x0002f520> { _vprintk_emit + 0x254 } RTS
4 Target : <0x0002f508> { _vprintk_emit + 0x23c }
Source : <0x0002f526> { _vprintk_emit + 0x25a } JUMP.S
5 Target : <0x0002f526> { _vprintk_emit + 0x25a }
Source : <0x0002e372> { _wake_up_klogd + 0x5a } RTS
6 Target : <0x0002e360> { _wake_up_klogd + 0x48 }
Source : <0x0002e336> { _wake_up_klogd + 0x1e } IF CC JUMP pcrel
7 Target : <0x0002e318> { _wake_up_klogd + 0x0 }
Source : <0x0002e7c4> { _console_unlock + 0x3e8 } CALL pcrel
8 Target : <0x0002e7b0> { _console_unlock + 0x3d4 }
Source : <0x0002e5f4> { _console_unlock + 0x218 } IF CC JUMP pcrel
9 Target : <0x0002e5bc> { _console_unlock + 0x1e0 }
Source : <0x0002a1aa> { _up + 0x5a } RTS
10 Target : <0x0002a196> { _up + 0x46 }
Source : <0x0002a188> { _up + 0x38 } IF CC JUMP pcrel (BP)
11 Target : <0x0002a150> { _up + 0x0 }
Source : <0x0002e5b8> { _console_unlock + 0x1dc } CALL pcrel
12 Target : <0x0002e586> { _console_unlock + 0x1aa }
Source : <0x0002e714> { _console_unlock + 0x338 } JUMP.S
13 Target : <0x0002e6ee> { _console_unlock + 0x312 }
Source : <0x0002e7cc> { _console_unlock + 0x3f0 } JUMP.S
14 Target : <0x0002e7c8> { _console_unlock + 0x3ec }
Source : <0x0002e6ec> { _console_unlock + 0x310 } IF CC JUMP pcrel
15 Target : <0x0002e6ea> { _console_unlock + 0x30e }
Source : <0x0002e4a6> { _console_unlock + 0xca } IF CC JUMP pcrel (BP)
CPU: 0 PID: 1 Comm: init Not tainted 4.0.0-rc3-ADI-2014R1-pre-00465-ga43d96b-dirty #4
Stack info:
SP: [0x02021a3c] <0x02021a3c> / kernel dynamic memory /
FP: (0x02021e68)
Memory from 0x02021a30 to 02022000
02021a30: 00000001 02021a3c 00000001 [0201fd78] 00031542 0209c400 0028ccc4 00000000
02021a50: 848f8c00 00000001 0000ffff 000317d4 00000012 00000100 00000000 000fabf0
02021a70: 0209c400 02020000 00000100 8452b864 00000000 00291624 <00035548> 000fabcc
02021a90: 02021adc 02020000 00000000 002916b0 002916e0 00291710 02020000 00000000
02021ab0: 00035734 0027cb54 02021adc 00000000 0000003f 00287e6c ffffffc0 0028c604
02021ad0: 0027d96c 0027d76c 0027d56c 02021adc 02021adc 002777ac <0000f1a0> 002777b4
02021af0: 00000004 02020000 00000002 00000002 00000100 00000001 000302e2 02020000
02021b10: 0028c604 029e02f0 00000006 00000000 02020008 fffedd34 00000100 0000000a
02021b30: 00000000 0000f354 00293a40 029e1590 029e02f0 00000006 00000000 00000000
02021b50: 02b00000 00000000 00000000 00000141 ffa002c6 02020000 02020000 02020000
02021b70: ffa00b22 ffc00014 00000100 <00100000> 002a014c 003d0900 00000000 ffa01634
02021b90: 00008050 00002026 00000000 02021bd4 ffa01634 ffa01634 0005e6cc 00000006
02021bb0: 02002021 00013568 ffa01634 00013554 ffa01634 00000000 0000ad28 000000bc
02021bd0: 00000000 0044ffbc 00000000 006ff000 00000000 ffffffff 0000001b 00000000
02021bf0: 00000000 00000000 00000000 00200200 00100100 00000024 ffffffff 00000066
02021c10: 0029ff9c 029daf0c 00000000 00000000 00000000 00029940 029e1590 029e02f0
02021c30: 02b94000 00025000 02b68b60 00000100 <00100000> 00000000 02b00000 02b94000
02021c50: 00000000 00000000 02b00000 02b00000 02b68b60 00000006 006c1000 00000000
02021c70: 02a19c00 00094eb4 00000000 00000000 00000000 00000094 00094000 0201fb20
02021c90: 00000000 00094000 000573d4 00029940 02a19c00 02020000 00000000 029dadd4
02021cb0: 00000000 00094000 <00063412> 0000ded0 02020000 00000007 00000002 00000000
02021cd0: 02021cd4 00000000 00096146 0000ded0 0000ded0 00001910 <0001ba70> 02a19c00
02021cf0: 00000000 00000000 00000007 00000002 00000000 00000000 00000000 00000000
02021d10: 00000000 00000000 02020000 00000002 00000002 544c4662 00000004 <000037b4>
02021d30: c09d0600 30580800 40710800 00000001 00001910 00069dc0 01000000 e2500955
02021d50: 0001ffd6 00000000 00003ec1 00093704 00000000 00000000 00000000 00000000
02021d70: 00000000 00000000 00000000 80000040 002926fc <0006781e> 00292aac 02a19c00
02021d90: 02020000 fffffff8 02020000 00000001 02020000 00000000 00068156 00000080
02021db0: 02a19c02 002926fc 0009480c 02a19c00 02021de4 02020000 fffffffe 02020000
02021dd0: 00000001 02020000 00000000 00000080 00000000 6e69622f 0068732f 00000000
02021df0: 00000000 00000002 002a0834 00000000 0029ff04 00000000 00000000 00000001
02021e10: 020567a0 02a19c00 00067338 02a19cfc 00000000 00000ffc <0201c01a> 00000006
02021e30: 0001fff6 00000000 02a19c00 0006745a 00000006 0006748c 006d1400 00000006
02021e50: 02a19c00 0006745a 00000006 0006748c 006d1400 02a19c02 (00000000)<0006781e>
02021e70: 00292a74 02a19c00 006d1400 02a20000 0001f000 02a19c02 00286fec 000684a4
02021e90: 0201fb20 02a19c00 02020000 00000000 00000000 0201c000 00000001 002bac20
02021eb0: 00286fec 00000f5c 002a4000 0201fcf0 00000000 02025eac 000685d0 00272020
02021ed0: 0201f9c8 00000000 00286fec 0201f7c0 00292444 0028bbc4 0201fb20 0201f7c0
02021ef0: ffffffff 00286f60 00000000 001cfed0 0201fb20 ffa00006 02024008 0201fb20
02021f10:<ffa00014> 02024008 96411f6f 001cfe9c 00000000 00000000 00008000 00000000
02021f30: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02021f50: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02021f70: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02021f90: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02021fb0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02021fd0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02021ff0: 00000000 00000000 ffffffff 00000006
Return addresses in stack:
address : <0x00035548> { _call_timer_fn + 0x18 }
address : <0x0000f1a0> { dosoftirq + 0xd8 }
address : <0x00100000> { _driver_deferred_probe_trigger + 0x74 }
address : <0x00100000> { _driver_deferred_probe_trigger + 0x74 }
address : <0x00063412> { _new_sync_read + 0x7e }
address : <0x0001ba70> { _pwq_unbound_release_workfn + 0x44 }
address : <0x000037b4> { _sys_rt_sigreturn + 0x6c }
address : <0x0006781e> { _search_binary_handler + 0x6e }
address : <0x0201c01a> / kernel dynamic memory /
frame 1 : <0x0006781e> { _search_binary_handler + 0x6e }
address : <0xffa00014> { _ret_from_fork + 0x14 }
BUG: sleeping function called from invalid context at /home/test/workspace/src/kernel/label/BF537-STAMP-ADV7393/linux/linux-kernel/kernel/irq/manage.c:104
in_atomic(): 1, irqs_disabled(): 0, pid: 1, name: init
Hardware Trace:
0 Target : <0x001d0c3c> { _dump_stack + 0x0 }
Source : <0x00022596> { __might_sleep + 0xda } CALL pcrel
1 Target : <0x00022574> { ____might_sleep + 0xb8 }
Source : <0x001d0e6c> { _printk + 0x30 } RTS
2 Target : <0x001d0e68> { _printk + 0x2c }
Source : <0x0002f630> { _vprintk_default + 0x1c } RTS
3 Target : <0x0002f62c> { _vprintk_default + 0x18 }
Source : <0x0002f520> { _vprintk_emit + 0x254 } RTS
4 Target : <0x0002f508> { _vprintk_emit + 0x23c }
Source : <0x0002f526> { _vprintk_emit + 0x25a } JUMP.S
5 Target : <0x0002f526> { _vprintk_emit + 0x25a }
Source : <0x0002e372> { _wake_up_klogd + 0x5a } RTS
6 Target : <0x0002e360> { _wake_up_klogd + 0x48 }
Source : <0x0002e336> { _wake_up_klogd + 0x1e } IF CC JUMP pcrel
7 Target : <0x0002e318> { _wake_up_klogd + 0x0 }
Source : <0x0002e7c4> { _console_unlock + 0x3e8 } CALL pcrel
8 Target : <0x0002e7b0> { _console_unlock + 0x3d4 }
Source : <0x0002e5f4> { _console_unlock + 0x218 } IF CC JUMP pcrel
9 Target : <0x0002e5bc> { _console_unlock + 0x1e0 }
Source : <0x0002a1aa> { _up + 0x5a } RTS
10 Target : <0x0002a196> { _up + 0x46 }
Source : <0x0002a188> { _up + 0x38 } IF CC JUMP pcrel (BP)
11 Target : <0x0002a150> { _up + 0x0 }
Source : <0x0002e5b8> { _console_unlock + 0x1dc } CALL pcrel
12 Target : <0x0002e586> { _console_unlock + 0x1aa }
Source : <0x0002e714> { _console_unlock + 0x338 } JUMP.S
13 Target : <0x0002e6ee> { _console_unlock + 0x312 }
Source : <0x0002e7cc> { _console_unlock + 0x3f0 } JUMP.S
14 Target : <0x0002e7c8> { _console_unlock + 0x3ec }
Source : <0x0002e6ec> { _console_unlock + 0x310 } IF CC JUMP pcrel
15 Target : <0x0002e6ea> { _console_unlock + 0x30e }
Source : <0x0002e4a6> { _console_unlock + 0xca } IF CC JUMP pcrel (BP)
CPU: 0 PID: 1 Comm: init Not tainted 4.0.0-rc3-ADI-2014R1-pre-00465-ga43d96b-dirty #4
Stack info:
SP: [0x02021ac0] <0x02021ac0> / kernel dynamic memory /
FP: (0x02021e68)
Memory from 0x02021ac0 to 02022000
02021ac0:[0201fd78] 00031542 0209c400 0028ccc4 00000000 d117d500 00000001 0000ffff
02021ae0: 000317d4 00000012 00000100 00000000 000fabf0 0209c400 02020000 00000100
02021b00: d0dafc8c 00000000 00291624 <00035548> 000fabcc 02021b60 02020000 00000000
02021b20: 002916b0 002916e0 00291710 02020000 00000000 00035734 0027cb54 02021b60
02021b40: 00000000 0000003f 00287e6c ffffffc0 0028c604 0027d96c 0027d76c 0027d56c
02021b60: 02097b28 02097b28 002777ac <0000f1a0> 002777b4 00000004 02020000 00000002
02021b80: 00000002 00000100 00000001 000302e2 02020000 0028c604 03ffffff 00000006
02021ba0: 00000000 02020008 fffede75 00000100 0000000a 00000001 0000f354 00293a40
02021bc0: 02a19c00 03ffffff 00000006 00000000 00000fdd 00000007 00000000 006ff000
02021be0: 00000000 ffa002c6 0000001b 00094000 <00063412> ffa00b22 ffc00014 04030778
02021c00: 02b307b8 02021c58 0000005c 02b69de0 00004a46 00008050 00002026 00000000
02021c20: 02021bd4 ffa01634 00004a46 0009642e 00000006 02003025 ffa00338 ffa015d6
02021c40: ffa00332 ffa015d6 00000000 00000000 000000d0 00000000 006b4dd0 00000000
02021c60: 006ff000 00000000 ffffffff 0000001b 00000000 00000000 00000000 00000000
02021c80: 00200200 00100100 00000024 ffffffff 00000066 00000000 02293700 00288728
02021ca0: 00000000 00000001 02b897c8 02a19c00 03ffffff 02b307b8 02021d60 02b93720
02021cc0: 04030778 02b307b8 00000fdd 00000007 00069d80 00000001 02b7b908 00000001
02021ce0: 00000001 02b93720 00000006 02a19c00 00000000 00093700 00000000 00029940
02021d00: 00000000 00000000 00000000 00000000 00000000 01000000 02020000 00000002
02021d20: 00000002 00085830 00000004 <000037b4> 02b69dc0 02b00040 02b85850 00000001
02021d40: 00001910 00069dc0 02b9013f 02b85850 0001ffd6 00000000 00003ec1 00093704
02021d60: 02b00040 02b69de0 02b87160 00069d80 02b00044 550950e2 00000001 00070000
02021d80: 002926fc <0006781e> 00292aac 02a19c00 02020000 fffffff8 02020000 00000001
02021da0: 02020000 00000000 00068156 00000080 02a19c02 002926fc 0009480c 02a19c00
02021dc0: 02021de4 02020000 fffffffe 02020000 00000001 02020000 00000000 00000080
02021de0: 00000000 6e69622f 0068732f 00000000 00000000 00000002 002a0834 00000000
02021e00: 0029ff04 00000000 00000000 00000001 020567a0 02a19c00 00067338 02a19cfc
02021e20: 00000000 00000ffc <0201c01a> 00000006 0001fff6 00000000 02a19c00 0006745a
02021e40: 00000006 0006748c 006d1400 00000006 02a19c00 0006745a 00000006 0006748c
02021e60: 006d1400 02a19c02 (00000000)<0006781e> 00292a74 02a19c00 006d1400 02a20000
02021e80: 0001f000 02a19c02 00286fec 000684a4 0201fb20 02a19c00 02020000 00000000
02021ea0: 00000000 0201c000 00000001 002bac20 00286fec 00000f5c 002a4000 0201fcf0
02021ec0: 00000000 02025eac 000685d0 00272020 0201f9c8 00000000 00286fec 0201f7c0
02021ee0: 00292444 0028bbc4 0201fb20 0201f7c0 ffffffff 00286f60 00000000 001cfed0
02021f00: 0201fb20 ffa00006 02024008 0201fb20 <ffa00014> 02024008 96411f6f 001cfe9c
02021f20: 00000000 00000000 00008000 00000000 00000000 00000000 00000000 00000000
02021f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02021f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02021f80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02021fa0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02021fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02021fe0: 00000000 00000000 00000000 00000000 00000000 00000000 ffffffff 00000006
Return addresses in stack:</ffa00014></ffa00014>
this issue also happens for spimmc card config.
What triggers is new debugging code added to catch nested sleeps in e22b886.
Replace dma_disable_irq to dma_disable_irq_nosync.
It sees booting up with kernel configured with usb.
fixed,close.