* PATCH: Fixes for PIIX driver
@ 2006-07-10 16:54 Alan Cox
2006-07-11 14:37 ` Brad Campbell
2006-07-19 18:03 ` Jeff Garzik
0 siblings, 2 replies; 3+ messages in thread
From: Alan Cox @ 2006-07-10 16:54 UTC (permalink / raw)
To: jgarzik, linux-ide, akpm
A couple of cases were mishandled by the PIIX driver because of wrong
entries in tables. This caused some ICH chips to select UDMA33 not the
correct higher UDMA speed. It could also cause the original ICH to
select a mode the controller didn't support and then fail on boot.
Signed-off-by: Alan Cox <alan@redhat.com>
---
drivers/scsi/ata_piix.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
88d42653b87dcf9359c7a7874ce21031b71df117
diff --git a/drivers/scsi/ata_piix.c b/drivers/scsi/ata_piix.c
index 3eb2c86..0f21940 100644
--- a/drivers/scsi/ata_piix.c
+++ b/drivers/scsi/ata_piix.c
@@ -93,7 +93,7 @@
#include <linux/libata.h>
#define DRV_NAME "ata_piix"
-#define DRV_VERSION "2.00ac5"
+#define DRV_VERSION "2.00ac6"
enum {
PIIX_IOCFG = 0x54, /* IDE I/O configuration register */
@@ -412,7 +412,7 @@ static struct ata_port_info piix_port_in
.host_flags = ATA_FLAG_SRST | ATA_FLAG_SLAVE_POSS,
.pio_mask = 0x1f, /* pio 0-4 */
.mwdma_mask = 0x06, /* Check: maybe 0x07 */
- .udma_mask = ATA_UDMA6, /* UDMA133 */
+ .udma_mask = ATA_UDMA2, /* UDMA33 */
.port_ops = &ich_pata_ops,
},
/* ich_pata_66: 2 ICH controllers up to 66MHz */
@@ -431,8 +431,8 @@ static struct ata_port_info piix_port_in
.host_flags = ATA_FLAG_SRST | ATA_FLAG_SLAVE_POSS | PIIX_FLAG_CHECKINTR,
.pio_mask = 0x1f, /* pio0-4 */
.mwdma_mask = 0x06, /* mwdma1-2 */
- .udma_mask = 0x3f, /* udma0-5 */
- .port_ops = &piix_pata_ops,
+ .udma_mask = ATA_UDMA5, /* udma0-5 */
+ .port_ops = &ich_pata_ops,
},
/* ich_pata_133: 4 ICH with full UDMA6 */
--
1.2.GIT
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: PATCH: Fixes for PIIX driver
2006-07-10 16:54 PATCH: Fixes for PIIX driver Alan Cox
@ 2006-07-11 14:37 ` Brad Campbell
2006-07-19 18:03 ` Jeff Garzik
1 sibling, 0 replies; 3+ messages in thread
From: Brad Campbell @ 2006-07-11 14:37 UTC (permalink / raw)
To: Alan Cox; +Cc: jgarzik, linux-ide, akpm
Alan Cox wrote:
> A couple of cases were mishandled by the PIIX driver because of wrong
> entries in tables. This caused some ICH chips to select UDMA33 not the
> correct higher UDMA speed. It could also cause the original ICH to
> select a mode the controller didn't support and then fail on boot.
>
Works for me, and 2.6.18-rc1-mm1 + this patch is the 1st setup that enables fully functioning s2ram
on my Sony Vaio VGN-TX27GP. (In fact, a vanilla 2.6.18-rc1 + the libata patches from -mm + this
patch works a treat).
Ta! :)
Brad
--
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: Fixes for PIIX driver
2006-07-10 16:54 PATCH: Fixes for PIIX driver Alan Cox
2006-07-11 14:37 ` Brad Campbell
@ 2006-07-19 18:03 ` Jeff Garzik
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2006-07-19 18:03 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-ide, akpm
applied
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-07-19 18:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-10 16:54 PATCH: Fixes for PIIX driver Alan Cox
2006-07-11 14:37 ` Brad Campbell
2006-07-19 18:03 ` Jeff Garzik
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).