diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-22 08:06:17 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-11 12:23:51 -0400 |
commit | 075f30901e32feefd3641e6c5537611fd7e27b59 (patch) | |
tree | b09c6e92d49694658892c17fc065925144858d49 /drivers/edac | |
parent | 08a4a136909602eae0e71e147153461df077a46f (diff) |
amd64_edac: Don't pass driver name as an error parameter
The EDAC driver name doesn't help to handle EDAC errors. So,
remove it from the EDAC error messages, preserving only the
error_message.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/amd64_edac.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index b47529554734..811d3e8e5025 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
@@ -1049,8 +1049,8 @@ static void k8_map_sysaddr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr, | |||
1049 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, | 1049 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, |
1050 | page, offset, syndrome, | 1050 | page, offset, syndrome, |
1051 | -1, -1, -1, | 1051 | -1, -1, -1, |
1052 | EDAC_MOD_STR, | ||
1053 | "failed to map error addr to a node", | 1052 | "failed to map error addr to a node", |
1053 | "", | ||
1054 | NULL); | 1054 | NULL); |
1055 | return; | 1055 | return; |
1056 | } | 1056 | } |
@@ -1061,8 +1061,8 @@ static void k8_map_sysaddr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr, | |||
1061 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, | 1061 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, |
1062 | page, offset, syndrome, | 1062 | page, offset, syndrome, |
1063 | -1, -1, -1, | 1063 | -1, -1, -1, |
1064 | EDAC_MOD_STR, | ||
1065 | "failed to map error addr to a csrow", | 1064 | "failed to map error addr to a csrow", |
1065 | "", | ||
1066 | NULL); | 1066 | NULL); |
1067 | return; | 1067 | return; |
1068 | } | 1068 | } |
@@ -1082,8 +1082,8 @@ static void k8_map_sysaddr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr, | |||
1082 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, | 1082 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, |
1083 | page, offset, syndrome, | 1083 | page, offset, syndrome, |
1084 | csrow, -1, -1, | 1084 | csrow, -1, -1, |
1085 | EDAC_MOD_STR, | ||
1086 | "unknown syndrome - possible error reporting race", | 1085 | "unknown syndrome - possible error reporting race", |
1086 | "", | ||
1087 | NULL); | 1087 | NULL); |
1088 | return; | 1088 | return; |
1089 | } | 1089 | } |
@@ -1102,7 +1102,7 @@ static void k8_map_sysaddr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr, | |||
1102 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, src_mci, | 1102 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, src_mci, |
1103 | page, offset, syndrome, | 1103 | page, offset, syndrome, |
1104 | csrow, channel, -1, | 1104 | csrow, channel, -1, |
1105 | EDAC_MOD_STR, "", NULL); | 1105 | "", "", NULL); |
1106 | } | 1106 | } |
1107 | 1107 | ||
1108 | static int ddr2_cs_size(unsigned i, bool dct_width) | 1108 | static int ddr2_cs_size(unsigned i, bool dct_width) |
@@ -1614,8 +1614,8 @@ static void f1x_map_sysaddr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr, | |||
1614 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, | 1614 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, |
1615 | page, offset, syndrome, | 1615 | page, offset, syndrome, |
1616 | -1, -1, -1, | 1616 | -1, -1, -1, |
1617 | EDAC_MOD_STR, | ||
1618 | "failed to map error addr to a csrow", | 1617 | "failed to map error addr to a csrow", |
1618 | "", | ||
1619 | NULL); | 1619 | NULL); |
1620 | return; | 1620 | return; |
1621 | } | 1621 | } |
@@ -1631,7 +1631,7 @@ static void f1x_map_sysaddr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr, | |||
1631 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, | 1631 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, |
1632 | page, offset, syndrome, | 1632 | page, offset, syndrome, |
1633 | csrow, chan, -1, | 1633 | csrow, chan, -1, |
1634 | EDAC_MOD_STR, "", NULL); | 1634 | "", "", NULL); |
1635 | } | 1635 | } |
1636 | 1636 | ||
1637 | /* | 1637 | /* |
@@ -1916,8 +1916,8 @@ static void amd64_handle_ce(struct mem_ctl_info *mci, struct mce *m) | |||
1916 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, | 1916 | edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, |
1917 | 0, 0, 0, | 1917 | 0, 0, 0, |
1918 | -1, -1, -1, | 1918 | -1, -1, -1, |
1919 | EDAC_MOD_STR, | ||
1920 | "HW has no ERROR_ADDRESS available", | 1919 | "HW has no ERROR_ADDRESS available", |
1920 | "", | ||
1921 | NULL); | 1921 | NULL); |
1922 | return; | 1922 | return; |
1923 | } | 1923 | } |
@@ -1945,8 +1945,8 @@ static void amd64_handle_ue(struct mem_ctl_info *mci, struct mce *m) | |||
1945 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, | 1945 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, |
1946 | 0, 0, 0, | 1946 | 0, 0, 0, |
1947 | -1, -1, -1, | 1947 | -1, -1, -1, |
1948 | EDAC_MOD_STR, | ||
1949 | "HW has no ERROR_ADDRESS available", | 1948 | "HW has no ERROR_ADDRESS available", |
1949 | "", | ||
1950 | NULL); | 1950 | NULL); |
1951 | return; | 1951 | return; |
1952 | } | 1952 | } |
@@ -1965,8 +1965,9 @@ static void amd64_handle_ue(struct mem_ctl_info *mci, struct mce *m) | |||
1965 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, | 1965 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, |
1966 | page, offset, 0, | 1966 | page, offset, 0, |
1967 | -1, -1, -1, | 1967 | -1, -1, -1, |
1968 | EDAC_MOD_STR, | 1968 | "ERROR ADDRESS NOT mapped to a MC", |
1969 | "ERROR ADDRESS NOT mapped to a MC", NULL); | 1969 | "", |
1970 | NULL); | ||
1970 | return; | 1971 | return; |
1971 | } | 1972 | } |
1972 | 1973 | ||
@@ -1979,14 +1980,14 @@ static void amd64_handle_ue(struct mem_ctl_info *mci, struct mce *m) | |||
1979 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, | 1980 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, |
1980 | page, offset, 0, | 1981 | page, offset, 0, |
1981 | -1, -1, -1, | 1982 | -1, -1, -1, |
1982 | EDAC_MOD_STR, | ||
1983 | "ERROR ADDRESS NOT mapped to CS", | 1983 | "ERROR ADDRESS NOT mapped to CS", |
1984 | "", | ||
1984 | NULL); | 1985 | NULL); |
1985 | } else { | 1986 | } else { |
1986 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, | 1987 | edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, |
1987 | page, offset, 0, | 1988 | page, offset, 0, |
1988 | csrow, -1, -1, | 1989 | csrow, -1, -1, |
1989 | EDAC_MOD_STR, "", NULL); | 1990 | "", "", NULL); |
1990 | } | 1991 | } |
1991 | } | 1992 | } |
1992 | 1993 | ||