Hi Here is another patch for SSD for VIA UDMA33. Alan, please backport it into libata. Mikulas --- Don't use UDMA on VIA UDMA33 controller with Transcend SSD The computer locks up if Transcend SSD runs in any of UDMA modes. It doesn't lockup with different brand SSD, so this is specific to Transcend. Signed-off-by: Mikulas Patocka <mpatocka@xxxxxxxxxx> --- drivers/ide/via82cxxx.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) Index: linux-2.6.31.5-fast/drivers/ide/via82cxxx.c =================================================================== --- linux-2.6.31.5-fast.orig/drivers/ide/via82cxxx.c 2009-05-29 22:36:58.000000000 +0200 +++ linux-2.6.31.5-fast/drivers/ide/via82cxxx.c 2009-11-04 22:32:55.000000000 +0100 @@ -195,6 +195,21 @@ static void via_set_pio_mode(ide_drive_t via_set_drive(drive, XFER_PIO_0 + pio); } +static u8 via_udma_filter(ide_drive_t *drive) +{ + char *m = (char *)&drive->id[ATA_ID_PROD]; + + /* + * Restrict UDMA for Transcend flash cards. + * On VIA 33, UDMA locks up. On VIA 133, it works. I can't test other + * controllers. + */ + if (!memcmp(m, "TS", 2) && drive->hwif->ultra_mask == ATA_UDMA2) + return 0; + + return drive->hwif->ultra_mask; +} + static struct via_isa_bridge *via_config_find(struct pci_dev **isa) { struct via_isa_bridge *via_config; @@ -372,6 +387,7 @@ static const struct ide_port_ops via_por .set_pio_mode = via_set_pio_mode, .set_dma_mode = via_set_drive, .cable_detect = via82cxxx_cable_detect, + .udma_filter = via_udma_filter, }; static const struct ide_port_info via82cxxx_chipset __devinitdata = { -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html