<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783"></HEAD>
<BODY>
<DIV><SPAN class=100115619-23072009><FONT size=2 face=Arial>We're trying to use
the SATA interface on our PowerPC460EX. </FONT></SPAN></DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2 face=Arial>We've applied the
following patch<SPAN class=051340620-23072009>:</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2 face=Arial><SPAN
class=051340620-23072009></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2 face=Arial><SPAN
class=051340620-23072009><A
href="http://markmail.org/message/p5kdgzyneuxzdvjh">http://markmail.org/message/p5kdgzyneuxzdvjh</A></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2 face=Arial><SPAN
class=051340620-23072009></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=100115619-23072009><SPAN class=051340620-23072009></SPAN><FONT
face=Arial><FONT size=2><SPAN class=051340620-23072009>Our</SPAN> kernel is
based o<SPAN class=051340620-23072009>n</SPAN> <SPAN
class=051340620-23072009>AMCC's "A</SPAN></FONT></FONT></SPAN><SPAN
class=100115619-23072009><FONT size=2 face=Arial>rches<SPAN
class=051340620-23072009>" eval board</SPAN> distro kernel
(</FONT></SPAN><FONT face=Arial><FONT size=2><SPAN
class=100115619-23072009>2.6.27-rc5</SPAN><SPAN class=100115619-23072009>),
</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=100115619-23072009>and <SPAN
class=051340620-23072009>with this patch, we're </SPAN>able to </SPAN><SPAN
class=100115619-23072009>get the SATA interface up and running, insomuch as
</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=100115619-23072009>it can
discover our </SPAN></FONT></FONT><SPAN class=100115619-23072009><FONT size=2
face=Arial>hard disk. Unfortunately, we're not able to mount, format, or do any
</FONT></SPAN></DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2 face=Arial>other
f</FONT></SPAN><SPAN class=100115619-23072009><FONT size=2 face=Arial>unctions
</FONT></SPAN><SPAN class=100115619-23072009><FONT size=2 face=Arial>with the
disk. We see the following in our logs:</FONT></SPAN></DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2 face=Arial>sata-dwc sata-dwc.0:
sata_dwc_error_intr SCR_ERROR=0x04050002 intpr=0x00000008 status=0x000000<BR>80
dma_intp=0 pending=-1070221560 issued=4 dma_err_status=0x00000000<BR>ata1:
exception Emask 0x30 SAct 0x0 SErr 0x4050002 action 0xe frozen<BR>ata1: SError:
{ RecovComm PHYRdyChg CommWake DevExch }<BR>scsi 0:0:0:0:
Direct-Access ATA TOSHIBA
MK1216GS RS01 PQ: 0 ANSI: 5<BR>sd 0:0:0:0: [sda] 234441648 512-byte hardware
sectors (120034 MB)<BR>sd 0:0:0:0: [sda] Write Protect is off<BR>sd 0:0:0:0:
[sda] Write cache: enabled, read cache: enabled, doesn't support DPO or
FUA<BR>sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)<BR>sd
0:0:0:0: [sda] Write Protect is off<BR>sd 0:0:0:0: [sda] Write cache: enabled,
read cache: enabled, doesn't support DPO or FUA</FONT></SPAN></DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2 face=Arial>ata1.00: exception
Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen<BR>ata1.00: cmd
c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096
in<BR> res
40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)<BR>ata1.00: status: {
DRDY }<BR>ata1: link is slow to respond, please be patient (ready=0)<BR>ata1:
prereset failed (errno=-16)<BR>ata1: reset failed, giving up<BR>ata1.00:
disabled<BR>end_request: I/O error, dev sda, sector 0<BR>Buffer I/O error on
device sda, logical block 0<BR>end_request: I/O error, dev sda, sector
0<BR>Buffer I/O error on device sda, logical block 0<BR> unable to read
partition table<BR>sd 0:0:0:0: [sda] Attached SCSI disk<BR>sd 0:0:0:0: Attached
scsi generic sg0 type 0</FONT></SPAN></DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2 face=Arial>The disk is a 120GB
Toshiba hard drive, 1.5Gbps SATA.</FONT></SPAN></DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2 face=Arial>I found that someone
had a similar problem when going to a newer kernel:</FONT></SPAN></DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2 face=Arial><A
title=blocked::http://lists-archives.org/linux-kernel/19814689-about-synopsys-designware-cores-dwc-sata-host-driver.html
href="http://lists-archives.org/linux-kernel/19814689-about-synopsys-designware-cores-dwc-sata-host-driver.html">http://lists-archives.org/linux-kernel/19814689-about-synopsys-designware-cores-dwc-sata-host-driver.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=100115619-23072009><FONT face=Arial><FONT size=2><SPAN
class=051340620-23072009>Has this been </SPAN><SPAN
class=100115619-23072009><SPAN
class=051340620-23072009>fixed?</SPAN></SPAN><SPAN class=051340620-23072009>
W</SPAN>e weren't sure if this patch ever happened, and if so, where we could
get it. </FONT></FONT></SPAN></DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=100115619-23072009><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=100115619-23072009>
<DIV align=left><FONT face=Arial><FONT size=2><SPAN
class=051340620-23072009>-</SPAN>Thomas Bachman</FONT></FONT></DIV>
<DIV align=left><FONT face=Arial><FONT size=2><SPAN
class=051340620-23072009>-</SPAN>Annapolis Micro Systems,
Inc.</FONT></FONT></DIV></SPAN></DIV></BODY></HTML>