diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-04 12:27:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-12 11:15:47 -0400 |
commit | 9eb07a7fb8a90ee39fa9d5489afc0330cfcfbea7 (patch) | |
tree | 2d034ec31225f2b82267ab3e081c4e8263e7b85f /drivers/edac/i5000_edac.c | |
parent | 03f7eae80f4b913929be84e0c883ee98196fd6ff (diff) |
edac: edac_mc_handle_error(): add an error_count parameter
In order to avoid loosing error events, it is desirable to group
error events together and generate a single trace for several identical
errors.
The trace API already allows reporting multiple errors. Change the
handle_error function to also allow that.
The changes at the drivers were made by this small script:
$file .=$_ while (<>);
$file =~ s/(edac_mc_handle_error)\s*\(([^\,]+)\,([^\,]+)\,/$1($2,$3, 1,/g;
print $file;
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/i5000_edac.c')
-rw-r--r-- | drivers/edac/i5000_edac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/edac/i5000_edac.c b/drivers/edac/i5000_edac.c index 0406f0d4dd2f..a5c33df520ac 100644 --- a/drivers/edac/i5000_edac.c +++ b/drivers/edac/i5000_edac.c | |||
@@ -519,7 +519,7 @@ static void i5000_process_fatal_error_info(struct mem_ctl_info *mci, | |||
519 | bank, ras, cas, allErrors, specific); | 519 | bank, ras, cas, allErrors, specific); |
520 | 520 | ||
521 | /* Call the helper to output message */ | 521 | /* Call the helper to output message */ |
522 | edac_mc_handle_error(HW_EVENT_ERR_FATAL, mci, 0, 0, 0, | 522 | edac_mc_handle_error(HW_EVENT_ERR_FATAL, mci, 1, 0, 0, 0, |
523 | channel >> 1, channel & 1, rank, | 523 | channel >> 1, channel & 1, rank, |
524 | rdwr ? "Write error" : "Read error", | 524 | rdwr ? "Write error" : "Read error", |
525 | msg); | 525 | msg); |
@@ -618,7 +618,7 @@ static void i5000_process_nonfatal_error_info(struct mem_ctl_info *mci, | |||
618 | rank, bank, ras, cas, ue_errors, specific); | 618 | rank, bank, ras, cas, ue_errors, specific); |
619 | 619 | ||
620 | /* Call the helper to output message */ | 620 | /* Call the helper to output message */ |
621 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 0, 0, 0, | 621 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, 0, 0, 0, |
622 | channel >> 1, -1, rank, | 622 | channel >> 1, -1, rank, |
623 | rdwr ? "Write error" : "Read error", | 623 | rdwr ? "Write error" : "Read error", |
624 | msg); | 624 | msg); |
@@ -672,7 +672,7 @@ static void i5000_process_nonfatal_error_info(struct mem_ctl_info *mci, | |||
672 | specific); | 672 | specific); |
673 | 673 | ||
674 | /* Call the helper to output message */ | 674 | /* Call the helper to output message */ |
675 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 0, 0, 0, | 675 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, 0, 0, 0, |
676 | channel >> 1, channel % 2, rank, | 676 | channel >> 1, channel % 2, rank, |
677 | rdwr ? "Write error" : "Read error", | 677 | rdwr ? "Write error" : "Read error", |
678 | msg); | 678 | msg); |
@@ -718,7 +718,7 @@ static void i5000_process_nonfatal_error_info(struct mem_ctl_info *mci, | |||
718 | "Err=%#x (%s)", misc_errors, specific); | 718 | "Err=%#x (%s)", misc_errors, specific); |
719 | 719 | ||
720 | /* Call the helper to output message */ | 720 | /* Call the helper to output message */ |
721 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 0, 0, 0, | 721 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, 0, 0, 0, |
722 | branch >> 1, -1, -1, | 722 | branch >> 1, -1, -1, |
723 | "Misc error", msg); | 723 | "Misc error", msg); |
724 | } | 724 | } |