linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: "Benjamin S." <sbenni@gmx.de>
Cc: "Huang, Shane" <Shane.Huang@amd.com>,
	Jeff Garzik <jgarzik@pobox.com>,
	linux-ide@vger.kernel.org
Subject: Re: ahci sometimes fails to suspend controller
Date: Mon, 03 Aug 2009 09:06:05 +0900	[thread overview]
Message-ID: <4A7629ED.4050103@kernel.org> (raw)
In-Reply-To: <20090802190838.4a8bd3b8@pluto-lenny.milky.way>

Hello, Benjamin.

Benjamin S. wrote:
> Tejun wanted me to boot with pci=nomsi about 1.5 weeks ago. The system
> was running till yesterday with many suspends and resumes in between. 
> Yesterday the system showed the first error:
> 
> [260353.116321] rtc rtc0: legacy class resume
> [260353.116362] usb usb1: type resume
> [260353.132043] r8169: eth0: link up
> [260353.196041] usb usb2: type resume
> [260353.220057] ata2: SATA link down (SStatus 0 SControl 300)
> [260353.220123] ata4: SATA link down (SStatus 0 SControl 300)
> [260353.220183] ata1: SATA link down (SStatus 0 SControl 300)
> [260353.248034] sd 2:0:0:0: legacy resume
> [260353.248038] sd 2:0:0:0: [sda] Starting disk
> [260358.264018] ata3: link is slow to respond, please be patient (ready=0)
> [260360.056034] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [260360.064939] ata3.00: configured for UDMA/133
> [260360.083650] usb 1-3: type resume
> [260360.086304] ide-cdrom 0.1: legacy resume
> [260360.089322] hdb: host max PIO4 wanted PIO255(auto-tune) selected PIO4
> [260360.090134] hdb: UDMA/33 mode selected
> ...............
> [260360.247321] PM: Finishing wakeup.
> [260360.247323] Restarting tasks ... <3>ata3.00: exception Emask 0x50 SAct 0xff SErr 0x400800 action 0x6 frozen
> [260360.267694] ata3.00: irq_stat 0x08000000, interface fatal error
> [260360.267734] ata3: SError: { HostInt Handshk }
> [260360.267776] ata3.00: cmd 61/08:00:03:b0:6c/00:00:03:00:00/40 tag 0 ncq 4096 out
> [260360.267777]          res 40/00:3c:d3:af:6c/00:00:03:00:00/40 Emask 0x50 (ATA bus error)
...
> 
> Despite this error the system resumed and was able to suspend and resume 
> another three times. Then the system showed the same errors I have seen 
> without pci=nomsi:

The above error is a different one.  It's an ATA bus error - ie, there
was a communication error while the controller was talking to the
drive over the thin long red (why are most of them red anyway?) wire.
This happens from time to time even on a perfectly healthy system and
libata EH should be able to cope with such events just fine.

> [299254.172018] ata3: link is slow to respond, please be patient (ready=0)
> [299255.964034] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
> [299255.980044] sd 2:0:0:0: [sda] START_STOP FAILED
> [299255.980081] sd 2:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
> .........................

Can you please attach full log?  I'm curious what exactly went down.

> Does that mean the SATA MSI quirk won't solve my problem?

I think it's likely a different issue.  Can you please try to
reproduce the problem and see how many tries it usually takes?

Thanks.

-- 
tejun

  reply	other threads:[~2009-08-03  0:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-19 20:04 ahci sometimes fails to suspend controller Benjamin S.
2009-07-23 10:11 ` Tejun Heo
2009-07-27 12:06   ` Benjamin S.
2009-07-28  2:50     ` Tejun Heo
2009-07-28  3:06       ` Huang, Shane
2009-07-28  4:10         ` Benjamin S.
2009-07-28  5:04           ` Huang, Shane
2009-08-02 17:08             ` Benjamin S.
2009-08-03  0:06               ` Tejun Heo [this message]
2009-08-03  8:30                 ` Benjamin S.
2009-08-04  7:02                   ` Tejun Heo
2009-08-04 15:33                     ` Rafael J. Wysocki
2009-08-07  8:50                       ` Benjamin S.
2009-08-08  8:39                         ` Benjamin S.

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=4A7629ED.4050103@kernel.org \
    --to=tj@kernel.org \
    --cc=Shane.Huang@amd.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=sbenni@gmx.de \
    /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).