diff options
Diffstat (limited to 'drivers/edac/mv64x60_edac.c')
-rw-r--r-- | drivers/edac/mv64x60_edac.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/edac/mv64x60_edac.c b/drivers/edac/mv64x60_edac.c index b0bb5a3d2527..2b315c2edc3c 100644 --- a/drivers/edac/mv64x60_edac.c +++ b/drivers/edac/mv64x60_edac.c | |||
@@ -169,7 +169,7 @@ static int __devinit mv64x60_pci_err_probe(struct platform_device *pdev) | |||
169 | MV64X60_PCIx_ERR_MASK_VAL); | 169 | MV64X60_PCIx_ERR_MASK_VAL); |
170 | 170 | ||
171 | if (edac_pci_add_device(pci, pdata->edac_idx) > 0) { | 171 | if (edac_pci_add_device(pci, pdata->edac_idx) > 0) { |
172 | debugf3("%s(): failed edac_pci_add_device()\n", __func__); | 172 | edac_dbg(3, "failed edac_pci_add_device()\n"); |
173 | goto err; | 173 | goto err; |
174 | } | 174 | } |
175 | 175 | ||
@@ -194,7 +194,7 @@ static int __devinit mv64x60_pci_err_probe(struct platform_device *pdev) | |||
194 | devres_remove_group(&pdev->dev, mv64x60_pci_err_probe); | 194 | devres_remove_group(&pdev->dev, mv64x60_pci_err_probe); |
195 | 195 | ||
196 | /* get this far and it's successful */ | 196 | /* get this far and it's successful */ |
197 | debugf3("%s(): success\n", __func__); | 197 | edac_dbg(3, "success\n"); |
198 | 198 | ||
199 | return 0; | 199 | return 0; |
200 | 200 | ||
@@ -210,7 +210,7 @@ static int mv64x60_pci_err_remove(struct platform_device *pdev) | |||
210 | { | 210 | { |
211 | struct edac_pci_ctl_info *pci = platform_get_drvdata(pdev); | 211 | struct edac_pci_ctl_info *pci = platform_get_drvdata(pdev); |
212 | 212 | ||
213 | debugf0("%s()\n", __func__); | 213 | edac_dbg(0, "\n"); |
214 | 214 | ||
215 | edac_pci_del_device(&pdev->dev); | 215 | edac_pci_del_device(&pdev->dev); |
216 | 216 | ||
@@ -336,7 +336,7 @@ static int __devinit mv64x60_sram_err_probe(struct platform_device *pdev) | |||
336 | pdata->edac_idx = edac_dev_idx++; | 336 | pdata->edac_idx = edac_dev_idx++; |
337 | 337 | ||
338 | if (edac_device_add_device(edac_dev) > 0) { | 338 | if (edac_device_add_device(edac_dev) > 0) { |
339 | debugf3("%s(): failed edac_device_add_device()\n", __func__); | 339 | edac_dbg(3, "failed edac_device_add_device()\n"); |
340 | goto err; | 340 | goto err; |
341 | } | 341 | } |
342 | 342 | ||
@@ -363,7 +363,7 @@ static int __devinit mv64x60_sram_err_probe(struct platform_device *pdev) | |||
363 | devres_remove_group(&pdev->dev, mv64x60_sram_err_probe); | 363 | devres_remove_group(&pdev->dev, mv64x60_sram_err_probe); |
364 | 364 | ||
365 | /* get this far and it's successful */ | 365 | /* get this far and it's successful */ |
366 | debugf3("%s(): success\n", __func__); | 366 | edac_dbg(3, "success\n"); |
367 | 367 | ||
368 | return 0; | 368 | return 0; |
369 | 369 | ||
@@ -379,7 +379,7 @@ static int mv64x60_sram_err_remove(struct platform_device *pdev) | |||
379 | { | 379 | { |
380 | struct edac_device_ctl_info *edac_dev = platform_get_drvdata(pdev); | 380 | struct edac_device_ctl_info *edac_dev = platform_get_drvdata(pdev); |
381 | 381 | ||
382 | debugf0("%s()\n", __func__); | 382 | edac_dbg(0, "\n"); |
383 | 383 | ||
384 | edac_device_del_device(&pdev->dev); | 384 | edac_device_del_device(&pdev->dev); |
385 | edac_device_free_ctl_info(edac_dev); | 385 | edac_device_free_ctl_info(edac_dev); |
@@ -531,7 +531,7 @@ static int __devinit mv64x60_cpu_err_probe(struct platform_device *pdev) | |||
531 | pdata->edac_idx = edac_dev_idx++; | 531 | pdata->edac_idx = edac_dev_idx++; |
532 | 532 | ||
533 | if (edac_device_add_device(edac_dev) > 0) { | 533 | if (edac_device_add_device(edac_dev) > 0) { |
534 | debugf3("%s(): failed edac_device_add_device()\n", __func__); | 534 | edac_dbg(3, "failed edac_device_add_device()\n"); |
535 | goto err; | 535 | goto err; |
536 | } | 536 | } |
537 | 537 | ||
@@ -558,7 +558,7 @@ static int __devinit mv64x60_cpu_err_probe(struct platform_device *pdev) | |||
558 | devres_remove_group(&pdev->dev, mv64x60_cpu_err_probe); | 558 | devres_remove_group(&pdev->dev, mv64x60_cpu_err_probe); |
559 | 559 | ||
560 | /* get this far and it's successful */ | 560 | /* get this far and it's successful */ |
561 | debugf3("%s(): success\n", __func__); | 561 | edac_dbg(3, "success\n"); |
562 | 562 | ||
563 | return 0; | 563 | return 0; |
564 | 564 | ||
@@ -574,7 +574,7 @@ static int mv64x60_cpu_err_remove(struct platform_device *pdev) | |||
574 | { | 574 | { |
575 | struct edac_device_ctl_info *edac_dev = platform_get_drvdata(pdev); | 575 | struct edac_device_ctl_info *edac_dev = platform_get_drvdata(pdev); |
576 | 576 | ||
577 | debugf0("%s()\n", __func__); | 577 | edac_dbg(0, "\n"); |
578 | 578 | ||
579 | edac_device_del_device(&pdev->dev); | 579 | edac_device_del_device(&pdev->dev); |
580 | edac_device_free_ctl_info(edac_dev); | 580 | edac_device_free_ctl_info(edac_dev); |
@@ -611,17 +611,17 @@ static void mv64x60_mc_check(struct mem_ctl_info *mci) | |||
611 | 611 | ||
612 | /* first bit clear in ECC Err Reg, 1 bit error, correctable by HW */ | 612 | /* first bit clear in ECC Err Reg, 1 bit error, correctable by HW */ |
613 | if (!(reg & 0x1)) | 613 | if (!(reg & 0x1)) |
614 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, | 614 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, |
615 | err_addr >> PAGE_SHIFT, | 615 | err_addr >> PAGE_SHIFT, |
616 | err_addr & PAGE_MASK, syndrome, | 616 | err_addr & PAGE_MASK, syndrome, |
617 | 0, 0, -1, | 617 | 0, 0, -1, |
618 | mci->ctl_name, "", NULL); | 618 | mci->ctl_name, ""); |
619 | else /* 2 bit error, UE */ | 619 | else /* 2 bit error, UE */ |
620 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, | 620 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, |
621 | err_addr >> PAGE_SHIFT, | 621 | err_addr >> PAGE_SHIFT, |
622 | err_addr & PAGE_MASK, 0, | 622 | err_addr & PAGE_MASK, 0, |
623 | 0, 0, -1, | 623 | 0, 0, -1, |
624 | mci->ctl_name, "", NULL); | 624 | mci->ctl_name, ""); |
625 | 625 | ||
626 | /* clear the error */ | 626 | /* clear the error */ |
627 | out_le32(pdata->mc_vbase + MV64X60_SDRAM_ERR_ADDR, 0); | 627 | out_le32(pdata->mc_vbase + MV64X60_SDRAM_ERR_ADDR, 0); |
@@ -670,8 +670,8 @@ static void mv64x60_init_csrows(struct mem_ctl_info *mci, | |||
670 | 670 | ||
671 | ctl = in_le32(pdata->mc_vbase + MV64X60_SDRAM_CONFIG); | 671 | ctl = in_le32(pdata->mc_vbase + MV64X60_SDRAM_CONFIG); |
672 | 672 | ||
673 | csrow = &mci->csrows[0]; | 673 | csrow = mci->csrows[0]; |
674 | dimm = csrow->channels[0].dimm; | 674 | dimm = csrow->channels[0]->dimm; |
675 | 675 | ||
676 | dimm->nr_pages = pdata->total_mem >> PAGE_SHIFT; | 676 | dimm->nr_pages = pdata->total_mem >> PAGE_SHIFT; |
677 | dimm->grain = 8; | 677 | dimm->grain = 8; |
@@ -724,7 +724,7 @@ static int __devinit mv64x60_mc_err_probe(struct platform_device *pdev) | |||
724 | } | 724 | } |
725 | 725 | ||
726 | pdata = mci->pvt_info; | 726 | pdata = mci->pvt_info; |
727 | mci->dev = &pdev->dev; | 727 | mci->pdev = &pdev->dev; |
728 | platform_set_drvdata(pdev, mci); | 728 | platform_set_drvdata(pdev, mci); |
729 | pdata->name = "mv64x60_mc_err"; | 729 | pdata->name = "mv64x60_mc_err"; |
730 | pdata->irq = NO_IRQ; | 730 | pdata->irq = NO_IRQ; |
@@ -766,7 +766,7 @@ static int __devinit mv64x60_mc_err_probe(struct platform_device *pdev) | |||
766 | goto err2; | 766 | goto err2; |
767 | } | 767 | } |
768 | 768 | ||
769 | debugf3("%s(): init mci\n", __func__); | 769 | edac_dbg(3, "init mci\n"); |
770 | mci->mtype_cap = MEM_FLAG_RDDR | MEM_FLAG_DDR; | 770 | mci->mtype_cap = MEM_FLAG_RDDR | MEM_FLAG_DDR; |
771 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; | 771 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; |
772 | mci->edac_cap = EDAC_FLAG_SECDED; | 772 | mci->edac_cap = EDAC_FLAG_SECDED; |
@@ -790,7 +790,7 @@ static int __devinit mv64x60_mc_err_probe(struct platform_device *pdev) | |||
790 | out_le32(pdata->mc_vbase + MV64X60_SDRAM_ERR_ECC_CNTL, ctl); | 790 | out_le32(pdata->mc_vbase + MV64X60_SDRAM_ERR_ECC_CNTL, ctl); |
791 | 791 | ||
792 | if (edac_mc_add_mc(mci)) { | 792 | if (edac_mc_add_mc(mci)) { |
793 | debugf3("%s(): failed edac_mc_add_mc()\n", __func__); | 793 | edac_dbg(3, "failed edac_mc_add_mc()\n"); |
794 | goto err; | 794 | goto err; |
795 | } | 795 | } |
796 | 796 | ||
@@ -815,7 +815,7 @@ static int __devinit mv64x60_mc_err_probe(struct platform_device *pdev) | |||
815 | } | 815 | } |
816 | 816 | ||
817 | /* get this far and it's successful */ | 817 | /* get this far and it's successful */ |
818 | debugf3("%s(): success\n", __func__); | 818 | edac_dbg(3, "success\n"); |
819 | 819 | ||
820 | return 0; | 820 | return 0; |
821 | 821 | ||
@@ -831,7 +831,7 @@ static int mv64x60_mc_err_remove(struct platform_device *pdev) | |||
831 | { | 831 | { |
832 | struct mem_ctl_info *mci = platform_get_drvdata(pdev); | 832 | struct mem_ctl_info *mci = platform_get_drvdata(pdev); |
833 | 833 | ||
834 | debugf0("%s()\n", __func__); | 834 | edac_dbg(0, "\n"); |
835 | 835 | ||
836 | edac_mc_del_mc(&pdev->dev); | 836 | edac_mc_del_mc(&pdev->dev); |
837 | edac_mc_free(mci); | 837 | edac_mc_free(mci); |