|
@@ -16,35 +16,33 @@
|
|
struct fbd_ioat {
|
|
struct fbd_ioat {
|
|
unsigned int vendor;
|
|
unsigned int vendor;
|
|
unsigned int ioat_dev;
|
|
unsigned int ioat_dev;
|
|
|
|
+ unsigned int enabled;
|
|
};
|
|
};
|
|
|
|
|
|
/*
|
|
/*
|
|
* The i5000 chip-set has the same hooks as the i7300
|
|
* The i5000 chip-set has the same hooks as the i7300
|
|
- * but support is disabled by default because this driver
|
|
|
|
- * has not been validated on that platform.
|
|
|
|
|
|
+ * but it is not enabled by default and must be manually
|
|
|
|
+ * manually enabled with "forceload=1" because it is
|
|
|
|
+ * only lightly validated.
|
|
*/
|
|
*/
|
|
-#define SUPPORT_I5000 0
|
|
|
|
|
|
|
|
static const struct fbd_ioat fbd_ioat_list[] = {
|
|
static const struct fbd_ioat fbd_ioat_list[] = {
|
|
- {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IOAT_CNB},
|
|
|
|
-#if SUPPORT_I5000
|
|
|
|
- {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IOAT},
|
|
|
|
-#endif
|
|
|
|
|
|
+ {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IOAT_CNB, 1},
|
|
|
|
+ {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IOAT, 0},
|
|
{0, 0}
|
|
{0, 0}
|
|
};
|
|
};
|
|
|
|
|
|
/* table of devices that work with this driver */
|
|
/* table of devices that work with this driver */
|
|
static const struct pci_device_id pci_tbl[] = {
|
|
static const struct pci_device_id pci_tbl[] = {
|
|
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_FBD_CNB) },
|
|
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_FBD_CNB) },
|
|
-#if SUPPORT_I5000
|
|
|
|
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) },
|
|
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) },
|
|
-#endif
|
|
|
|
{ } /* Terminating entry */
|
|
{ } /* Terminating entry */
|
|
};
|
|
};
|
|
|
|
|
|
/* Check for known platforms with I/O-AT */
|
|
/* Check for known platforms with I/O-AT */
|
|
static inline int i7300_idle_platform_probe(struct pci_dev **fbd_dev,
|
|
static inline int i7300_idle_platform_probe(struct pci_dev **fbd_dev,
|
|
- struct pci_dev **ioat_dev)
|
|
|
|
|
|
+ struct pci_dev **ioat_dev,
|
|
|
|
+ int enable_all)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
struct pci_dev *memdev, *dmadev;
|
|
struct pci_dev *memdev, *dmadev;
|
|
@@ -69,6 +67,8 @@ static inline int i7300_idle_platform_probe(struct pci_dev **fbd_dev,
|
|
for (i = 0; fbd_ioat_list[i].vendor != 0; i++) {
|
|
for (i = 0; fbd_ioat_list[i].vendor != 0; i++) {
|
|
if (dmadev->vendor == fbd_ioat_list[i].vendor &&
|
|
if (dmadev->vendor == fbd_ioat_list[i].vendor &&
|
|
dmadev->device == fbd_ioat_list[i].ioat_dev) {
|
|
dmadev->device == fbd_ioat_list[i].ioat_dev) {
|
|
|
|
+ if (!(fbd_ioat_list[i].enabled || enable_all))
|
|
|
|
+ continue;
|
|
if (fbd_dev)
|
|
if (fbd_dev)
|
|
*fbd_dev = memdev;
|
|
*fbd_dev = memdev;
|
|
if (ioat_dev)
|
|
if (ioat_dev)
|