2009-03-18 12:57:59

by cheng renquan

[permalink] [raw]
Subject: About [AMCC 460EX/canyonlands board] Synopsys DesignWare Cores (DWC) SATA host driver

Mark,
I found that the current sata_dwc can only work on
DENX-2.6.25-stable, and have problems in DENX-2.6.26, 27, 28,
29(master),
the boot errors is as the following, I hope you and AMCC staff submit
it into mainline soon, thanks.

there is also some other boot panic kmsg, I will reproduce it tomorrow.

http://git.denx.de/linux-2.6-denx.git/

Synopsys DesignWare Cores (DWC) SATA host driver

[email protected]

About AMCC DesignWare Core SATA controller driver:

=> boot
Using ip address 172.16.90.27
## Booting kernel from Legacy Image at ff600000 ...
Image Name: Linux-2.6.27.19
Created: 2009-03-13 10:18:17 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1574261 Bytes = 1.5 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Flattened Device Tree blob at fc1e0000
Booting using the fdt blob at 0xfc1e0000
## Loading init Ramdisk from Legacy Image at fc200000 ...
Image Name: canyonlands ramdisk rev. 001
Created: 2008-05-13 11:18:24 UTC
Image Type: PowerPC Linux RAMDisk Image (gzip compressed)
Data Size: 18968362 Bytes = 18.1 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Device Tree to 007fa000, end 007fffff ... OK
Loading Ramdisk to 1ec3d000, end 1fe53f2a ... OK
Using Canyonlands machine description
Linux version 2.6.27.19 (fedora@ubox-h1) (gcc version 4.2.2) #1 Fri
Mar 13 18:18:05 HKT 2009
Found initrd at 0xdec3d000:0xdfe53f2a
Zone PFN ranges:
DMA 0x00000000 -> 0x00020000
Normal 0x00020000 -> 0x00020000
HighMem 0x00020000 -> 0x00020000


scsi 0:0:0:0: Direct-Access ATA WDC WD10EVVS-63E 01.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 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] 1953525168 512-byte hardware sectors (1000205 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:<3>ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: status: { DRDY }
ata1: link is slow to respond, please be patient (ready=0)
ata1: prereset failed (errno=-16)
ata1: reset failed, giving up
ata1.00: disabled
ata1: EH complete
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
unable to read partition table
sd 0:0:0:0: [sda] Attached SCSI disk
4cc000000.nor_flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
4cc000000.nor_flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
Creating 7 MTD partitions on "4cc000000.nor_flash":
0x00000000-0x001e0000 : "kernel"
0x001e0000-0x00200000 : "dtb"
0x00200000-0x01600000 : "ramdisk"
0x01600000-0x01a00000 : "jffs2"
0x01a00000-0x03f60000 : "user"
0x03f60000-0x03fa0000 : "env"
0x03fa0000-0x04000000 : "u-boot"
NDFC NAND Driver initialized. Chip-Rev: 0x00000111
NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND
128MiB 3,3V 8-bit)
Scanning device for bad blocks
Number of partitions 3
Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00000000-0x00100000 : "u-boot"
0x00100000-0x00140000 : "env"
0x00140000-0x08000000 : "content"
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
dwc_otg: version 2.60a 22-NOV-2006
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
eth0: link is up, 1000 FDX, pause enabled
IP-Config: Complete:
device=eth0, addr=172.16.90.27, mask=255.255.255.0, gw=255.255.255.255,
host=canyonlands, domain=, nis-domain=(none),
bootserver=172.16.90.26, rootserver=172.16.90.26, rootpath=
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 156k init
Startup utility found. Executing...
AMCC Startup utility launched.


