|
@@ -2478,6 +2478,10 @@ int ata_dev_configure(struct ata_device *dev)
|
|
|
dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128,
|
|
|
dev->max_sectors);
|
|
|
|
|
|
+ if (dev->horkage & ATA_HORKAGE_MAX_SEC_1024)
|
|
|
+ dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_1024,
|
|
|
+ dev->max_sectors);
|
|
|
+
|
|
|
if (dev->horkage & ATA_HORKAGE_MAX_SEC_LBA48)
|
|
|
dev->max_sectors = ATA_MAX_SECTORS_LBA48;
|
|
|
|
|
@@ -4146,6 +4150,12 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
|
|
|
{ "Slimtype DVD A DS8A8SH", NULL, ATA_HORKAGE_MAX_SEC_LBA48 },
|
|
|
{ "Slimtype DVD A DS8A9SH", NULL, ATA_HORKAGE_MAX_SEC_LBA48 },
|
|
|
|
|
|
+ /*
|
|
|
+ * Causes silent data corruption with higher max sects.
|
|
|
+ * http://lkml.kernel.org/g/x49wpy40ysk.fsf@segfault.boston.devel.redhat.com
|
|
|
+ */
|
|
|
+ { "ST380013AS", "3.20", ATA_HORKAGE_MAX_SEC_1024 },
|
|
|
+
|
|
|
/* Devices we expect to fail diagnostics */
|
|
|
|
|
|
/* Devices where NCQ should be avoided */
|