1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22 /* 23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #pragma ident "%Z%%M% %I% %E% SMI" 28 29 #include <sys/types.h> 30 #include <sys/param.h> 31 #include <sys/debug.h> 32 #include <sys/pci.h> 33 34 #include "ata_blacklist.h" 35 36 pcibl_t ata_pciide_blacklist[] = { 37 /* 38 * The Nat SEMI PC87415 doesn't handle data and status byte 39 * synchornization correctly if an I/O error occurs that 40 * stops the request before the last sector. I think it can 41 * cause lockups. See section 7.4.5.3 of the PC87415 spec. 42 * It's also rumored to be a "single fifo" type chip that can't 43 * DMA on both channels correctly. 44 */ 45 { 0x100b, 0xffff, 0x2, 0xffff, ATA_BL_BOGUS}, 46 47 /* 48 * The CMD chip 0x646 does not support the use of interrupt bit 49 * in the busmaster ide status register when PIO is used. 50 * DMA is explicitly disabled for this legacy chip 51 */ 52 { 0x1095, 0xffff, 0x0646, 0xffff, ATA_BL_BMSTATREG_PIO_BROKEN | 53 ATA_BL_NODMA}, 54 55 /* 56 * Ditto for Serverworks CSB5, CSB6 and BCM5785[HT1000] chips, 57 * but we can handle DMA. Also, when emulating OSB4 mode, 58 * the simplex bit lies! 59 */ 60 { 0x1166, 0xffff, 0x0212, 0xffff, ATA_BL_BMSTATREG_PIO_BROKEN| 61 ATA_BL_NO_SIMPLEX}, 62 { 0x1166, 0xffff, 0x0213, 0xffff, ATA_BL_BMSTATREG_PIO_BROKEN}, 63 { 0x1166, 0xffff, 0x0214, 0xffff, ATA_BL_BMSTATREG_PIO_BROKEN}, 64 65 /* 66 * On Intel ICH5/ICH5R (SATA controller), the simplex bit lies 67 */ 68 { 0x8086, 0xffff, 0x24d1, 0xffff, ATA_BL_NO_SIMPLEX}, 69 { 0x8086, 0xffff, 0x24df, 0xffff, ATA_BL_NO_SIMPLEX}, 70 71 /* 72 * On Intel ICH6/ICH6R/ICH6-M (IDE and SATA controllers), the 73 * simplex bit lies 74 */ 75 { 0x8086, 0xffff, 0x266f, 0xffff, ATA_BL_NO_SIMPLEX}, 76 { 0x8086, 0xffff, 0x2651, 0xffff, ATA_BL_NO_SIMPLEX}, 77 { 0x8086, 0xffff, 0x2652, 0xffff, ATA_BL_NO_SIMPLEX}, 78 { 0x8086, 0xffff, 0x2653, 0xffff, ATA_BL_NO_SIMPLEX}, 79 80 /* 81 * On Intel ICH7 (IDE and SATA(Non-AHCI/Non-RAID, desktop and 82 * mobile)), the simplex bit lies 83 */ 84 { 0x8086, 0xffff, 0x27df, 0xffff, ATA_BL_NO_SIMPLEX}, 85 { 0x8086, 0xffff, 0x27c0, 0xffff, ATA_BL_NO_SIMPLEX}, 86 { 0x8086, 0xffff, 0x27c4, 0xffff, ATA_BL_NO_SIMPLEX}, 87 88 /* 89 * On Intel ICH8 (IDE and SATA(Non-AHCI/Non-RAID, desktop and 90 * mobile)), the simplex bit lies 91 */ 92 { 0x8086, 0xffff, 0x2820, 0xffff, ATA_BL_NO_SIMPLEX}, 93 { 0x8086, 0xffff, 0x2825, 0xffff, ATA_BL_NO_SIMPLEX}, 94 { 0x8086, 0xffff, 0x2828, 0xffff, ATA_BL_NO_SIMPLEX}, 95 { 0x8086, 0xffff, 0x2850, 0xffff, ATA_BL_NO_SIMPLEX}, 96 97 /* 98 * On Intel ICH9 SATA(Non-AHCI/Non-RAID), the simplex bit lies 99 */ 100 { 0x8086, 0xffff, 0x2920, 0xffff, ATA_BL_NO_SIMPLEX}, 101 { 0x8086, 0xffff, 0x2921, 0xffff, ATA_BL_NO_SIMPLEX}, 102 { 0x8086, 0xffff, 0x2926, 0xffff, ATA_BL_NO_SIMPLEX}, 103 104 /* 105 * The ITE 8211F requires some special initialization to get DMA 106 * working that does not fit into the current ata driver model. 107 * This makes it work in PIO mode. 108 */ 109 { 0x1283, 0xffff, 0x8211, 0xffff, ATA_BL_NODMA}, 110 111 { 0, 0, 0, 0, 0 } 112 }; 113 114 /* 115 * add drives that have DMA or other problems to this list 116 */ 117 118 atabl_t ata_drive_blacklist[] = { 119 { "NEC CD-ROM DRIVE:260", ATA_BL_1SECTOR }, 120 { "NEC CD-ROM DRIVE:272", ATA_BL_1SECTOR }, 121 { "NEC CD-ROM DRIVE:273", ATA_BL_1SECTOR }, 122 123 { /* Mitsumi */ "FX001DE", ATA_BL_1SECTOR }, 124 125 { "fubar", 126 (ATA_BL_NODMA | 127 ATA_BL_1SECTOR | 128 ATA_BL_NORVRT | 129 ATA_BL_BOGUS | 130 ATA_BL_BMSTATREG_PIO_BROKEN) 131 }, 132 133 /* Known drives that have DMA problems */ 134 { "SAMSUNG CD-ROM SN-124", ATA_BL_NODMA }, 135 { "SAMSUNG CDRW/DVD SM-352F", ATA_BL_NODMA }, 136 137 NULL 138 }; 139