aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/amd64_edac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/amd64_edac.c')
-rw-r--r--drivers/edac/amd64_edac.c30
1 files changed, 11 insertions, 19 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index 811d3e8e5025..6231cbe6e7c1 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -1050,8 +1050,7 @@ static void k8_map_sysaddr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr,
1050 page, offset, syndrome, 1050 page, offset, syndrome,
1051 -1, -1, -1, 1051 -1, -1, -1,
1052 "failed to map error addr to a node", 1052 "failed to map error addr to a node",
1053 "", 1053 "");
1054 NULL);
1055 return; 1054 return;
1056 } 1055 }
1057 1056
@@ -1062,8 +1061,7 @@ static void k8_map_sysaddr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr,
1062 page, offset, syndrome, 1061 page, offset, syndrome,
1063 -1, -1, -1, 1062 -1, -1, -1,
1064 "failed to map error addr to a csrow", 1063 "failed to map error addr to a csrow",
1065 "", 1064 "");
1066 NULL);
1067 return; 1065 return;
1068 } 1066 }
1069 1067
@@ -1083,8 +1081,7 @@ static void k8_map_sysaddr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr,
1083 page, offset, syndrome, 1081 page, offset, syndrome,
1084 csrow, -1, -1, 1082 csrow, -1, -1,
1085 "unknown syndrome - possible error reporting race", 1083 "unknown syndrome - possible error reporting race",
1086 "", 1084 "");
1087 NULL);
1088 return; 1085 return;
1089 } 1086 }
1090 } else { 1087 } else {
@@ -1102,7 +1099,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, 1099 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, src_mci,
1103 page, offset, syndrome, 1100 page, offset, syndrome,
1104 csrow, channel, -1, 1101 csrow, channel, -1,
1105 "", "", NULL); 1102 "", "");
1106} 1103}
1107 1104
1108static int ddr2_cs_size(unsigned i, bool dct_width) 1105static int ddr2_cs_size(unsigned i, bool dct_width)
@@ -1615,8 +1612,7 @@ static void f1x_map_sysaddr_to_csrow(struct mem_ctl_info *mci, u64 sys_addr,
1615 page, offset, syndrome, 1612 page, offset, syndrome,
1616 -1, -1, -1, 1613 -1, -1, -1,
1617 "failed to map error addr to a csrow", 1614 "failed to map error addr to a csrow",
1618 "", 1615 "");
1619 NULL);
1620 return; 1616 return;
1621 } 1617 }
1622 1618
@@ -1631,7 +1627,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, 1627 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci,
1632 page, offset, syndrome, 1628 page, offset, syndrome,
1633 csrow, chan, -1, 1629 csrow, chan, -1,
1634 "", "", NULL); 1630 "", "");
1635} 1631}
1636 1632
1637/* 1633/*
@@ -1917,8 +1913,7 @@ static void amd64_handle_ce(struct mem_ctl_info *mci, struct mce *m)
1917 0, 0, 0, 1913 0, 0, 0,
1918 -1, -1, -1, 1914 -1, -1, -1,
1919 "HW has no ERROR_ADDRESS available", 1915 "HW has no ERROR_ADDRESS available",
1920 "", 1916 "");
1921 NULL);
1922 return; 1917 return;
1923 } 1918 }
1924 1919
@@ -1946,8 +1941,7 @@ static void amd64_handle_ue(struct mem_ctl_info *mci, struct mce *m)
1946 0, 0, 0, 1941 0, 0, 0,
1947 -1, -1, -1, 1942 -1, -1, -1,
1948 "HW has no ERROR_ADDRESS available", 1943 "HW has no ERROR_ADDRESS available",
1949 "", 1944 "");
1950 NULL);
1951 return; 1945 return;
1952 } 1946 }
1953 1947
@@ -1966,8 +1960,7 @@ static void amd64_handle_ue(struct mem_ctl_info *mci, struct mce *m)
1966 page, offset, 0, 1960 page, offset, 0,
1967 -1, -1, -1, 1961 -1, -1, -1,
1968 "ERROR ADDRESS NOT mapped to a MC", 1962 "ERROR ADDRESS NOT mapped to a MC",
1969 "", 1963 "");
1970 NULL);
1971 return; 1964 return;
1972 } 1965 }
1973 1966
@@ -1981,13 +1974,12 @@ static void amd64_handle_ue(struct mem_ctl_info *mci, struct mce *m)
1981 page, offset, 0, 1974 page, offset, 0,
1982 -1, -1, -1, 1975 -1, -1, -1,
1983 "ERROR ADDRESS NOT mapped to CS", 1976 "ERROR ADDRESS NOT mapped to CS",
1984 "", 1977 "");
1985 NULL);
1986 } else { 1978 } else {
1987 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1979 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci,
1988 page, offset, 0, 1980 page, offset, 0,
1989 csrow, -1, -1, 1981 csrow, -1, -1,
1990 "", "", NULL); 1982 "", "");
1991 } 1983 }
1992} 1984}
1993 1985