aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2012-08-30 08:56:57 -0400
committerBorislav Petkov <bp@alien8.de>2012-11-28 05:45:11 -0500
commitc8d1adf092d8aa1ed947da789a99eee1130aa304 (patch)
tree1c90fba545207898a72f29f2362dadd60866bc23 /drivers/edac
parent66fed2d464157eb20c37738d75b281458dfc2cab (diff)
amd64_edac: Do not check whether error address is valid
All families report a valid error address when encountering a DRAM ECC error so no need to check it. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/amd64_edac.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index 351496af9e8d..987d6acd8f4e 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -1900,17 +1900,6 @@ static void amd64_handle_ce(struct mem_ctl_info *mci, struct mce *m)
1900 u64 sys_addr; 1900 u64 sys_addr;
1901 u16 syndrome; 1901 u16 syndrome;
1902 1902
1903 /* Ensure that the Error Address is VALID */
1904 if (!(m->status & MCI_STATUS_ADDRV)) {
1905 amd64_mc_err(mci, "HW has no ERROR_ADDRESS available\n");
1906 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1,
1907 0, 0, 0,
1908 -1, -1, -1,
1909 "HW has no ERROR_ADDRESS available",
1910 "");
1911 return;
1912 }
1913
1914 sys_addr = get_error_address(m); 1903 sys_addr = get_error_address(m);
1915 syndrome = extract_syndrome(m->status); 1904 syndrome = extract_syndrome(m->status);
1916 1905
@@ -1929,16 +1918,6 @@ static void amd64_handle_ue(struct mem_ctl_info *mci, struct mce *m)
1929 1918
1930 log_mci = mci; 1919 log_mci = mci;
1931 1920
1932 if (!(m->status & MCI_STATUS_ADDRV)) {
1933 amd64_mc_err(mci, "HW has no ERROR_ADDRESS available\n");
1934 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1,
1935 0, 0, 0,
1936 -1, -1, -1,
1937 "HW has no ERROR_ADDRESS available",
1938 "");
1939 return;
1940 }
1941
1942 sys_addr = get_error_address(m); 1921 sys_addr = get_error_address(m);
1943 error_address_to_page_and_offset(sys_addr, &page, &offset); 1922 error_address_to_page_and_offset(sys_addr, &page, &offset);
1944 1923