linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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: Mon, 21 May 2007 13:50:48 +0200	[thread overview]
Message-ID: <46518798.2020808@gmail.com> (raw)
In-Reply-To: <4650B9E3.7070409@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 901 bytes --]

Robert de Rooy wrote:
> Thanks for looking into this!
> 
> I tried the patches on 2.6.22rc1-git5. The second patch unfortunately
> did not resolve the issue, although it seems to get a bit further. Here
> are the logs.
> 
> ** 2.6.22rc1-git5 + timing-debug.patch

Oh I see.  The 2.6.22rc1-git5 has new reset sequencing which uses
deadline table so it takes 10sec to fail to first reset try while 2.6.21
needs 30secs.  That's where the 20sec difference per each try comes
from, so newer version is better.  Great.

> ** 2.6.22rc1-git5 + timing-debug.patch + disable-dev_init_params.patch
> May 20 23:02:26 localhost kernel: ata3.00: 253696 sectors, multi 0: LBA
> May 20 23:02:56 localhost kernel: ata3.00: qc timeout (cmd 0xef)
> May 20 23:02:56 localhost kernel: ata3.00: failed to set xfermode
> (err_mask=0x4)

Hmmm... It doesn't like SETXFERMASK either.  Please try the attached patch.

-- 
tejun

[-- Attachment #2: disable-dev_init_param-and-setxfermode-for-CFA.patch --]
[-- Type: text/x-patch, Size: 972 bytes --]

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index d5939e6..ad5fd5b 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;
 
@@ -2778,7 +2780,9 @@ static int ata_dev_set_mode(struct ata_d
 	if (dev->xfer_shift == ATA_SHIFT_PIO)
 		dev->flags |= ATA_DFLAG_PIO;
 
-	err_mask = ata_dev_set_xfermode(dev);
+	err_mask = 0;
+	if (!(dev->xfer_shift == ATA_SHIFT_PIO && ata_id_is_cfa(dev->id)))
+		err_mask = ata_dev_set_xfermode(dev);
 	/* Old CFA may refuse this command, which is just fine */
 	if (dev->xfer_shift == ATA_SHIFT_PIO && ata_id_is_cfa(dev->id))
         	err_mask &= ~AC_ERR_DEV;

  reply	other threads:[~2007-05-21 11:51 UTC|newest]

Thread overview: 36+ 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
2007-05-20 21:13       ` Robert de Rooy
2007-05-21 11:50         ` Tejun Heo [this message]
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 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
     [not found]                                         ` <466C723C.6000300@gmail.com>
     [not found]                                           ` <20070610221322.GA18196@flint.arm.linux.org.uk>
     [not found]                                             ` <466C7A9F.1080700@rtr.ca>
2007-06-11 22:36                                               ` Robert de Rooy
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=46518798.2020808@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 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).