diff options
-rw-r--r-- | drivers/edac/i7core_edac.c | 13 | ||||
-rw-r--r-- | include/linux/pci_ids.h | 1 |
2 files changed, 12 insertions, 2 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index e525d571cb25..d3f5c016c5eb 100644 --- a/drivers/edac/i7core_edac.c +++ b/drivers/edac/i7core_edac.c | |||
@@ -314,6 +314,10 @@ struct pci_id_descr pci_dev_descr_lynnfield[] = { | |||
314 | { PCI_DESCR( 4, 2, PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_RANK) }, | 314 | { PCI_DESCR( 4, 2, PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_RANK) }, |
315 | { PCI_DESCR( 4, 3, PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_TC) }, | 315 | { PCI_DESCR( 4, 3, PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH1_TC) }, |
316 | 316 | ||
317 | /* | ||
318 | * This is the PCI device has an alternate address on some | ||
319 | * processors like Core i7 860 | ||
320 | */ | ||
317 | { PCI_DESCR( 0, 0, PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE) }, | 321 | { PCI_DESCR( 0, 0, PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE) }, |
318 | }; | 322 | }; |
319 | 323 | ||
@@ -322,7 +326,7 @@ struct pci_id_descr pci_dev_descr_lynnfield[] = { | |||
322 | */ | 326 | */ |
323 | static const struct pci_device_id i7core_pci_tbl[] __devinitdata = { | 327 | static const struct pci_device_id i7core_pci_tbl[] __devinitdata = { |
324 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_X58_HUB_MGMT)}, | 328 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_X58_HUB_MGMT)}, |
325 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE)}, | 329 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_LINK0)}, |
326 | {0,} /* 0 terminated list. */ | 330 | {0,} /* 0 terminated list. */ |
327 | }; | 331 | }; |
328 | 332 | ||
@@ -1209,6 +1213,11 @@ int i7core_get_onedevice(struct pci_dev **prev, int devno, | |||
1209 | pdev = pci_get_device(PCI_VENDOR_ID_INTEL, | 1213 | pdev = pci_get_device(PCI_VENDOR_ID_INTEL, |
1210 | PCI_DEVICE_ID_INTEL_I7_NONCORE_ALT, *prev); | 1214 | PCI_DEVICE_ID_INTEL_I7_NONCORE_ALT, *prev); |
1211 | 1215 | ||
1216 | if (dev_descr->dev_id == PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE && !pdev) | ||
1217 | pdev = pci_get_device(PCI_VENDOR_ID_INTEL, | ||
1218 | PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE_ALT, | ||
1219 | *prev); | ||
1220 | |||
1212 | if (!pdev) { | 1221 | if (!pdev) { |
1213 | if (*prev) { | 1222 | if (*prev) { |
1214 | *prev = pdev; | 1223 | *prev = pdev; |
@@ -1866,7 +1875,7 @@ static int __devinit i7core_probe(struct pci_dev *pdev, | |||
1866 | /* get the pci devices we want to reserve for our use */ | 1875 | /* get the pci devices we want to reserve for our use */ |
1867 | mutex_lock(&i7core_edac_lock); | 1876 | mutex_lock(&i7core_edac_lock); |
1868 | 1877 | ||
1869 | if (pdev->device == PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE) { | 1878 | if (pdev->device == PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_LINK0) { |
1870 | printk(KERN_INFO "i7core_edac: detected a " | 1879 | printk(KERN_INFO "i7core_edac: detected a " |
1871 | "Lynnfield processor\n"); | 1880 | "Lynnfield processor\n"); |
1872 | rc = i7core_get_devices(pci_dev_descr_lynnfield, | 1881 | rc = i7core_get_devices(pci_dev_descr_lynnfield, |
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index ebc0fa4c7a66..e67cb20b8401 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
@@ -2551,6 +2551,7 @@ | |||
2551 | #define PCI_DEVICE_ID_INTEL_I7_NONCORE 0x2c41 | 2551 | #define PCI_DEVICE_ID_INTEL_I7_NONCORE 0x2c41 |
2552 | #define PCI_DEVICE_ID_INTEL_I7_NONCORE_ALT 0x2c40 | 2552 | #define PCI_DEVICE_ID_INTEL_I7_NONCORE_ALT 0x2c40 |
2553 | #define PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE 0x2c50 | 2553 | #define PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE 0x2c50 |
2554 | #define PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE_ALT 0x2c51 | ||
2554 | #define PCI_DEVICE_ID_INTEL_LYNNFIELD_SAD 0x2c81 | 2555 | #define PCI_DEVICE_ID_INTEL_LYNNFIELD_SAD 0x2c81 |
2555 | #define PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_LINK0 0x2c90 | 2556 | #define PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_LINK0 0x2c90 |
2556 | #define PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_PHY0 0x2c91 | 2557 | #define PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_PHY0 0x2c91 |