调NANDriver 的linux驱动调到吐血
报错
ata1.00: Drive reports diagnostics failure. This may indicate a drive
ata1.00: fault or invalid emulation. Contact drive vendor for information.
内核源码注释里写着
/* Let the user know. We don't want to disallow opens for
rescue purposes, or in case the vendor is just a blithering idiot */
直接骂制造商是白痴了
以下是黑名单,选型的时候注意了
- static const struct ata_blacklist_entry ata_device_blacklist [] = {
-
/* Devices with DMA related problems under Linux */
-
{ "WDC AC11000H", NULL, ATA_HORKAGE_NODMA },
-
{ "WDC AC22100H", NULL, ATA_HORKAGE_NODMA },
-
{ "WDC AC32500H", NULL, ATA_HORKAGE_NODMA },
-
{ "WDC AC33100H", NULL, ATA_HORKAGE_NODMA },
-
{ "WDC AC31600H", NULL, ATA_HORKAGE_NODMA },
-
{ "WDC AC32100H", "24.09P07", ATA_HORKAGE_NODMA },
-
{ "WDC AC23200L", "21.10N21", ATA_HORKAGE_NODMA },
-
{ "Compaq CRD-8241B", NULL, ATA_HORKAGE_NODMA },
-
{ "CRD-8400B", NULL, ATA_HORKAGE_NODMA },
-
{ "CRD-848[02]B", NULL, ATA_HORKAGE_NODMA },
-
{ "CRD-84", NULL, ATA_HORKAGE_NODMA },
-
{ "SanDisk SDP3B", NULL, ATA_HORKAGE_NODMA },
-
{ "SanDisk SDP3B-64", NULL, ATA_HORKAGE_NODMA },
-
{ "SANYO CD-ROM CRD", NULL, ATA_HORKAGE_NODMA },
-
{ "HITACHI CDR-8", NULL, ATA_HORKAGE_NODMA },
-
{ "HITACHI CDR-8[34]35",NULL, ATA_HORKAGE_NODMA },
-
{ "Toshiba CD-ROM XM-6202B", NULL, ATA_HORKAGE_NODMA },
-
{ "TOSHIBA CD-ROM XM-1702BC", NULL, ATA_HORKAGE_NODMA },
-
{ "CD-532E-A", NULL, ATA_HORKAGE_NODMA },
-
{ "E-IDE CD-ROM CR-840",NULL, ATA_HORKAGE_NODMA },
-
{ "CD-ROM Drive/F5A", NULL, ATA_HORKAGE_NODMA },
-
{ "WPI CDD-820", NULL, ATA_HORKAGE_NODMA },
-
{ "SAMSUNG CD-ROM SC-148C", NULL, ATA_HORKAGE_NODMA },
-
{ "SAMSUNG CD-ROM SC", NULL, ATA_HORKAGE_NODMA },
-
{ "ATAPI CD-ROM DRIVE 40X MAXIMUM",NULL,ATA_HORKAGE_NODMA },
-
{ "_NEC DV5800A", NULL, ATA_HORKAGE_NODMA },
-
{ "SAMSUNG CD-ROM SN-124", "N001", ATA_HORKAGE_NODMA },
-
{ "Seagate STT20000A", NULL, ATA_HORKAGE_NODMA },
-
/* Odd clown on sil3726/4726 PMPs */
-
{ "Config Disk", NULL, ATA_HORKAGE_DISABLE },
-
-
/* Weird ATAPI devices */
-
{ "TORiSAN DVD-ROM DRD-N216", NULL, ATA_HORKAGE_MAX_SEC_128 },
-
{ "QUANTUM DAT DAT72-000", NULL, ATA_HORKAGE_ATAPI_MOD16_DMA },
-
-
/* Devices we expect to fail diagnostics */
-
-
/* Devices where NCQ should be avoided */
-
/* NCQ is slow */
-
{ "WDC WD740ADFD-00", NULL, ATA_HORKAGE_NONCQ },
-
{ "WDC WD740ADFD-00NLR1", NULL, ATA_HORKAGE_NONCQ, },
-
/* http://thread.gmane.org/gmane.linux.ide/14907 */
-
{ "FUJITSU MHT2060BH", NULL, ATA_HORKAGE_NONCQ },
-
/* NCQ is broken */
-
{ "Maxtor *", "BANC*", ATA_HORKAGE_NONCQ },
-
{ "Maxtor 7V300F0", "VA111630", ATA_HORKAGE_NONCQ },
-
{ "ST380817AS", "3.42", ATA_HORKAGE_NONCQ },
-
{ "ST3160023AS", "3.42", ATA_HORKAGE_NONCQ },
-
{ "OCZ CORE_SSD", "02.10104", ATA_HORKAGE_NONCQ },
-
-
/* Seagate NCQ + FLUSH CACHE firmware bug */
-
{ "ST31500341AS", "SD1[5-9]", ATA_HORKAGE_NONCQ |
-
ATA_HORKAGE_FIRMWARE_WARN },
-
-
{ "ST31000333AS", "SD1[5-9]", ATA_HORKAGE_NONCQ |
-
ATA_HORKAGE_FIRMWARE_WARN },
-
-
{ "ST3640[36]23AS", "SD1[5-9]", ATA_HORKAGE_NONCQ |
-
ATA_HORKAGE_FIRMWARE_WARN },
-
-
{ "ST3320[68]13AS", "SD1[5-9]", ATA_HORKAGE_NONCQ |
-
ATA_HORKAGE_FIRMWARE_WARN },
-
-
/* Blacklist entries taken from Silicon Image 3124/3132
-
Windows driver .inf file - also several Linux problem reports */
-
{ "HTS541060G9SA00", "MB3OC60D", ATA_HORKAGE_NONCQ, },
-
{ "HTS541080G9SA00", "MB4OC60D", ATA_HORKAGE_NONCQ, },
-
{ "HTS541010G9SA00", "MBZOC60D", ATA_HORKAGE_NONCQ, },
-
-
/* https://bugzilla.kernel.org/show_bug.cgi?id=15573 */
-
{ "C300-CTFDDAC128MAG", "0001", ATA_HORKAGE_NONCQ, },
-
-
/* devices which puke on READ_NATIVE_MAX */
-
{ "HDS724040KLSA80", "KFAOA20N", ATA_HORKAGE_BROKEN_HPA, },
-
{ "WDC WD3200JD-00KLB0", "WD-WCAMR1130137", ATA_HORKAGE_BROKEN_HPA },
-
{ "WDC WD2500JD-00HBB0", "WD-WMAL71490727", ATA_HORKAGE_BROKEN_HPA },
-
{ "MAXTOR 6L080L4", "A93.0500", ATA_HORKAGE_BROKEN_HPA },
-
-
/* this one allows HPA unlocking but fails IOs on the area */
-
{ "OCZ-VERTEX", "1.30", ATA_HORKAGE_BROKEN_HPA },
-
-
/* Devices which report 1 sector over size HPA */
-
{ "ST340823A", NULL, ATA_HORKAGE_HPA_SIZE, },
-
{ "ST320413A", NULL, ATA_HORKAGE_HPA_SIZE, },
-
{ "ST310211A", NULL, ATA_HORKAGE_HPA_SIZE, },
-
-
/* Devices which get the IVB wrong */
-
{ "QUANTUM FIREBALLlct10 05", "A03.0900", ATA_HORKAGE_IVB, },
-
/* Maybe we should just blacklist TSSTcorp... */
-
{ "TSSTcorp CDDVDW SH-S202[HJN]", "SB0[01]", ATA_HORKAGE_IVB, },
-
-
/* Devices that do not need bridging limits applied */
-
{ "MTRON MSP-SATA*", NULL, ATA_HORKAGE_BRIDGE_OK, },
-
-
/* Devices which aren't very happy with higher link speeds */
-
{ "WD My Book", NULL, ATA_HORKAGE_1_5_GBPS, },
-
-
/*
-
* Devices which choke on SETXFER. Applies only if both the
-
* device and controller are SATA.
-
*/
-
{ "PIONEER DVD-RW DVRTD08", NULL, ATA_HORKAGE_NOSETXFER },
-
{ "PIONEER DVD-RW DVR-212D", NULL, ATA_HORKAGE_NOSETXFER },
-
{ "PIONEER DVD-RW DVR-216D", NULL, ATA_HORKAGE_NOSETXFER },
-
-
/* End Marker */
-
{ }
-
};
阅读(1727) | 评论(0) | 转发(0) |