1507c3241Smlf /*
2507c3241Smlf  * CDDL HEADER START
3507c3241Smlf  *
4507c3241Smlf  * The contents of this file are subject to the terms of the
5507c3241Smlf  * Common Development and Distribution License (the "License").
6507c3241Smlf  * You may not use this file except in compliance with the License.
7507c3241Smlf  *
8507c3241Smlf  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9507c3241Smlf  * or http://www.opensolaris.org/os/licensing.
10507c3241Smlf  * See the License for the specific language governing permissions
11507c3241Smlf  * and limitations under the License.
12507c3241Smlf  *
13507c3241Smlf  * When distributing Covered Code, include this CDDL HEADER in each
14507c3241Smlf  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15507c3241Smlf  * If applicable, add the following below this CDDL HEADER, with the
16507c3241Smlf  * fields enclosed by brackets "[]" replaced with your own identifying
17507c3241Smlf  * information: Portions Copyright [yyyy] [name of copyright owner]
18507c3241Smlf  *
19507c3241Smlf  * CDDL HEADER END
20507c3241Smlf  */
21507c3241Smlf 
22507c3241Smlf /*
2311509b17Syt160523  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24507c3241Smlf  * Use is subject to license terms.
25507c3241Smlf  */
26507c3241Smlf 
27507c3241Smlf 
28507c3241Smlf #include <sys/types.h>
29507c3241Smlf #include <sys/param.h>
30507c3241Smlf #include <sys/debug.h>
31507c3241Smlf #include <sys/pci.h>
32507c3241Smlf 
33507c3241Smlf #include "ata_blacklist.h"
34507c3241Smlf 
35507c3241Smlf pcibl_t	ata_pciide_blacklist[] = {
36507c3241Smlf 	/*
37507c3241Smlf 	 * The Nat SEMI PC87415 doesn't handle data and status byte
38507c3241Smlf 	 * synchornization correctly if an I/O error occurs that
39507c3241Smlf 	 * stops the request before the last sector.  I think it can
40507c3241Smlf 	 * cause lockups. See section 7.4.5.3 of the PC87415 spec.
41507c3241Smlf 	 * It's also rumored to be a "single fifo" type chip that can't
42507c3241Smlf 	 * DMA on both channels correctly.
43507c3241Smlf 	 */
44507c3241Smlf 	{ 0x100b, 0xffff, 0x2, 0xffff, ATA_BL_BOGUS},
45507c3241Smlf 
46507c3241Smlf 	/*
47507c3241Smlf 	 * The CMD chip 0x646 does not support the use of interrupt bit
48507c3241Smlf 	 * in the busmaster ide status register when PIO is used.
49507c3241Smlf 	 * DMA is explicitly disabled for this legacy chip
50507c3241Smlf 	 */
51507c3241Smlf 	{ 0x1095, 0xffff, 0x0646, 0xffff, ATA_BL_BMSTATREG_PIO_BROKEN |
52507c3241Smlf 							ATA_BL_NODMA},
53507c3241Smlf 
54507c3241Smlf 	/*
5531a604f9Sdq159996 	 * Ditto for Serverworks CSB5, CSB6 and BCM5785[HT1000] chips,
5631a604f9Sdq159996 	 * but we can handle DMA.  Also, when emulating OSB4 mode,
5731a604f9Sdq159996 	 * the simplex bit lies!
58507c3241Smlf 	 */
59507c3241Smlf 	{ 0x1166, 0xffff, 0x0212, 0xffff, ATA_BL_BMSTATREG_PIO_BROKEN|
60507c3241Smlf 							ATA_BL_NO_SIMPLEX},
61507c3241Smlf 	{ 0x1166, 0xffff, 0x0213, 0xffff, ATA_BL_BMSTATREG_PIO_BROKEN},
6231a604f9Sdq159996 	{ 0x1166, 0xffff, 0x0214, 0xffff, ATA_BL_BMSTATREG_PIO_BROKEN},
63507c3241Smlf 
64b9567a85Sap25164 	/*
65f304523cSzhongyan gu - Sun Microsystems - Beijing China 	 * The  chip 0x24b,which is Broadcom HT1000 SATA controller
66f304523cSzhongyan gu - Sun Microsystems - Beijing China 	 * working in legacy IDE mode, does not support ATAPI DMA
67f304523cSzhongyan gu - Sun Microsystems - Beijing China 	 */
68f304523cSzhongyan gu - Sun Microsystems - Beijing China 	{ 0x1166, 0xffff, 0x024b, 0xffff, ATA_BL_ATAPI_NODMA},
69f304523cSzhongyan gu - Sun Microsystems - Beijing China 
70f304523cSzhongyan gu - Sun Microsystems - Beijing China 	/*
71b9567a85Sap25164 	 * On Intel ICH5/ICH5R (SATA controller), the simplex bit lies
72b9567a85Sap25164 	 */
73b9567a85Sap25164 	{ 0x8086, 0xffff, 0x24d1, 0xffff, ATA_BL_NO_SIMPLEX},
74b9567a85Sap25164 	{ 0x8086, 0xffff, 0x24df, 0xffff, ATA_BL_NO_SIMPLEX},
75b9567a85Sap25164 
76b9567a85Sap25164 	/*
77b9567a85Sap25164 	 * On Intel ICH6/ICH6R/ICH6-M (IDE and SATA controllers), the
78b9567a85Sap25164 	 * simplex bit lies
79b9567a85Sap25164 	 */
80b9567a85Sap25164 	{ 0x8086, 0xffff, 0x266f, 0xffff, ATA_BL_NO_SIMPLEX},
81b9567a85Sap25164 	{ 0x8086, 0xffff, 0x2651, 0xffff, ATA_BL_NO_SIMPLEX},
82b9567a85Sap25164 	{ 0x8086, 0xffff, 0x2652, 0xffff, ATA_BL_NO_SIMPLEX},
83b9567a85Sap25164 	{ 0x8086, 0xffff, 0x2653, 0xffff, ATA_BL_NO_SIMPLEX},
84b9567a85Sap25164 
85b9567a85Sap25164 	/*
86b9567a85Sap25164 	 * On Intel ICH7 (IDE and SATA(Non-AHCI/Non-RAID, desktop and
87b9567a85Sap25164 	 * mobile)), the simplex bit lies
88b9567a85Sap25164 	 */
89b9567a85Sap25164 	{ 0x8086, 0xffff, 0x27df, 0xffff, ATA_BL_NO_SIMPLEX},
90b9567a85Sap25164 	{ 0x8086, 0xffff, 0x27c0, 0xffff, ATA_BL_NO_SIMPLEX},
91b9567a85Sap25164 	{ 0x8086, 0xffff, 0x27c4, 0xffff, ATA_BL_NO_SIMPLEX},
92b9567a85Sap25164 
9311509b17Syt160523 	/*
9411509b17Syt160523 	 * On Intel ICH8 (IDE and SATA(Non-AHCI/Non-RAID, desktop and
9511509b17Syt160523 	 * mobile)), the simplex bit lies
9611509b17Syt160523 	 */
9711509b17Syt160523 	{ 0x8086, 0xffff, 0x2820, 0xffff, ATA_BL_NO_SIMPLEX},
9811509b17Syt160523 	{ 0x8086, 0xffff, 0x2825, 0xffff, ATA_BL_NO_SIMPLEX},
9911509b17Syt160523 	{ 0x8086, 0xffff, 0x2828, 0xffff, ATA_BL_NO_SIMPLEX},
10011509b17Syt160523 	{ 0x8086, 0xffff, 0x2850, 0xffff, ATA_BL_NO_SIMPLEX},
10111509b17Syt160523 
10211509b17Syt160523 	/*
10311509b17Syt160523 	 * On Intel ICH9 SATA(Non-AHCI/Non-RAID), the simplex bit lies
10411509b17Syt160523 	 */
10511509b17Syt160523 	{ 0x8086, 0xffff, 0x2920, 0xffff, ATA_BL_NO_SIMPLEX},
10611509b17Syt160523 	{ 0x8086, 0xffff, 0x2921, 0xffff, ATA_BL_NO_SIMPLEX},
10711509b17Syt160523 	{ 0x8086, 0xffff, 0x2926, 0xffff, ATA_BL_NO_SIMPLEX},
10811509b17Syt160523 
109334edc48Sml40262 	/*
110334edc48Sml40262 	 * The ITE 8211F requires some special initialization to get DMA
111334edc48Sml40262 	 * working that does not fit into the current ata driver model.
112334edc48Sml40262 	 * This makes it work in PIO mode.
113334edc48Sml40262 	 */
114334edc48Sml40262 	{ 0x1283, 0xffff, 0x8211, 0xffff, ATA_BL_NODMA},
115334edc48Sml40262 
116507c3241Smlf 	{ 0, 0, 0, 0, 0 }
117507c3241Smlf };
118507c3241Smlf 
119507c3241Smlf /*
120507c3241Smlf  * add drives that have DMA or other problems to this list
121507c3241Smlf  */
122507c3241Smlf 
123507c3241Smlf atabl_t	ata_drive_blacklist[] = {
124744a0601SLing Albert Ke 	{ "NEC CD-ROM DRIVE:260",	NULL,		ATA_BL_1SECTOR },
125744a0601SLing Albert Ke 	{ "NEC CD-ROM DRIVE:272",	NULL,		ATA_BL_1SECTOR },
126744a0601SLing Albert Ke 	{ "NEC CD-ROM DRIVE:273",	NULL,		ATA_BL_1SECTOR },
127507c3241Smlf 
128744a0601SLing Albert Ke 	{ /* Mitsumi */ "FX001DE",	NULL,		ATA_BL_1SECTOR },
129507c3241Smlf 
130744a0601SLing Albert Ke 	{ "fubar", NULL,
131507c3241Smlf 		(ATA_BL_NODMA |
132507c3241Smlf 		ATA_BL_1SECTOR |
133507c3241Smlf 		ATA_BL_NORVRT |
134507c3241Smlf 		ATA_BL_BOGUS |
135507c3241Smlf 		ATA_BL_BMSTATREG_PIO_BROKEN)
136507c3241Smlf 	},
1374580a57dSdq159996 
1384580a57dSdq159996 	/* Known drives that have DMA problems */
139744a0601SLing Albert Ke 	{ "SAMSUNG CD-ROM SN-124",	NULL,		ATA_BL_NODMA },
140744a0601SLing Albert Ke 	{ "SAMSUNG CDRW/DVD SM-352F",	NULL,		ATA_BL_NODMA },
141744a0601SLing Albert Ke 	{ "QEMU DVD-ROM",		"0.8.1",	ATA_BL_NODMA },
142744a0601SLing Albert Ke 	{ "QEMU DVD-ROM",		"0.8.2",	ATA_BL_NODMA },
143744a0601SLing Albert Ke 	{ "QEMU CD-ROM",		"0.8.1",	ATA_BL_NODMA },
144744a0601SLing Albert Ke 	{ "QEMU CD-ROM",		"0.8.2",	ATA_BL_NODMA },
145*8c112d45SColin Yi 	{ "VMware Virtual IDE Hard Drive", NULL,	ATA_BL_LBA48 },
1464580a57dSdq159996 
147507c3241Smlf 	NULL
148507c3241Smlf };
149