From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: 2.6.24.X: SATA/AHCI related boot delay. - not with 2.6.24.3 Date: Tue, 18 Mar 2008 21:56:02 +0900 Message-ID: <47DFBBE2.7050304@gmail.com> References: <200803091922.33083.volker.armin.hemmann@tu-clausthal.de> <200803170816.50597.volker.armin.hemmann@tu-clausthal.de> <47DF70F3.9080305@gmail.com> <200803181159.48327.volker.armin.hemmann@tu-clausthal.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000704050502030908010800" Return-path: Received: from wr-out-0506.google.com ([64.233.184.231]:44432 "EHLO wr-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752534AbYCRM4c (ORCPT ); Tue, 18 Mar 2008 08:56:32 -0400 Received: by wr-out-0506.google.com with SMTP id c48so4456732wra.1 for ; Tue, 18 Mar 2008 05:56:30 -0700 (PDT) In-Reply-To: <200803181159.48327.volker.armin.hemmann@tu-clausthal.de> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Volker Armin Hemmann Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org This is a multi-part message in MIME format. --------------000704050502030908010800 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Volker Armin Hemmann wrote: > it was for a little bit more than 24h. I booted and rebooted several times to > make sure - and everything was fine, but after a good night and on the Xth > boot, the hang occured again - and since then it is there. Reliable on every > boot :( > (and the softreset failed message on reboots). > Of course, I booted and rebooted several times. And it stays. > > Maybe it is the hardware. But I replaced the cables already and smart says the > disk is ok. Does the attached patch make any difference? >>> Setting AHCI in bios still results in timeouts and harddisks not found. >> Does pci=nomsi help? > > oh yes! > It does. I changed the 'Sata operation mode' setting from 'non raid' to AHCI, > booted with that option: > > the most obvious change are the different interrupts: 23 instead of 315 > (non-raid, without nosmi) or 218 (systemrescuecd 1.0, ahci setting, without > nosmi) Yeah, that sounds about right. Hmm... Can you post the result of "lspci -nn"? -- tejun --------------000704050502030908010800 Content-Type: text/x-patch; name="ahci-no-hrst.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ahci-no-hrst.patch" diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 6978469..5065404 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -402,6 +402,7 @@ static const struct ata_port_operations ahci_p5wdh_ops = { static const struct ata_port_info ahci_port_info[] = { /* board_ahci */ { + AHCI_HFLAGS (AHCI_HFLAG_NO_PMP), .flags = AHCI_FLAG_COMMON, .link_flags = AHCI_LFLAG_COMMON, .pio_mask = 0x1f, /* pio0-4 */ @@ -1863,7 +1864,7 @@ static void ahci_error_handler(struct ata_port *ap) /* perform recovery */ sata_pmp_do_eh(ap, ata_std_prereset, ahci_softreset, - ahci_hardreset, ahci_postreset, + NULL/*ahci_hardreset*/, ahci_postreset, sata_pmp_std_prereset, ahci_pmp_softreset, sata_pmp_std_hardreset, sata_pmp_std_postreset); } --------------000704050502030908010800--