From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from whasmtp-tariff.pas.sa.earthlink.net (whasmtp-tariff.pas.sa.earthlink.net [207.217.120.87]) by bilbo.ozlabs.org (Postfix) with ESMTP id EF109B707B for ; Fri, 24 Jul 2009 06:41:02 +1000 (EST) Received: from [66.167.232.203] (helo=mimic) by whasmtp-tariff.pas.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1MU4jc-0007tg-Jk for linuxppc-dev@lists.ozlabs.org; Thu, 23 Jul 2009 13:17:48 -0700 From: "Thomas Bachman" To: Subject: SATA on PowerPC460EX with 2.6.27 kernel Date: Thu, 23 Jul 2009 16:17:44 -0400 Message-ID: <0F154486D4C4480586F55434BEC41C3F@mimic> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00D6_01CA0BB1.1CDBE350" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------=_NextPart_000_00D6_01CA0BB1.1CDBE350 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit We're trying to use the SATA interface on our PowerPC460EX. We've applied the following patch: http://markmail.org/message/p5kdgzyneuxzdvjh Our kernel is based on AMCC's "Arches" eval board distro kernel (2.6.27-rc5), and with this patch, we're able to get the SATA interface up and running, insomuch as it can discover our hard disk. Unfortunately, we're not able to mount, format, or do any other functions with the disk. We see the following in our logs: sata-dwc sata-dwc.0: sata_dwc_error_intr SCR_ERROR=0x04050002 intpr=0x00000008 status=0x000000 80 dma_intp=0 pending=-1070221560 issued=4 dma_err_status=0x00000000 ata1: exception Emask 0x30 SAct 0x0 SErr 0x4050002 action 0xe frozen ata1: SError: { RecovComm PHYRdyChg CommWake DevExch } scsi 0:0:0:0: Direct-Access ATA TOSHIBA MK1216GS RS01 PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 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] 234441648 512-byte hardware sectors (120034 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 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 end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 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 sd 0:0:0:0: Attached scsi generic sg0 type 0 The disk is a 120GB Toshiba hard drive, 1.5Gbps SATA. I found that someone had a similar problem when going to a newer kernel: http://lists-archives.org/linux-kernel/19814689-about-synopsys-designware-co res-dwc-sata-host-driver.html Has this been fixed? We weren't sure if this patch ever happened, and if so, where we could get it. -Thomas Bachman -Annapolis Micro Systems, Inc. ------=_NextPart_000_00D6_01CA0BB1.1CDBE350 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
We're = trying to use=20 the SATA interface on our PowerPC460EX.
We've = applied the=20 following patch:
 
http://markmail.org= /message/p5kdgzyneuxzdvjh
 
Our kernel is=20 based on AMCC's "Arches" eval board distro kernel=20 (2.6.27-rc5),=20
and with this patch, we're able to = get the SATA interface up and running, = insomuch as=20
it can=20 discover our hard disk. Unfortunately, we're not able to mount, format, = or do any=20
other=20 functions=20 with the=20 disk. We see the following in our logs:
 
sata-dwc sata-dwc.0:=20 sata_dwc_error_intr SCR_ERROR=3D0x04050002 intpr=3D0x00000008 = status=3D0x000000
80=20 dma_intp=3D0 pending=3D-1070221560 issued=3D4 = dma_err_status=3D0x00000000
ata1:=20 exception Emask 0x30 SAct 0x0 SErr 0x4050002 action 0xe frozen
ata1: = SError:=20 { RecovComm PHYRdyChg CommWake DevExch }
scsi 0:0:0:0:=20 Direct-Access     ATA      = TOSHIBA=20 MK1216GS RS01 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 234441648 512-byte = hardware=20 sectors (120034 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd = 0:0:0:0:=20 [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or=20 FUA
sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 = MB)
sd=20 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: = enabled,=20 read cache: enabled, doesn't support DPO or FUA
ata1.00: exception=20 Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
ata1.00: cmd=20 c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096=20 in
         res=20 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata1.00: = status: {=20 DRDY }
ata1: link is slow to respond, please be patient = (ready=3D0)
ata1:=20 prereset failed (errno=3D-16)
ata1: reset failed, giving = up
ata1.00:=20 disabled
end_request: I/O error, dev sda, sector 0
Buffer I/O = error on=20 device sda, logical block 0
end_request: I/O error, dev sda, sector=20 0
Buffer I/O error on device sda, logical block 0
 unable to = read=20 partition table
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: = Attached=20 scsi generic sg0 type 0
 
 
The = disk is a 120GB=20 Toshiba hard drive, 1.5Gbps SATA.
 
I = found that someone=20 had a similar problem when going to a newer kernel:
 
http://lists-archives.org/linux= -kernel/19814689-about-synopsys-designware-cores-dwc-sata-host-driver.htm= l
 
Has this been fixed?=20 We weren't sure if this patch ever happened, and if so, where we = could=20 get it. 
 
 
-Thomas Bachman
-Annapolis Micro Systems,=20 Inc.
------=_NextPart_000_00D6_01CA0BB1.1CDBE350--