aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-08-27 09:23:18 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-10-31 01:45:06 -0400
commit9ce8e3073d9cfd6f859c22a25441db41b85cbf6e (patch)
tree81ddeb3d7203677b541b132b4ed8a909137d7ccf /drivers/ata/libata-core.c
parentb9d5b89b487517cbd4cb4702da829e07ef9e4432 (diff)
libata: add whitelist for devices with known good pata-sata bridges
libata currently imposes a UDMA5 max transfer rate and 200 sector max transfer size for SATA devices that sit behind a pata-sata bridge. Lots of devices have known good bridges that don't need this limit applied. The MTRON SSD disks are such devices. Transfer rates are increased by 20-30% with the restriction removed. So add a "blacklist" entry for the MTRON devices, with a flag indicating that the bridge is known good. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r--drivers/ata/libata-core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 8824c8da3f2f..82af7011f2dd 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -2158,6 +2158,10 @@ retry:
2158static inline u8 ata_dev_knobble(struct ata_device *dev) 2158static inline u8 ata_dev_knobble(struct ata_device *dev)
2159{ 2159{
2160 struct ata_port *ap = dev->link->ap; 2160 struct ata_port *ap = dev->link->ap;
2161
2162 if (ata_dev_blacklisted(dev) & ATA_HORKAGE_BRIDGE_OK)
2163 return 0;
2164
2161 return ((ap->cbl == ATA_CBL_SATA) && (!ata_id_is_sata(dev->id))); 2165 return ((ap->cbl == ATA_CBL_SATA) && (!ata_id_is_sata(dev->id)));
2162} 2166}
2163 2167
@@ -4062,6 +4066,9 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
4062 { "TSSTcorp CDDVDW SH-S202N", "SB00", ATA_HORKAGE_IVB, }, 4066 { "TSSTcorp CDDVDW SH-S202N", "SB00", ATA_HORKAGE_IVB, },
4063 { "TSSTcorp CDDVDW SH-S202N", "SB01", ATA_HORKAGE_IVB, }, 4067 { "TSSTcorp CDDVDW SH-S202N", "SB01", ATA_HORKAGE_IVB, },
4064 4068
4069 /* Devices that do not need bridging limits applied */
4070 { "MTRON MSP-SATA*", NULL, ATA_HORKAGE_BRIDGE_OK, },
4071
4065 /* End Marker */ 4072 /* End Marker */
4066 { } 4073 { }
4067}; 4074};