linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Edward Falk <efalk@google.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH linux-2.6.13-rc3] SATA: rewritten sil24 driver
Date: Fri, 05 Aug 2005 11:30:05 +0900	[thread overview]
Message-ID: <42F2CF2D.50500@gmail.com> (raw)
In-Reply-To: <42F263B3.3050509@google.com>

Edward Falk wrote:
> Tejun Heo wrote:
> 
>>  Hi, again, Edward.
>>
>>  Bad news...
>>
>> On Tue, Aug 02, 2005 at 03:56:05PM -0700, Edward Falk wrote:
>>
>>> Again, you would need to fetch them from the returned FIS structure. 
>>> Here's a code fragment derived from SiI's issue_soft_reset() function:
> 
> 
> Yeah, well, that's what I get for sending code fragments I haven't 
> tested.  Stand by, I'll tinker with my own version of the driver and 
> send you an improved fragment.
> 
>     -ed

  One more thing I've found out.  They actually look like valid FIS 
values except for the FIS type.  I missed that as I was looking too hard 
at the FIS type value.

POSTRESET c:p=0080:0000 rc=00000000
fis=01500000:00000001:00000000:00000001
       ^    ^        ^                 ^
      DRDY  |      sect num        sect cnt
        FIS type 0?

  The following is from new driver w/ ATAPI device after SATA phy reset. 
(not softreset)

** POST RESET
c:p=0080:0000 rc=00000000
fis=01000027:00eb1401:00000000:00000001
            ^   ^^^^^^                 ^
       type 27? |----- valid sig ------|

  Also, after command completion, the status/error registers seem to 
carry the correct values.  The following is after issuing 
ATA_DEV_IDENTIFY to a ATAPI device.

** POST INTERRUPT
c:p=ffff:ffff rc=00000000
fis=0451e000:a0eb1400:1f000000:00000003
      ^ ^   ^
   ABRT |  FIS type 00 -_-;;
     DRDY/ERR

  So, it almost seems like I can just ignore the FIS type value. 
However, after a SATA phy reset, a hard disk returns the following.

** POST RESET
c:p=ffff:ffff rc=00000200
fis=0050fc90:e0000000:00000000:00000000

  This doesn't contain valid signature....

  I'll wait for further comment from you.  Thanks a lot.  ;-)

-- 
tejun

  reply	other threads:[~2005-08-05  2:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28  1:36 [PATCH linux-2.6.13-rc3] SATA: rewritten sil24 driver Tejun Heo
2005-07-28 20:27 ` Jeff Garzik
2005-07-30  8:17   ` Tejun Heo
2005-08-02 22:56     ` Edward Falk
2005-08-03  4:09       ` Jeff Garzik
2005-08-03 14:28         ` Tejun Heo
2005-08-04  2:20           ` Tejun Heo
2005-08-04 18:46             ` Edward Falk
2005-08-04  8:51       ` Tejun Heo
2005-08-04 18:51         ` Edward Falk
2005-08-05  2:30           ` Tejun Heo [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-08 17:31 Carlos Pardo
2005-08-08 17:37 ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42F2CF2D.50500@gmail.com \
    --to=htejun@gmail.com \
    --cc=efalk@google.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).