public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Hancock <hancockr@shaw.ca>
To: Charles Shannon Hendrix <shannon@widomaker.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: sata_nv adma issues
Date: Tue, 12 Jun 2007 17:27:33 -0600	[thread overview]
Message-ID: <466F2BE5.7040700@shaw.ca> (raw)
In-Reply-To: <466ECA55.8020100@widomaker.com>

Charles Shannon Hendrix wrote:
> Ah... I thought I put the error in my post.
> 
> Here is an example:
> 
> Jun 10 19:47:21 daydream kernel: [  174.432000] ata4: timeout waiting 
> for ADMA IDLE, stat=0x400
> Jun 10 19:47:21 daydream kernel: [  174.432000] ata4: timeout waiting 
> for ADMA LEGACY, stat=0x400
> Jun 10 19:47:21 daydream kernel: [  174.432000]          res 
> 40/00:00:00:00:00/0
> 0:00:00:00:00/00 Emask 0x4 (timeout)

Looks like a line or two is missing here, there should be one saying 
what the failed command was. Can you post the full dmesg output from the 
start with these occurrences in it?

> Jun 10 19:47:21 daydream kernel: [  174.744000] ata4: soft resetting port
> Jun 10 19:47:21 daydream kernel: [  174.900000] ata4: SATA link up 1.5 
> Gbps (SStatus 113 SControl 300)
> Jun 10 19:47:21 daydream kernel: [  174.908000] ATA: abnormal status 
> 0xD0 on port 0xf885659c
> Jun 10 19:47:21 daydream kernel: [  174.920000] ATA: abnormal status 
> 0xD0 on port 0xf885659c
> Jun 10 19:47:21 daydream last message repeated 2 times
> Jun 10 19:47:21 daydream kernel: [  174.936000] ata4.00: ata_hpa_resize 
> 1: sectors = 156301488, hpa_sectors = 156301488
> Jun 10 19:47:21 daydream kernel: [  174.944000] ata4.00: ata_hpa_resize 
> 1: sectors = 156301488, hpa_sectors = 156301488
> Jun 10 19:47:21 daydream kernel: [  174.944000] ata4.00: configured for 
> UDMA/133
> Jun 10 19:47:21 daydream kernel: [  174.944000] ata4: EH complete
> Jun 10 19:47:21 daydream kernel: [  174.944000] SCSI device sdb: 
> 156301488 512-byte hdwr sectors (80026 MB)
> Jun 10 19:47:21 daydream kernel: [  174.944000] sdb: Write Protect is off
> Jun 10 19:47:21 daydream kernel: [  174.944000] SCSI device sdb: write 
> cache: enabled, read cache: enabled, doesn't support DPO or FUA
> 
> A lot of people reported this problem.  Basically the driver does this a 
> few times, and then stops.
> 
>> If sata_nv is built modular, then you may need to put:
>>
>> options sata_nv adma=0
> 
> It is, but I thought the kernel command line was still supposed to be 
> able to
> pass options to a module.  That's not correct?

It really should, but I don't think it does.

> 
> Anyway, I'll create a new init ramdisk with the module option set and 
> see how that works.
> 
>> However I should point out that adma=0 is a poor workaround, it would 
>> be better to find the real cause of the problem.
> 
> Agreed.
> 
> However, I tried all the patches and workarounds before, and had to give 
> up to get work done.
> 
> It has happened across two different motherboards, and on two drives.
> 
> Right now it happens with my second drive (I have two identical Seagate 
> SATA drives).  The last time I had adma enabled, it was the first drive.
> 
> No idea why it would be one drive one time and the other one a different 
> time.
> 
>> Please post the dmesg output from when this happens. If it starts 
>> working after the kernel disables NCQ, then it might mean that your 
>> drive has some problems with NCQ..
> 
> See above for dmesg output.
> 
> If that were true, then why would NCQ work perfectly under Windows?  
> Neither drive has issues there.
> 
> If the drives are at fault, then shouldn't they have the problem 
> regardless of the OS running?
> 
> FreeBSD had no trouble either.
> 
> Linux didn't have trouble until the 2.6.20 kernel.

There was no support for ADMA or NCQ on these controllers in Linux until 
2.6.20.

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/


  parent reply	other threads:[~2007-06-13  0:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.FTA/czKnA9MrTZ9ueGrcQfRm9qs@ifi.uio.no>
2007-06-12  5:55 ` sata_nv adma issues Robert Hancock
     [not found]   ` <466ECA55.8020100@widomaker.com>
2007-06-12 23:27     ` Robert Hancock [this message]
2007-06-11 23:55 Charles Shannon Hendrix

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=466F2BE5.7040700@shaw.ca \
    --to=hancockr@shaw.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shannon@widomaker.com \
    /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