Skip to content

Commit c611bed

Browse files
Alan CoxJeff Garzik
authored andcommitted
ata_piix: ICH7 does not support correct MWDMA timings
See Errata documentation. The recommended workaround is to use PIO4 instead which will we automatically do by flagging this mode not available. Signed-off-by: Alan Cox <alan.cox@linux.intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
1 parent ea7a5ed commit c611bed

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

‎drivers/ata/ata_piix.c‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
* ICH2 spec c #20 - IDE PRD must not cross a 64K boundary
7373
* and must be dword aligned
7474
* ICH2 spec c #24 - UDMA mode 4,5 t85/86 should be 6ns not 3.3
75+
* ICH7 errata #16 - MWDMA1 timings are incorrect
7576
*
7677
* Should have been BIOS fixed:
7778
* 450NX: errata #19 - DMA hangs on old 450NX
@@ -94,7 +95,7 @@
9495
#include <linux/dmi.h>
9596

9697
#define DRV_NAME "ata_piix"
97-
#define DRV_VERSION "2.12"
98+
#define DRV_VERSION "2.13"
9899

99100
enum {
100101
PIIX_IOCFG = 0x54, /* IDE I/O configuration register */
@@ -136,6 +137,7 @@ enum piix_controller_ids {
136137
ich_pata_33, /* ICH up to UDMA 33 only */
137138
ich_pata_66, /* ICH up to 66 Mhz */
138139
ich_pata_100, /* ICH up to UDMA 100 */
140+
ich_pata_100_nomwdma1, /* ICH up to UDMA 100 but with no MWDMA1*/
139141
ich5_sata,
140142
ich6_sata,
141143
ich6m_sata,
@@ -216,8 +218,8 @@ static const struct pci_device_id piix_pci_tbl[] = {
216218
/* ICH6 (and 6) (i915) UDMA 100 */
217219
{ 0x8086, 0x266F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich_pata_100 },
218220
/* ICH7/7-R (i945, i975) UDMA 100*/
219-
{ 0x8086, 0x27DF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich_pata_100 },
220-
{ 0x8086, 0x269E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich_pata_100 },
221+
{ 0x8086, 0x27DF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich_pata_100_nomwdma1 },
222+
{ 0x8086, 0x269E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich_pata_100_nomwdma1 },
221223
/* ICH8 Mobile PATA Controller */
222224
{ 0x8086, 0x2850, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich_pata_100 },
223225

@@ -487,6 +489,15 @@ static struct ata_port_info piix_port_info[] = {
487489
.port_ops = &ich_pata_ops,
488490
},
489491

492+
[ich_pata_100_nomwdma1] =
493+
{
494+
.flags = PIIX_PATA_FLAGS | PIIX_FLAG_CHECKINTR,
495+
.pio_mask = ATA_PIO4,
496+
.mwdma_mask = ATA_MWDMA2_ONLY,
497+
.udma_mask = ATA_UDMA5,
498+
.port_ops = &ich_pata_ops,
499+
},
500+
490501
[ich5_sata] =
491502
{
492503
.flags = PIIX_SATA_FLAGS,

0 commit comments

Comments
 (0)