[#4036] pata device can't be initialized when booting on trunk
Submitted By: Mingquan Pan
Open Date
2008-04-16 03:28:10 Close Date
2008-05-27 04:20:45
Priority:
Medium Assignee:
Nobody
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: pata device can't be initialized when booting on trunk
Details:
pata device can't be initialized when booting on trunk.
bfin> boote
Loading .text @ 0x00001000 (1149872 bytes)
Loading .exit.text.refok @ 0x00119bb0 (296 bytes)
Loading .rodata @ 0x00119ce0 (281680 bytes)
Loading __ksymtab @ 0x0015e930 (15656 bytes)
Loading __ksymtab_gpl @ 0x00162658 (5288 bytes)
Loading __ksymtab_strings @ 0x00163b00 (50840 bytes)
Loading __param @ 0x00170198 (620 bytes)
Clearing .bss @ 0x00170420 (56100 bytes)
Loading .data @ 0x0017df44 (82108 bytes)
Loading .init.text @ 0x00192000 (98748 bytes)
Loading .init.data @ 0x001aa1bc (15916 bytes)
Loading .init.setup @ 0x001adfe8 (608 bytes)
Loading .initcall.init @ 0x001ae248 (464 bytes)
Loading .con_initcall.init @ 0x001ae418 (4 bytes)
Loading .init.ramfs @ 0x001ae41c (3408745 bytes)
Loading .text_l1 @ 0xffa00000 (7224 bytes)
sh_addr: FFA00000, p_paddr: 004EE785
Loading from: 024E2000 to 004EE785, size: 7224
Loading .data_l1 @ 0xff800000 (192 bytes)
sh_addr: FF800000, p_paddr: 004F03BD
Loading from: 024E4000 to 004F03BD, size: 192
## Starting application at 0x00192000 ...
Linux version 2.6.24.4-ADI-2008R2-pre-svn4604 (test@linux) (gcc version 4.1.2 (ADI svn)) #233 Wed Apr 16 15:19:53 CST 2008
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Warning: limiting memory to 56MB due to hardware anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00119bb0
rodata = 0x00119ce0-0x00170404
bss = 0x00170420-0x0017df44
data = 0x0017df44-0x00192000
stack = 0x00190000-0x00192000
init = 0x00192000-0x004f1000
available = 0x004f1000-0x037ff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Blackfin support (C) 2004-2008 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 62 MHz System Clock
NOMPU: setting up cplb tables for global access
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
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)
bfin-rtc: invalid date; resetting
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: 51700k/65536k RAM, (3452k init code, 1122k kernel code, 482k data, 1024k dma, 7756k 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 (40 KB free)
Security Framework initialized
Mount-cache hash table entries: 512
net_namespace: 64 bytes
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
SCSI subsystem initialized
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
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=11)@sclk=62MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
scsi0 : pata_platform
ata1: PATA max PIO0 mmio cmd 0x20314020 ctl 0x2031401c irq 55
ata1.00: qc timeout (cmd 0xf8)
ata1.00: failed to read default max address (err_mask=0x4)
ata1.00: HPA support seems broken, will skip HPA handling
ata1: failed to recover some devices, retrying in 5 secs
ata1.00: configured for PIO
scsi 0:0:0:0: Direct-Access ATA WDC WD800BB-00JH 05.0 PQ: 0 ANSI: 5
bfin-spi bfin-spi.0: Blackfin BF5xx 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
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:00:38 UTC (38)
Freeing unused kernel memory: 3452k freed
dma_alloc_init: dma_page @ 0x004ee000 - 256 pages at 0x03f00000
_____________________________________
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| - blackfin.uclinux.org/
\ YP" `| 8P `. - docs.blackfin.uclinux.org/
/ \.___.d| .' - www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.10.0 (2008-04-16 12:20:16 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> ls /dev/
console mem ram1 ram14 ram5 random ttyBF0
full null ram10 ram15 ram6 rtc0 urandom
kmem ptmx ram11 ram2 ram7 sport0 watchdog
kmsg pts ram12 ram3 ram8 sport1 zero
log ram0 ram13 ram4 ram9 tty
Follow-ups
--- Sonic Zhang 2008-04-18 05:41:32
Fixed.
The patch for IDE daughter board is lost when Bryan update kernel on trunk.
--- Mingquan Pan 2008-04-21 02:55:28
The trunk head kernel still fails to recoganize the pata driver,and the error
has something new.
Loading .text @ 0x00001000 (1222768 bytes)
Loading .exit.text.refok @ 0x0012b870 (296 bytes)
Loading .rodata @ 0x0012b9a0 (310416 bytes)
Loading __ksymtab @ 0x00177630 (15728 bytes)
Loading __ksymtab_gpl @ 0x0017b3a0 (5432 bytes)
Loading __ksymtab_strings @ 0x0017c8d8 (51300 bytes)
Loading __param @ 0x0018913c (620 bytes)
Clearing .bss @ 0x001893c0 (56132 bytes)
Loading .data @ 0x00196f04 (86268 bytes)
Loading .init.text @ 0x001ac000 (99308 bytes)
Loading .init.data @ 0x001c43ec (15916 bytes)
Loading .init.setup @ 0x001c8218 (608 bytes)
Loading .initcall.init @ 0x001c8478 (496 bytes)
Loading .con_initcall.init @ 0x001c8668 (4 bytes)
Loading .init.ramfs @ 0x001c866c (3483709 bytes)
Loading .text_l1 @ 0xffa00000 (7224 bytes)
sh_addr: FFA00000, p_paddr: 0051AEA9
Loading from: 0250E000 to 0051AEA9, size: 7224
Loading .data_l1 @ 0xff800000 (192 bytes)
sh_addr: FF800000, p_paddr: 0051CAE1
Loading from: 02510000 to 0051CAE1, size: 192
## Starting application at 0x001ac000 ...
Linux version 2.6.24.4-ADI-2008R2-pre-svn4620 (test@linux) (gcc version 4.1.2
(ADI svn)) #259 Mon Apr 21 12:13:53 CST 2008
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Warning: limiting memory to 56MB due to hardware anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0012b870
rodata = 0x0012b9a0-0x001893a8
bss = 0x001893c0-0x00196f04
data = 0x00196f04-0x001ac000
stack = 0x001aa000-0x001ac000
init = 0x001ac000-0x0051d000
available = 0x0051d000-0x037ff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Reset caused by Software reset
Blackfin support (C) 2004-2008 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 62 MHz System Clock
NOMPU: setting up cplb tables for global access
Data Cache Enabled (write-through)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
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: 51524k/65536k RAM, (3524k init code, 1194k kernel code, 514k
data, 1024k dma, 7756k 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 (40 KB free)
Security Framework initialized
Mount-cache hash table entries: 512
net_namespace: 64 bytes
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
SCSI subsystem initialized
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
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1,
mdc_clk=2500000Hz(mdc_div=11)@sclk=62MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
scsi0 : pata_platform
ata1: PATA max PIO0 mmio cmd 0x20314020 ctl 0x2031401c irq 55
ata1.00: qc timeout (cmd 0xef)
ata1.00: failed to IDENTIFY (SPINUP failed, err_mask=0x4)
ata1: failed to recover some devices, retrying in 5 secs
ata1.00: qc timeout (cmd 0xef)
ata1.00: failed to IDENTIFY (SPINUP failed, err_mask=0x4)
ata1: failed to recover some devices, retrying in 5 secs
ata1.00: qc timeout (cmd 0xef)
ata1.00: failed to IDENTIFY (SPINUP failed, err_mask=0x4)
ata1: failed to recover some devices, retrying in 5 secs
bfin-spi bfin-spi.0: Blackfin BF5xx 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
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:01:48 UTC (108)
Freeing unused kernel memory: 3524k freed
dma_alloc_init: dma_page @ 0x00519000 - 256 pages at 0x03f00000
--- Robin Getz 2008-04-29 15:06:53
Sonic:
I saw in the commit - do not send to lkml - why not - can't we do this in an
acceptable manner?
-Robin
--- Sonic Zhang 2008-04-29 23:30:22
Because the CPLD on the IDE daughter board doesn't work in the same way as other
IDE contrllers. The IDE interrupt is generated for all IDE access commands,
while it is expected for only some. Error "IRQ nobody care" occurs if
the irq is not enabled or disabled properly. This is a walkaround only for the
CPLD on our IDE daughter board.
--- Robin Getz 2008-04-30 00:58:01
Thanks - that makes sense.
Can't we re-factor things with a few #ifdefs broken IDE controller? Or check
with mainline to see if this can be included somehow?
It makes more sense to go through the effort to see if it can be included in
mainline, than trying to keep this external patch (and lose it, and open a bug,
and fix it, over and over when Byran upgrades the kernel) ?
Or maybe not?
Thoughts?
-Robin
-Robin
--- Mingquan Pan 2008-05-13 06:38:38
I tried on trunk head, however it looks still failing like above...
--- Mingquan Pan 2008-05-27 04:20:39
Ok, I finally got this scsi device been detected, with 350 MHz core clock and 70
MHz System Clock and SW5 all off ,SW6 on on off off.
Close.
Loading .text @ 0x00001000 (1233120 bytes)
Loading .exit.text.refok @ 0x0012e0e0 (296 bytes)
Loading .rodata @ 0x0012e220 (314212 bytes)
Loading __ksymtab @ 0x0017ad84 (15752 bytes)
Loading __ksymtab_gpl @ 0x0017eb0c (5432 bytes)
Loading __ksymtab_strings @ 0x00180044 (51336 bytes)
Loading __param @ 0x0018c8cc (620 bytes)
Clearing .bss @ 0x0018cb40 (56132 bytes)
Loading .data @ 0x0019a684 (88444 bytes)
Loading .init.text @ 0x001b0000 (99468 bytes)
Loading .init.data @ 0x001c848c (15920 bytes)
Loading .init.setup @ 0x001cc2bc (604 bytes)
Loading .initcall.init @ 0x001cc518 (500 bytes)
Loading .con_initcall.init @ 0x001cc70c (4 bytes)
Loading .init.ramfs @ 0x001cc710 (3528088 bytes)
Loading .text_l1 @ 0xffa00000 (7192 bytes)
sh_addr: FFA00000, p_paddr: 00529CA8
Loading from: 0251D000 to 00529CA8, size: 7192
Loading .data_l1 @ 0xff800000 (192 bytes)
sh_addr: FF800000, p_paddr: 0052B8C0
Loading from: 0251F000 to 0052B8C0, size: 192
## Starting application at 0x001b0000 ...
Linux version 2.6.24.7-ADI-2008R2-pre-svn4775 (test@Linux54-ADV7393-AD1981)
(gcc version 4.1.2 (ADI svn)) #20 Tue May 27 00:07:50 CST 2008
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Warning: limiting memory to 56MB due to hardware anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0012e0e0
rodata = 0x0012e220-0x0018cb38
bss = 0x0018cb40-0x0019a684
data = 0x0019a684-0x001b0000
stack = 0x001ae000-0x001b0000
init = 0x001b0000-0x0052c000
available = 0x0052c000-0x037ff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Reset caused by Software reset
Blackfin support (C) 2004-2008 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 350 MHz core clock and 70 MHz System Clock
NOMPU: setting up cplb tables for global access
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
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: 51464k/65536k RAM, (3568k init code, 1204k kernel code, 520k
data, 1024k dma, 7756k 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 (40 KB free)
Security Framework initialized
Mount-cache hash table entries: 512
net_namespace: 64 bytes
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
SCSI subsystem initialized
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
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1,
mdc_clk=2500000Hz(mdc_div=13)@sclk=70MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
Driver 'sd' needs updating - please use bus_type methods
scsi0 : pata_platform
ata1: PATA max PIO0 mmio cmd 0x20314020 ctl 0x2031401c irq 55
ata1.00: qc timeout (cmd 0xf8)
ata1.00: failed to read default max address (err_mask=0x4)
ata1.00: HPA support seems broken, will skip HPA handling
ata1: failed to recover some devices, retrying in 5 secs
ata1.00: configured for PIO
scsi 0:0:0:0: Direct-Access ATA WDC WD800BB-00JH 05.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 156301488 512-byte hardware sectors (80026 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support
DPO or FUA
sd 0:0:0:0: [sda] 156301488 512-byte hardware sectors (80026 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support
DPO or FUA
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
bfin-spi bfin-spi.0: Blackfin BF5xx 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
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 01:51:46 UTC (6706)
Freeing unused kernel memory: 3568k freed
dma_alloc_init: dma_page @ 0x00528000 - 256 pages at 0x03f00000
_____________________________________
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found