[PATCH 2.6.13] Fix pio_mask values
From: Brett Russ (russb_at_emc.com)
Date: 08/30/05
- Previous message: Holger Kiehl: "Re: Where is the performance bottleneck?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Jeff Garzik <jgarzik@pobox.com> Date: Tue, 30 Aug 2005 15:03:09 -0400 (EDT)
ata_get_mode_mask() has PIO modes 3 and 4 as bits 3 and 4 in the pio_mask
since the value read from the drive is shifted left by 3 bits and OR'd with
0x7 (which corresponds to PIO 2-0). Thus, the drivers below need adjustments
to comply with the way pio_mask is used. I left the masks in a state which
agrees with the existing comments; perhaps they all should get 0x1f to
indicate driver support for PIO4-0 but that can be done later.
Signed-off-by: Brett Russ <russb@emc.com>
Index: linux-2.6.13/drivers/scsi/ahci.c
===================================================================
--- linux-2.6.13.orig/drivers/scsi/ahci.c
+++ linux-2.6.13/drivers/scsi/ahci.c
@@ -244,7 +244,7 @@ static struct ata_port_info ahci_port_in
.host_flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
ATA_FLAG_SATA_RESET | ATA_FLAG_MMIO |
ATA_FLAG_PIO_DMA,
- .pio_mask = 0x03, /* pio3-4 */
+ .pio_mask = 0x18, /* pio3-4 */
.udma_mask = 0x7f, /* udma0-6 ; FIXME */
.port_ops = &ahci_ops,
},
Index: linux-2.6.13/drivers/scsi/sata_uli.c
===================================================================
--- linux-2.6.13.orig/drivers/scsi/sata_uli.c
+++ linux-2.6.13/drivers/scsi/sata_uli.c
@@ -120,7 +120,7 @@ static struct ata_port_info uli_port_inf
.sht = &uli_sht,
.host_flags = ATA_FLAG_SATA | ATA_FLAG_SATA_RESET |
ATA_FLAG_NO_LEGACY,
- .pio_mask = 0x03, //support pio mode 4 (FIXME)
+ .pio_mask = 0x10, //support pio mode 4 (FIXME)
.udma_mask = 0x7f, //support udma mode 6
.port_ops = &uli_ops,
};
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Holger Kiehl: "Re: Where is the performance bottleneck?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: [PATCH] readX_relaxed interface
... The drivers have to be rewritten to check each PIO return value ... detecting
the read failure doesn't depend on synchronous errors being ... send the line "unsubscribe
linux-kernel" in ... (Linux-Kernel) - Re: [PATCH] readX_relaxed interface
... I understand it's difficult all drivers use that kind of an interface. ...
> The drivers have to be rewritten to check each PIO return value ... send the line
"unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [PATCH] libata-sff: Dont call bmdma_stop on non DMA capable controllers
... while the case we were discussing was PIO. ... laptop is perfectly happy to
assign PIO resources from zero. ... ide-cs and pata_pcmcia drivers (and indeed most
other drivers AFAICT; ... HARDWARE to special-case address zero - so that making the base/limit
... (Linux-Kernel) - Re: 2.6.10-rc2 on VAIO laptop and PowerMac 8500/G3
... fbdev layer broke some of those old drivers. ... VT mode data structure,
the driver is now sort-of supposed to re-invent ... but I suppose I'll have to fix controlfb
(and platinumfb ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - RE: Driver Model 2 Proposal - Linux Kernel Performance v Usability
... I agree that it is an extra interface ... > Windows has many faults but drivers
are often compatible across ... common users in the Windows world can't handle installing
a driver any better than they would be able to in Linux. ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel)