aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/amd64_edac.c
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2009-11-13 08:02:57 -0500
committerBorislav Petkov <borislav.petkov@amd.com>2009-12-07 13:14:30 -0500
commit1f6bcee75e83bc5b580bfa5b909b1b5ce106b800 (patch)
treedbba035f4224e7430e1f02ce4f710980191e9989 /drivers/edac/amd64_edac.c
parent44e9e2ee2196fdec9893371d36c33e703965f804 (diff)
amd64_edac: remove unneeded extract_error_address wrapper
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.c')
-rw-r--r--drivers/edac/amd64_edac.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index 202f08e543e3..c403af2e0081 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -763,21 +763,6 @@ static void find_csrow_limits(struct mem_ctl_info *mci, int csrow,
763 *input_addr_max = base | mask | pvt->dcs_mask_notused; 763 *input_addr_max = base | mask | pvt->dcs_mask_notused;
764} 764}
765 765
766/*
767 * Extract error address from MCA NB Address Low (section 3.6.4.5) and MCA NB
768 * Address High (section 3.6.4.6) register values and return the result. Address
769 * is located in the info structure (nbeah and nbeal), the encoding is device
770 * specific.
771 */
772static u64 extract_error_address(struct mem_ctl_info *mci,
773 struct err_regs *info)
774{
775 struct amd64_pvt *pvt = mci->pvt_info;
776
777 return pvt->ops->get_error_address(mci, info);
778}
779
780
781/* Map the Error address to a PAGE and PAGE OFFSET. */ 766/* Map the Error address to a PAGE and PAGE OFFSET. */
782static inline void error_address_to_page_and_offset(u64 error_address, 767static inline void error_address_to_page_and_offset(u64 error_address,
783 u32 *page, u32 *offset) 768 u32 *page, u32 *offset)
@@ -2118,7 +2103,7 @@ static void amd64_handle_ce(struct mem_ctl_info *mci,
2118 return; 2103 return;
2119 } 2104 }
2120 2105
2121 sys_addr = extract_error_address(mci, info); 2106 sys_addr = pvt->ops->get_error_address(mci, info);
2122 2107
2123 amd64_mc_printk(mci, KERN_ERR, 2108 amd64_mc_printk(mci, KERN_ERR,
2124 "CE ERROR_ADDRESS= 0x%llx\n", sys_addr); 2109 "CE ERROR_ADDRESS= 0x%llx\n", sys_addr);
@@ -2130,10 +2115,11 @@ static void amd64_handle_ce(struct mem_ctl_info *mci,
2130static void amd64_handle_ue(struct mem_ctl_info *mci, 2115static void amd64_handle_ue(struct mem_ctl_info *mci,
2131 struct err_regs *info) 2116 struct err_regs *info)
2132{ 2117{
2118 struct amd64_pvt *pvt = mci->pvt_info;
2119 struct mem_ctl_info *log_mci, *src_mci = NULL;
2133 int csrow; 2120 int csrow;
2134 u64 sys_addr; 2121 u64 sys_addr;
2135 u32 page, offset; 2122 u32 page, offset;
2136 struct mem_ctl_info *log_mci, *src_mci = NULL;
2137 2123
2138 log_mci = mci; 2124 log_mci = mci;
2139 2125
@@ -2144,7 +2130,7 @@ static void amd64_handle_ue(struct mem_ctl_info *mci,
2144 return; 2130 return;
2145 } 2131 }
2146 2132
2147 sys_addr = extract_error_address(mci, info); 2133 sys_addr = pvt->ops->get_error_address(mci, info);
2148 2134
2149 /* 2135 /*
2150 * Find out which node the error address belongs to. This may be 2136 * Find out which node the error address belongs to. This may be