From: Tejun Heo <htejun@gmail.com>
To: Greg KH <greg@kroah.com>
Cc: jgarzik@pobox.com, linux-ide@vger.kernel.org
Subject: Re: long boot delay for SATA cdrom on current 2.6.17-git
Date: Fri, 30 Jun 2006 14:26:33 +0900 [thread overview]
Message-ID: <20060630052633.GF23844@htj.dyndns.org> (raw)
In-Reply-To: <20060630052021.GA4722@kroah.com>
On Thu, Jun 29, 2006 at 10:20:22PM -0700, Greg KH wrote:
> On Fri, Jun 30, 2006 at 01:49:12PM +0900, Tejun Heo wrote:
> > On Thu, Jun 29, 2006 at 07:53:41PM -0700, Greg KH wrote:
> > > This laptop does not have a SATA hard drive, only a SATA cdrom drive.
> > > I've included the boot log below and trimmed it after the delay
> > > happened, as I doubt anything after it would be relevant.
> > >
> > > Is there any patch I can test to help fix this?
> >
> > This seems to be the ghost device problem which occurs when the first
> > device is ATAPI but the second slot is empty.
> >
> > > My .config is also attached, if that helps any.
> >
> > Please try the following patch.
>
> Yeah, that worked great, no timeout issues anymore! Do you want to see
> the boot log again from this?
Great. :-)
I don't need the successful boot log but I want to see why it wasn't a
problem in 2.6.17. Can you apply the following patch to 2.6.17 and
post the result?
Thanks.
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index b046ffa..35f4721 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -2193,7 +2193,7 @@ int ata_std_softreset(struct ata_port *a
unsigned int devmask = 0, err_mask;
u8 err;
- DPRINTK("ENTER\n");
+ DPRINTK("ENTER ata%u\n", ap->id);
if (ap->ops->scr_read && !sata_dev_present(ap)) {
classes[0] = ATA_DEV_NONE;
diff --git a/include/linux/libata.h b/include/linux/libata.h
index b80d2e7..b6b21f6 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -38,7 +38,7 @@ #include <linux/workqueue.h>
* compile-time options: to be removed as soon as all the drivers are
* converted to the new debugging mechanism
*/
-#undef ATA_DEBUG /* debugging output */
+#define ATA_DEBUG /* debugging output */
#undef ATA_VERBOSE_DEBUG /* yet more debugging output */
#undef ATA_IRQ_TRAP /* define to ack screaming irqs */
#undef ATA_NDEBUG /* define to disable quick runtime checks */
next prev parent reply other threads:[~2006-06-30 5:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-30 2:53 long boot delay for SATA cdrom on current 2.6.17-git Greg KH
2006-06-30 4:49 ` Tejun Heo
2006-06-30 5:10 ` Greg KH
2006-06-30 5:20 ` Greg KH
2006-06-30 5:26 ` Tejun Heo [this message]
2006-06-30 22:10 ` Greg KH
2006-07-08 15:19 ` Tejun Heo
2006-07-11 2:30 ` Albert Lee
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=20060630052633.GF23844@htj.dyndns.org \
--to=htejun@gmail.com \
--cc=greg@kroah.com \
--cc=jgarzik@pobox.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).