linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Hancock <hancockrwd@gmail.com>
To: Marc Dionne <marc.c.dionne@gmail.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-ide@vger.kernel.org, garzik@redhat.com
Subject: Re: Hang during boot, bisected to commit 96d60303fd
Date: Thu, 03 Jun 2010 21:42:03 -0600	[thread overview]
Message-ID: <4C08760B.8050002@gmail.com> (raw)
In-Reply-To: <AANLkTikpv86r5BBPCEOHujpm8uCgY0DxghSKjBufBWiM@mail.gmail.com>

On 06/03/2010 07:21 PM, Marc Dionne wrote:
> On Wed, Jun 2, 2010 at 10:00 PM, Matthew Garrett<mjg59@srcf.ucam.org>  wrote:
>> On Wed, Jun 02, 2010 at 09:49:27PM -0400, Marc Dionne wrote:
>>>     Since somewhere early in the 2.6.35 merge window I've been seeing a hang
>>>     during boot.  The hang last roughly 30 seconds and is followed by this:
>>>
>>>     ata4.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
>>>     ata4.00: failed command: READ FPDMA QUEUED
>>>     ata4.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
>>>              res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
>>>     ata4.00: status: { DRDY }
>>>     ata4: hard resetting link
>>>     ahci_is_device_present: status is: 80
>>>     ahci_is_device_present: status(2) is: 3
>>>     ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>>>     ata4.00: configured for UDMA/133
>>>     ata4.00: device reported invalid CHS sector 0
>>>     ata4: EH complete
>>>
>>>     The system works normally once booted.  I had some time to do a bisect
>>>     today and it cleanly ended up pointing to this commit:
>>>         96d60303fd: ahci: Turn off DMA engines when there's no device attached
>>>
>>>     Reverting the commit makes the system boot cleanly as before.  System has
>>>     an Intel ICH10 based board, in AHCI mode, disk is an Intel X25M SSD.
>>
>> Hm, interesting. Jeff, any immediate ideas? I don't see this behaviour
>> on my ICH10. Is there actually a device on ata4?
>>
>> --
>> Matthew Garrett | mjg59@srcf.ucam.org
>
> If it's helpful, attached are the dmesg output following a normal boot
> and one with the hang.
>
> The only difference in the kernel used for those two boots is that the
> return statement in ahci_start_engine following the call to
> ahci_is_device_present is commented out for the normal boot case.
> When the return statement is active, the 30 second hang occurs.

Can you try and put a printk in where it's returning out of the 
ahci_start_engine method? I wonder if that's getting triggered somewhere 
unexpected..

  reply	other threads:[~2010-06-04  3:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTiktNufXK_pn6mP2-zyowAIbHlUy5TGu3AtpALv-@mail.gmail.com>
2010-06-03  2:00 ` Hang during boot, bisected to commit 96d60303fd Matthew Garrett
2010-06-03  2:11   ` Marc Dionne
2010-06-04  1:21   ` Marc Dionne
2010-06-04  3:42     ` Robert Hancock [this message]
2010-06-05  1:23       ` Marc Dionne
2010-06-05  1:37         ` Robert Hancock
2010-06-05  1:45           ` Marc Dionne
2010-06-05  2:01           ` Marc Dionne
2010-06-07  4:34             ` Robert Hancock
2010-06-07  9:22               ` Tejun Heo
2010-06-07 12:21                 ` Marc Dionne
2010-06-07 13:04                   ` Matthew Garrett
2010-06-07 13:09                     ` Tejun Heo

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=4C08760B.8050002@gmail.com \
    --to=hancockrwd@gmail.com \
    --cc=garzik@redhat.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marc.c.dionne@gmail.com \
    --cc=mjg59@srcf.ucam.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).