aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-10-14 12:31:06 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-10 11:18:29 -0400
commitf05da2f7855b3b88a831ca79e037245872549ec0 (patch)
tree9408ed06f8d36ec6b1ef107fdc3f5d08691c4bd9 /drivers/edac
parent52a2e4fc3712d12888decd386d78ad526078a1fa (diff)
i7core: add support for Lynnfield alternate address
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/i7core_edac.c13
1 files changed, 11 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 */
323static const struct pci_device_id i7core_pci_tbl[] __devinitdata = { 327static 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,