From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
LKML <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
"Thomas Lindroth" <thomas.lindroth@gmail.com>
Subject: Re: 2.6.24-rc2: Reported regressions from 2.6.23 (updated)
Date: Sun, 11 Nov 2007 23:22:15 +0100 [thread overview]
Message-ID: <200711112322.15537.bzolnier@gmail.com> (raw)
In-Reply-To: <20071111200935.1384c24d@the-village.bc.nu>
On Sunday 11 November 2007, Alan Cox wrote:
> > Subject : 2.6.24-rc1: pata_amd fails to detect 80-pin wire
> > Submitter : "Thomas Lindroth" <thomas.lindroth@gmail.com>
> > References : http://lkml.org/lkml/2007/11/7/152
> > http://bugzilla.kernel.org/show_bug.cgi?id=9322
http://lkml.org/lkml/2007/10/12/537
The regression itself has been foreseen a month ago and it is quite
sad that it is still not fixed...
> Tejun is looking into this - its not trivial so may be 2.6.25 material.
> Similar reports for some other controllers (notably VIA).
We may fix the regression in a bit different way for now and give Tejun
some more time for the complete rework of the cable detection code.
[PATCH] pata_amd/pata_via: de-couple programming of PIO/MWDMA and UDMA timings
* Don't program UDMA timings when programming PIO or MWDMA modes.
This has also a nice side-effect of fixing regression added by commit
681c80b5d96076f447e8101ac4325c82d8dce508 ("libata: correct handling of
SRST reset sequences") (->set_piomode method for PIO0 is called before
->cable_detect method which checks UDMA timings to get the cable type).
* Bump driver version.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
Untested, please don't merge until it is confirmed to fix the problem.
drivers/ata/pata_amd.c | 5 +++--
drivers/ata/pata_via.c | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
Index: b/drivers/ata/pata_amd.c
===================================================================
--- a/drivers/ata/pata_amd.c
+++ b/drivers/ata/pata_amd.c
@@ -25,7 +25,7 @@
#include <linux/libata.h>
#define DRV_NAME "pata_amd"
-#define DRV_VERSION "0.3.9"
+#define DRV_VERSION "0.3.10"
/**
* timing_setup - shared timing computation and load
@@ -115,7 +115,8 @@ static void timing_setup(struct ata_port
}
/* UDMA timing */
- pci_write_config_byte(pdev, offset + 0x10 + (3 - dn), t);
+ if (at.udma)
+ pci_write_config_byte(pdev, offset + 0x10 + (3 - dn), t);
}
/**
Index: b/drivers/ata/pata_via.c
===================================================================
--- a/drivers/ata/pata_via.c
+++ b/drivers/ata/pata_via.c
@@ -63,7 +63,7 @@
#include <linux/dmi.h>
#define DRV_NAME "pata_via"
-#define DRV_VERSION "0.3.2"
+#define DRV_VERSION "0.3.3"
/*
* The following comes directly from Vojtech Pavlik's ide/pci/via82cxxx
@@ -296,7 +296,7 @@ static void via_do_set_mode(struct ata_p
}
/* Set UDMA unless device is not UDMA capable */
- if (udma_type) {
+ if (udma_type && t.udma) {
u8 cable80_status;
/* Get 80-wire cable detection bit */
next prev parent reply other threads:[~2007-11-11 22:16 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-11 19:58 2.6.24-rc2: Reported regressions from 2.6.23 (updated) Rafael J. Wysocki
2007-11-11 20:09 ` Alan Cox
2007-11-11 20:34 ` Rafael J. Wysocki
2007-11-11 22:22 ` Bartlomiej Zolnierkiewicz [this message]
2007-11-11 22:46 ` Alan Cox
2007-11-13 1:11 ` Andrew Morton
2007-11-13 14:09 ` Thomas Lindroth
[not found] ` <3d08dbff0711130534k702f66ebj1f8e91d107eff2a1@mail.gmail.com>
2007-11-13 19:52 ` Andrew Morton
2007-11-11 20:30 ` Ingo Molnar
2007-11-11 20:33 ` Francois Romieu
2007-11-14 11:20 ` [bug] SLOB crash, 2.6.24-rc2 Ingo Molnar
2007-11-14 17:36 ` Matt Mackall
2007-11-14 18:39 ` Matt Mackall
2007-11-14 19:05 ` Ingo Molnar
2007-11-14 19:42 ` Matt Mackall
2007-11-14 22:39 ` David Miller
2007-11-14 22:53 ` Matt Mackall
2007-11-14 23:10 ` David Miller
2007-11-14 23:37 ` Matt Mackall
2007-11-14 23:41 ` David Miller
2007-11-15 0:09 ` Matt Mackall
2007-11-15 10:43 ` Ingo Molnar
2007-11-15 10:51 ` David Miller
2007-11-15 11:03 ` Ingo Molnar
2007-11-15 11:05 ` David Miller
2007-11-15 10:57 ` Nick Piggin
2007-11-15 11:28 ` Ingo Molnar
2007-11-15 11:32 ` [patch] slob: fix memory corruption Ingo Molnar
2007-11-15 12:48 ` Ingo Molnar
2007-11-15 20:25 ` Nick Piggin
2007-11-15 16:00 ` Matt Mackall
2007-11-15 11:39 ` [bug] SLOB crash, 2.6.24-rc2 Nick Piggin
2007-11-15 12:18 ` Dave Haywood
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=200711112322.15537.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=thomas.lindroth@gmail.com \
--cc=torvalds@linux-foundation.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