amd64_edac: Do not check whether error address is valid
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 30 Aug 2012 12:56:57 +0000 (14:56 +0200)
committerBorislav Petkov <bp@alien8.de>
Wed, 28 Nov 2012 10:45:11 +0000 (11:45 +0100)
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>
drivers/edac/amd64_edac.c

index 351496af9e8d0bf8908dd7699e661b3ab1f32aaa..987d6acd8f4e5335bdeeca09634eba80bdc0bdaa 100644 (file)
@@ -1900,17 +1900,6 @@ static void amd64_handle_ce(struct mem_ctl_info *mci, struct mce *m)
        u64 sys_addr;
        u16 syndrome;
 
-       /* Ensure that the Error Address is VALID */
-       if (!(m->status & MCI_STATUS_ADDRV)) {
-               amd64_mc_err(mci, "HW has no ERROR_ADDRESS available\n");
-               edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1,
-                                    0, 0, 0,
-                                    -1, -1, -1,
-                                    "HW has no ERROR_ADDRESS available",
-                                    "");
-               return;
-       }
-
        sys_addr = get_error_address(m);
        syndrome = extract_syndrome(m->status);
 
@@ -1929,16 +1918,6 @@ static void amd64_handle_ue(struct mem_ctl_info *mci, struct mce *m)
 
        log_mci = mci;
 
-       if (!(m->status & MCI_STATUS_ADDRV)) {
-               amd64_mc_err(mci, "HW has no ERROR_ADDRESS available\n");
-               edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1,
-                                    0, 0, 0,
-                                    -1, -1, -1,
-                                    "HW has no ERROR_ADDRESS available",
-                                    "");
-               return;
-       }
-
        sys_addr = get_error_address(m);
        error_address_to_page_and_offset(sys_addr, &page, &offset);