linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Velu Erwan <erwan@seanodes.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Bruno Harbulot <bruno_harbulot@yahoo.co.uk>, linux-ide@vger.kernel.org
Subject: Re: [PATCH] Re: ATIIXP and libata
Date: Thu, 01 Jun 2006 00:00:25 +0200	[thread overview]
Message-ID: <447E11F9.1030804@seanodes.com> (raw)
In-Reply-To: <20051105152756.86796.qmail@web86805.mail.ukl.yahoo.com>

Bruno Harbulot a écrit :

>I had a closer look at the problem, and I've written the patch for
>ide-iops.c attached to this message. I wasn't sure about using
>hw_config or ata_id_is_sata to read word 93.
>Should other checks be performed? I'm not sure whether there should be
>a test similar to "(ap->cbl == ATA_CBL_SATA)" mentionned in the patch
>posted on this list in "[PATCH] libata ATA vs SATA detection and
>workaround." on 30/09/04.
>  
>
Bartlomiej, I've tried the latest 2.6.17-rc5 and the atiixp still 
doesn't works out of the shelf.
Bruno's patch sounds to integrate the remarks you made about my crappy 
initial patch but it is not integrated.
I've applied it, and uncommenting its ata_id_is_sata() call.
On my ATIIXP (pundit-R), my performances are good ~55MB/sec. Without 
this patch I'm sticked at 14MB/sec.

It is possible to apply that patch upstream to fix this issue ?
This patch applies to 2.6.17-rc5.

--- linux-2.6.17-rc5.20mdk/drivers/ide/ide-iops.c.old    2006-03-20 
06:53:29.000000000 +0100
+++ linux-2.6.17-rc5.20mdk/drivers/ide/ide-iops.c    2006-05-31 
23:51:53.000000000 +0200
@@ -1,6 +1,10 @@
 /*
+ * linux/drivers/ide/ide-iops.c    Version 0.38    Nov 05, 2005
  * linux/drivers/ide/ide-iops.c    Version 0.37    Mar 05, 2003
  *
+ *  Version 0.38        80pin cable detection for SATA drive
+ *                  (bruno_harbulot@yahoo.co.uk)
+ * 
  *  Copyright (C) 2000-2002    Andre Hedrick <andre@linux-ide.org>
  *  Copyright (C) 2003        Red Hat <alan@redhat.com>
  *
@@ -24,6 +28,7 @@
 #include <linux/hdreg.h>
 #include <linux/ide.h>
 #include <linux/bitops.h>
+#include <linux/ata.h>
 
 #include <asm/byteorder.h>
 #include <asm/irq.h>
@@ -595,6 +600,12 @@
  */
 u8 eighty_ninty_three (ide_drive_t *drive)
 {
+    /* On SATA drives, word 93 (i.e. hw_config) should be 0.
+     * This can be tested with the hw_config or this: */
+    if (ata_id_is_sata((u16*)(drive->id)))
+        return 1;
+    if (drive->id->hw_config == 0)
+        return 1;
     if(HWIF(drive)->udma_four == 0)
         return 0;
     if (!(drive->id->hw_config & 0x6000))

  reply	other threads:[~2006-05-31 22:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 23:53 ATIIXP and libata Bruno Harbulot
2005-11-04  9:16 ` Velu Erwan
2005-11-04 10:09   ` Bartlomiej Zolnierkiewicz
2005-11-05 15:32   ` Bruno Harbulot
2005-11-04 10:17 ` Bartlomiej Zolnierkiewicz
2005-11-05 15:27   ` [PATCH] " Bruno Harbulot
2006-05-31 22:00     ` Velu Erwan [this message]
2006-06-07  7:36       ` Nobody cares about the ATIIXP troubles reported since October ? Velu Erwan
2006-06-12 22:23         ` Bruno Harbulot
2006-06-12 22:32       ` [PATCH] Re: ATIIXP and libata Randy.Dunlap
2006-06-19  8:12         ` Velu Erwan
2006-06-19 17:27           ` Randy.Dunlap
2006-06-20  8:57             ` Velu Erwan
2006-06-20 16:57               ` Randy.Dunlap
2005-12-02 10:54   ` Velu Erwan

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=447E11F9.1030804@seanodes.com \
    --to=erwan@seanodes.com \
    --cc=bruno_harbulot@yahoo.co.uk \
    --cc=bzolnier@gmail.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).