From: Tejun Heo <htejun@gmail.com>
To: Robert de Rooy <robert.de.rooy@gmail.com>
Cc: linux-kernel@vger.kernel.org, alan@redhat.com,
bzolnier@gmail.com, jgarzik@pobox.com
Subject: Re: libata and legacy ide pcmcia failure
Date: Sun, 20 May 2007 13:31:30 +0200 [thread overview]
Message-ID: <46503192.1040300@gmail.com> (raw)
In-Reply-To: <464CB7C9.2080807@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 228 bytes --]
1. Please apply timing-debug.patch on 2.6.22rc1-git5 or later and report
the log with timestamp as before. Let's see why the timeout has doubled.
2. Does the attached disable-dev_init_params.patch fix your problem?
--
tejun
[-- Attachment #2: timing-debug.patch --]
[-- Type: text/x-patch, Size: 1763 bytes --]
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index d5939e6..6e98c85 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1695,8 +1695,10 @@ int ata_dev_read_id(struct ata_device *d
*/
tf.flags |= ATA_TFLAG_POLLING;
+ ata_dev_printk(dev, KERN_INFO, "issuing IDENTIFY\n");
err_mask = ata_exec_internal(dev, &tf, NULL, DMA_FROM_DEVICE,
id, sizeof(id[0]) * ATA_ID_WORDS);
+ ata_dev_printk(dev, KERN_INFO, "IDENTIFY complete\n");
if (err_mask) {
if (err_mask & AC_ERR_NODEV_HINT) {
DPRINTK("ata%u.%d: NODEV after polling detection\n",
@@ -1779,7 +1781,9 @@ int ata_dev_read_id(struct ata_device *d
* Some drives were very specific about that exact sequence.
*/
if (ata_id_major_version(id) < 4 || !ata_id_has_lba(id)) {
+ ata_dev_printk(dev, KERN_INFO, "issuing DEV_INIT_PARAMS\n");
err_mask = ata_dev_init_params(dev, id[3], id[6]);
+ ata_dev_printk(dev, KERN_INFO, "DEV_INIT_PARAMS complete\n");
if (err_mask) {
rc = -EIO;
reason = "INIT_DEV_PARAMS failed";
@@ -6369,7 +6373,7 @@ int ata_host_register(struct ata_host *h
ehi->probe_mask = (1 << ATA_MAX_DEVICES) - 1;
ehi->action |= ATA_EH_SOFTRESET;
- ehi->flags |= ATA_EHI_NO_AUTOPSY | ATA_EHI_QUIET;
+ ehi->flags |= ATA_EHI_NO_AUTOPSY/* | ATA_EHI_QUIET*/;
ap->pflags &= ~ATA_PFLAG_INITIALIZING;
ap->pflags |= ATA_PFLAG_LOADING;
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 5309c31..99b573e 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -1980,6 +1980,7 @@ static int ata_eh_recover(struct ata_por
"reset failed, giving up\n");
goto out;
}
+ ata_port_printk(ap, KERN_INFO, "reset complete\n");
ata_eh_thaw_port(ap);
}
[-- Attachment #3: disable-dev_init_params.patch --]
[-- Type: text/x-patch, Size: 508 bytes --]
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index d5939e6..25677f4 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1769,6 +1769,7 @@ int ata_dev_read_id(struct ata_device *d
goto retry;
}
+#if 0
if ((flags & ATA_READID_POSTRESET) && class == ATA_DEV_ATA) {
/*
* The exact sequence expected by certain pre-ATA4 drives is:
@@ -1793,6 +1794,7 @@ int ata_dev_read_id(struct ata_device *d
goto retry;
}
}
+#endif
*p_class = class;
next prev parent reply other threads:[~2007-05-20 11:32 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-15 18:59 libata pcmcia failure Robert de Rooy
2007-05-17 8:42 ` Robert de Rooy
2007-05-17 20:15 ` libata and legacy ide " Robert de Rooy
2007-05-20 11:31 ` Tejun Heo [this message]
2007-05-20 21:13 ` Robert de Rooy
2007-05-21 11:50 ` Tejun Heo
2007-05-21 12:37 ` Alan Cox
2007-05-21 12:42 ` Tejun Heo
2007-05-21 15:10 ` Robert de Rooy
2007-05-21 15:18 ` Tejun Heo
2007-05-21 16:11 ` Robert de Rooy
2007-05-21 16:22 ` Tejun Heo
2007-05-21 17:16 ` Robert de Rooy
2007-05-21 21:12 ` Jeff Garzik
2007-05-22 19:37 ` Robert de Rooy
2007-05-23 14:02 ` Alan Cox
2007-05-23 18:47 ` Robert de Rooy
2007-06-06 20:27 ` Robert de Rooy
2007-06-07 7:28 ` Tejun Heo
2007-06-07 19:22 ` Robert de Rooy
2007-06-08 7:10 ` Tejun Heo
2007-06-08 12:46 ` Mark Lord
2007-06-08 12:46 ` Mark Lord
2007-06-08 22:06 ` Robert de Rooy
2007-06-08 22:11 ` Mark Lord
2007-06-10 1:01 ` Robert de Rooy
2007-06-10 20:46 ` Mark Lord
2007-06-10 21:50 ` Robert de Rooy
2007-06-10 22:13 ` Russell King
2007-06-10 22:26 ` Mark Lord
2007-06-11 22:36 ` Robert de Rooy
2007-06-11 22:40 ` Mark Lord
2007-06-11 22:40 ` Mark Lord
2007-06-12 3:24 ` Tejun Heo
2007-06-13 1:36 ` Albert Lee
2007-06-14 9:39 ` Tejun Heo
2007-06-22 11:51 ` Robert de Rooy
2007-06-22 13:32 ` Mark Lord
2007-06-25 4:04 ` Albert Lee
2007-06-25 9:31 ` Robert de Rooy
2007-06-25 10:15 ` 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=46503192.1040300@gmail.com \
--to=htejun@gmail.com \
--cc=alan@redhat.com \
--cc=bzolnier@gmail.com \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robert.de.rooy@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.