BusyBox v1.2.1 (2008.05.13-11:11+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # fdisk -l
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 8
Buffer I/O error on device sda, logical block 1
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 16
Buffer I/O error on device sda, logical block 2
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 24
Buffer I/O error on device sda, logical block 3
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 1953525160
Buffer I/O error on device sda, logical block 244190645
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 1953525160
Buffer I/O error on device sda, logical block 244190645
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 8
Buffer I/O error on device sda, logical block 1
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 16
Buffer I/O error on device sda, logical block 2
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 24
sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 0
~ #


--
Cheng Renquan (程任全), from Shenzhen, China
Jean Anouilh - "What you get free costs too much."


2009-03-18 22:21:52

by Feng Kan

[permalink] [raw]
Subject: Re: About [AMCC 460EX/canyonlands board] Synopsys DesignWare Cores (DWC) SATA host driver

Hi RenQuan:

We are aware of the issue, currently the sata is only supported up to
2.6.25.7. We are working on a patchable version
to submit to main line.

Thanks
Feng Kan

Cheng Renquan wrote:
> Mark,
> I found that the current sata_dwc can only work on
> DENX-2.6.25-stable, and have problems in DENX-2.6.26, 27, 28,
> 29(master),
> the boot errors is as the following, I hope you and AMCC staff submit
> it into mainline soon, thanks.
>
> there is also some other boot panic kmsg, I will reproduce it tomorrow.
>
> http://git.denx.de/linux-2.6-denx.git/
>
> Synopsys DesignWare Cores (DWC) SATA host driver
>
> [email protected]
>
> About AMCC DesignWare Core SATA controller driver:
>
> => boot
> Using ip address 172.16.90.27
> ## Booting kernel from Legacy Image at ff600000 ...
> Image Name: Linux-2.6.27.19
> Created: 2009-03-13 10:18:17 UTC
> Image Type: PowerPC Linux Kernel Image (gzip compressed)
> Data Size: 1574261 Bytes = 1.5 MB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... OK
> Uncompressing Kernel Image ... OK
> ## Flattened Device Tree blob at fc1e0000
> Booting using the fdt blob at 0xfc1e0000
> ## Loading init Ramdisk from Legacy Image at fc200000 ...
> Image Name: canyonlands ramdisk rev. 001
> Created: 2008-05-13 11:18:24 UTC
> Image Type: PowerPC Linux RAMDisk Image (gzip compressed)
> Data Size: 18968362 Bytes = 18.1 MB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... OK
> Loading Device Tree to 007fa000, end 007fffff ... OK
> Loading Ramdisk to 1ec3d000, end 1fe53f2a ... OK
> Using Canyonlands machine description
> Linux version 2.6.27.19 (fedora@ubox-h1) (gcc version 4.2.2) #1 Fri
> Mar 13 18:18:05 HKT 2009
> Found initrd at 0xdec3d000:0xdfe53f2a
> Zone PFN ranges:
> DMA 0x00000000 -> 0x00020000
> Normal 0x00020000 -> 0x00020000
> HighMem 0x00020000 -> 0x00020000
>
>
> scsi 0:0:0:0: Direct-Access ATA WDC WD10EVVS-63E 01.0 PQ: 0 ANSI: 5
> sd 0:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 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] 1953525168 512-byte hardware sectors (1000205 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:<3>ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
> ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
> res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
> ata1.00: status: { DRDY }
> ata1: link is slow to respond, please be patient (ready=0)
> ata1: prereset failed (errno=-16)
> ata1: reset failed, giving up
> ata1.00: disabled
> ata1: EH complete
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 0
> Buffer I/O error on device sda, logical block 0
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 0
> Buffer I/O error on device sda, logical block 0
> unable to read partition table
> sd 0:0:0:0: [sda] Attached SCSI disk
> 4cc000000.nor_flash: Found 1 x16 devices at 0x0 in 16-bit bank
> Amd/Fujitsu Extended Query Table at 0x0040
> 4cc000000.nor_flash: CFI does not contain boot bank location. Assuming top.
> number of CFI chips: 1
> cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
> RedBoot partition parsing not available
> Creating 7 MTD partitions on "4cc000000.nor_flash":
> 0x00000000-0x001e0000 : "kernel"
> 0x001e0000-0x00200000 : "dtb"
> 0x00200000-0x01600000 : "ramdisk"
> 0x01600000-0x01a00000 : "jffs2"
> 0x01a00000-0x03f60000 : "user"
> 0x03f60000-0x03fa0000 : "env"
> 0x03fa0000-0x04000000 : "u-boot"
> NDFC NAND Driver initialized. Chip-Rev: 0x00000111
> NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND
> 128MiB 3,3V 8-bit)
> Scanning device for bad blocks
> Number of partitions 3
> Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
> 0x00000000-0x00100000 : "u-boot"
> 0x00100000-0x00140000 : "env"
> 0x00140000-0x08000000 : "content"
> Initializing USB Mass Storage driver...
> usbcore: registered new interface driver usb-storage
> USB Mass Storage support registered.
> dwc_otg: version 2.60a 22-NOV-2006
> TCP cubic registered
> NET: Registered protocol family 17
> RPC: Registered udp transport module.
> RPC: Registered tcp transport module.
> eth0: link is up, 1000 FDX, pause enabled
> IP-Config: Complete:
> device=eth0, addr=172.16.90.27, mask=255.255.255.0, gw=255.255.255.255,
> host=canyonlands, domain=, nis-domain=(none),
> bootserver=172.16.90.26, rootserver=172.16.90.26, rootpath=
> RAMDISK: Compressed image found at block 0
> VFS: Mounted root (ext2 filesystem).
> Freeing unused kernel memory: 156k init
> Startup utility found. Executing...
> AMCC Startup utility launched.
>
>
> BusyBox v1.2.1 (2008.05.13-11:11+0000) Built-in shell (ash)
> Enter 'help' for a list of built-in commands.
>
> ~ # fdisk -l
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 8
> Buffer I/O error on device sda, logical block 1
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 16
> Buffer I/O error on device sda, logical block 2
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 24
> Buffer I/O error on device sda, logical block 3
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 0
> Buffer I/O error on device sda, logical block 0
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 0
> Buffer I/O error on device sda, logical block 0
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 1953525160
> Buffer I/O error on device sda, logical block 244190645
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 1953525160
> Buffer I/O error on device sda, logical block 244190645
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 0
> Buffer I/O error on device sda, logical block 0
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 8
> Buffer I/O error on device sda, logical block 1
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 16
> Buffer I/O error on device sda, logical block 2
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 24
> sd 0:0:0:0: [sda] Result: hostbyte=0x04 driverbyte=0x00
> end_request: I/O error, dev sda, sector 0
> ~ #
>
>
>

2009-03-19 02:47:59

by cheng renquan

[permalink] [raw]
Subject: Re: About [AMCC 460EX/canyonlands board] Synopsys DesignWare Cores (DWC) SATA host driver

On Thu, Mar 19, 2009 at 6:21 AM, Feng Kan <[email protected]> wrote:
> Hi RenQuan:
>
> We are aware of the issue, currently the sata is only supported up to
> 2.6.25.7. We are working on a patchable version
> to submit to main line.

Well, we want some new kernel features on amcc borads,
(squashfs/ubifs/layered fs/..) those are only in newer mainline
kernels, so please respond soon, thanks.

BTW, the author declared in drivers/ata/sata_dwc.c Mark Miesfeld
<[email protected]> seems not receive mail permanently, pruned here,
and please consider change another maintainer of that file.

>
> Thanks
> Feng Kan

Besides, here's some kernel panic message on 2.6.28.7,

NIP: c0195a18 LR: c01807a8 CTR: c01959ec
REGS: df82bb60 TRAP: 0300 Not tainted (2.6.28.7-dirty)
MSR: 00029000 <EE,ME> CR: 44008048 XER: 00000000
DEAR: 00000008, ESR: 00000000
TASK = df82c000[1] 'swapper' THREAD: df82a000
GPR00: c01807a8 df82bc10 df82c000 df92d588 00000002 df92d59c 4ebc7fe3 00000001
GPR08: 4ebc7fe3 00000000 c032f0b4 00000008 24008042 1005543c 1ffb1100 00000000
GPR16: 1000bd80 1000bda8 00000000 c0360000 00000000 c02c5934 c02c5918 c032f774
GPR24: c02c4ed0 00000000 df874950 df874950 00000002 df92d59c 00000002 df92d588
NIP [c0195a18] sata_dwc_scr_read+0x2c/0x88
LR [c01807a8] sata_scr_read+0x7c/0x90
Call Trace:
[df82bc10] [c0179664] scsi_sysfs_add_host+0x94/0xac (unreliable)
[df82bc20] [c01807a8] sata_scr_read+0x7c/0x90
[df82bc40] [c01807dc] sata_link_init_spd+0x20/0x238
[df82bc80] [c01851e4] ata_host_register+0x174/0x2e0
[df82bcc0] [c0185404] ata_host_activate+0xb4/0x124
[df82bcf0] [c0196974] sata_dwc_probe+0x334/0x52c
[df82bd60] [c0162f78] platform_drv_probe+0x20/0x30
[df82bd70] [c0161de0] driver_probe_device+0xb8/0x1e8
[df82bd90] [c0161fb4] __driver_attach+0xa4/0xa8
[df82bdb0] [c01612e4] bus_for_each_dev+0x5c/0x98
[df82bde0] [c0161be8] driver_attach+0x24/0x34
[df82bdf0] [c0161934] bus_add_driver+0x1d8/0x258
[df82be20] [c01621c4] driver_register+0x5c/0x158
[df82be40] [c01631d4] platform_driver_register+0xac/0xbc
[df82be50] [c030c0c0] sata_dwc_init+0x18/0x28
[df82be60] [c00013dc] do_one_initcall+0x38/0x19c
[df82bfd0] [c02f3168] kernel_init+0x88/0xf4
[df82bff0] [c000d5e4] kernel_thread+0x4c/0x68
Instruction dump:
4e800020 2b840004 9421fff0 7c0802a6 bfc10008 90010014 7c9e2378 7c7f1b78
419d0038 81230060 548b103a 7c0004ac <7c095c2c> 0c000000 4c00012c 90050000
---[ end trace e066981a4cd0462b ]---
Kernel panic - not syncing: Attempted to kill init!
Rebooting in 1 seconds..

--
Cheng Renquan (程任全), from Shenzhen, China
Samuel Beckett - "Birth was the death of him."