aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYazen Ghannam <Yazen.Ghannam@amd.com>2016-09-12 03:59:33 -0400
committerThomas Gleixner <tglx@linutronix.de>2016-09-13 09:23:09 -0400
commit856095b1794be487527771dbd2fe28e34e94b266 (patch)
tree6c1f9debd5f0e6d7474109419f8529e2075f6aef
parentc019b951e1f9f1de0c5b0726032e3adf34c523a7 (diff)
EDAC/mce_amd: Use SMCA prefix for error descriptions arrays
The error descriptions defined for Fam17h can be reused for other SMCA systems, so their names should reflect this. Change f17h prefix to smca for error descriptions. Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: http://lkml.kernel.org/r/1472673994-12235-4-git-send-email-Yazen.Ghannam@amd.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--drivers/edac/mce_amd.c80
1 files changed, 40 insertions, 40 deletions
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
index 455cd49d6253..ea549a94361b 100644
--- a/drivers/edac/mce_amd.c
+++ b/drivers/edac/mce_amd.c
@@ -148,12 +148,12 @@ static const char * const mc6_mce_desc[] = {
148}; 148};
149 149
150/* Scalable MCA error strings */ 150/* Scalable MCA error strings */
151static const char * const f17h_ls_mce_desc[] = { 151static const char * const smca_ls_mce_desc[] = {
152 "Load queue parity", 152 "Load queue parity",
153 "Store queue parity", 153 "Store queue parity",
154 "Miss address buffer payload parity", 154 "Miss address buffer payload parity",
155 "L1 TLB parity", 155 "L1 TLB parity",
156 "", /* reserved */ 156 "Reserved",
157 "DC tag error type 6", 157 "DC tag error type 6",
158 "DC tag error type 1", 158 "DC tag error type 1",
159 "Internal error type 1", 159 "Internal error type 1",
@@ -172,7 +172,7 @@ static const char * const f17h_ls_mce_desc[] = {
172 "L2 fill data error", 172 "L2 fill data error",
173}; 173};
174 174
175static const char * const f17h_if_mce_desc[] = { 175static const char * const smca_if_mce_desc[] = {
176 "microtag probe port parity error", 176 "microtag probe port parity error",
177 "IC microtag or full tag multi-hit error", 177 "IC microtag or full tag multi-hit error",
178 "IC full tag parity", 178 "IC full tag parity",
@@ -189,14 +189,14 @@ static const char * const f17h_if_mce_desc[] = {
189 "System Read Data error", 189 "System Read Data error",
190}; 190};
191 191
192static const char * const f17h_l2_mce_desc[] = { 192static const char * const smca_l2_mce_desc[] = {
193 "L2M tag multi-way-hit error", 193 "L2M tag multi-way-hit error",
194 "L2M tag ECC error", 194 "L2M tag ECC error",
195 "L2M data ECC error", 195 "L2M data ECC error",
196 "HW assert", 196 "HW assert",
197}; 197};
198 198
199static const char * const f17h_de_mce_desc[] = { 199static const char * const smca_de_mce_desc[] = {
200 "uop cache tag parity error", 200 "uop cache tag parity error",
201 "uop cache data parity error", 201 "uop cache data parity error",
202 "Insn buffer parity error", 202 "Insn buffer parity error",
@@ -208,7 +208,7 @@ static const char * const f17h_de_mce_desc[] = {
208 "uop buffer parity" 208 "uop buffer parity"
209}; 209};
210 210
211static const char * const f17h_ex_mce_desc[] = { 211static const char * const smca_ex_mce_desc[] = {
212 "Watchdog timeout error", 212 "Watchdog timeout error",
213 "Phy register file parity", 213 "Phy register file parity",
214 "Flag register file parity", 214 "Flag register file parity",
@@ -222,7 +222,7 @@ static const char * const f17h_ex_mce_desc[] = {
222 "Branch buffer queue parity error", 222 "Branch buffer queue parity error",
223}; 223};
224 224
225static const char * const f17h_fp_mce_desc[] = { 225static const char * const smca_fp_mce_desc[] = {
226 "Physical register file parity", 226 "Physical register file parity",
227 "Freelist parity error", 227 "Freelist parity error",
228 "Schedule queue parity", 228 "Schedule queue parity",
@@ -232,7 +232,7 @@ static const char * const f17h_fp_mce_desc[] = {
232 "Hardware assertion", 232 "Hardware assertion",
233}; 233};
234 234
235static const char * const f17h_l3_mce_desc[] = { 235static const char * const smca_l3_mce_desc[] = {
236 "Shadow tag macro ECC error", 236 "Shadow tag macro ECC error",
237 "Shadow tag macro multi-way-hit error", 237 "Shadow tag macro multi-way-hit error",
238 "L3M tag ECC error", 238 "L3M tag ECC error",
@@ -243,7 +243,7 @@ static const char * const f17h_l3_mce_desc[] = {
243 "L3 HW assert", 243 "L3 HW assert",
244}; 244};
245 245
246static const char * const f17h_cs_mce_desc[] = { 246static const char * const smca_cs_mce_desc[] = {
247 "Illegal request from transport layer", 247 "Illegal request from transport layer",
248 "Address violation", 248 "Address violation",
249 "Security violation", 249 "Security violation",
@@ -255,14 +255,14 @@ static const char * const f17h_cs_mce_desc[] = {
255 "ECC error on probe filter access", 255 "ECC error on probe filter access",
256}; 256};
257 257
258static const char * const f17h_pie_mce_desc[] = { 258static const char * const smca_pie_mce_desc[] = {
259 "HW assert", 259 "HW assert",
260 "Internal PIE register security violation", 260 "Internal PIE register security violation",
261 "Error on GMI link", 261 "Error on GMI link",
262 "Poison data written to internal PIE register", 262 "Poison data written to internal PIE register",
263}; 263};
264 264
265static const char * const f17h_umc_mce_desc[] = { 265static const char * const smca_umc_mce_desc[] = {
266 "DRAM ECC error", 266 "DRAM ECC error",
267 "Data poison error on DRAM", 267 "Data poison error on DRAM",
268 "SDP parity error", 268 "SDP parity error",
@@ -271,15 +271,15 @@ static const char * const f17h_umc_mce_desc[] = {
271 "Write data CRC error", 271 "Write data CRC error",
272}; 272};
273 273
274static const char * const f17h_pb_mce_desc[] = { 274static const char * const smca_pb_mce_desc[] = {
275 "Parameter Block RAM ECC error", 275 "Parameter Block RAM ECC error",
276}; 276};
277 277
278static const char * const f17h_psp_mce_desc[] = { 278static const char * const smca_psp_mce_desc[] = {
279 "PSP RAM ECC or parity error", 279 "PSP RAM ECC or parity error",
280}; 280};
281 281
282static const char * const f17h_smu_mce_desc[] = { 282static const char * const smca_smu_mce_desc[] = {
283 "SMU RAM ECC or parity error", 283 "SMU RAM ECC or parity error",
284}; 284};
285 285
@@ -837,8 +837,8 @@ static void decode_f17h_core_errors(const char *ip_name, u8 xec,
837 837
838 switch (mca_type) { 838 switch (mca_type) {
839 case SMCA_LS: 839 case SMCA_LS:
840 error_desc_array = f17h_ls_mce_desc; 840 error_desc_array = smca_ls_mce_desc;
841 len = ARRAY_SIZE(f17h_ls_mce_desc) - 1; 841 len = ARRAY_SIZE(smca_ls_mce_desc) - 1;
842 842
843 if (xec == 0x4) { 843 if (xec == 0x4) {
844 pr_cont("Unrecognized LS MCA error code.\n"); 844 pr_cont("Unrecognized LS MCA error code.\n");
@@ -847,33 +847,33 @@ static void decode_f17h_core_errors(const char *ip_name, u8 xec,
847 break; 847 break;
848 848
849 case SMCA_IF: 849 case SMCA_IF:
850 error_desc_array = f17h_if_mce_desc; 850 error_desc_array = smca_if_mce_desc;
851 len = ARRAY_SIZE(f17h_if_mce_desc) - 1; 851 len = ARRAY_SIZE(smca_if_mce_desc) - 1;
852 break; 852 break;
853 853
854 case SMCA_L2_CACHE: 854 case SMCA_L2_CACHE:
855 error_desc_array = f17h_l2_mce_desc; 855 error_desc_array = smca_l2_mce_desc;
856 len = ARRAY_SIZE(f17h_l2_mce_desc) - 1; 856 len = ARRAY_SIZE(smca_l2_mce_desc) - 1;
857 break; 857 break;
858 858
859 case SMCA_DE: 859 case SMCA_DE:
860 error_desc_array = f17h_de_mce_desc; 860 error_desc_array = smca_de_mce_desc;
861 len = ARRAY_SIZE(f17h_de_mce_desc) - 1; 861 len = ARRAY_SIZE(smca_de_mce_desc) - 1;
862 break; 862 break;
863 863
864 case SMCA_EX: 864 case SMCA_EX:
865 error_desc_array = f17h_ex_mce_desc; 865 error_desc_array = smca_ex_mce_desc;
866 len = ARRAY_SIZE(f17h_ex_mce_desc) - 1; 866 len = ARRAY_SIZE(smca_ex_mce_desc) - 1;
867 break; 867 break;
868 868
869 case SMCA_FP: 869 case SMCA_FP:
870 error_desc_array = f17h_fp_mce_desc; 870 error_desc_array = smca_fp_mce_desc;
871 len = ARRAY_SIZE(f17h_fp_mce_desc) - 1; 871 len = ARRAY_SIZE(smca_fp_mce_desc) - 1;
872 break; 872 break;
873 873
874 case SMCA_L3_CACHE: 874 case SMCA_L3_CACHE:
875 error_desc_array = f17h_l3_mce_desc; 875 error_desc_array = smca_l3_mce_desc;
876 len = ARRAY_SIZE(f17h_l3_mce_desc) - 1; 876 len = ARRAY_SIZE(smca_l3_mce_desc) - 1;
877 break; 877 break;
878 878
879 default: 879 default:
@@ -899,13 +899,13 @@ static void decode_df_errors(u8 xec, unsigned int mca_type)
899 899
900 switch (mca_type) { 900 switch (mca_type) {
901 case SMCA_CS: 901 case SMCA_CS:
902 error_desc_array = f17h_cs_mce_desc; 902 error_desc_array = smca_cs_mce_desc;
903 len = ARRAY_SIZE(f17h_cs_mce_desc) - 1; 903 len = ARRAY_SIZE(smca_cs_mce_desc) - 1;
904 break; 904 break;
905 905
906 case SMCA_PIE: 906 case SMCA_PIE:
907 error_desc_array = f17h_pie_mce_desc; 907 error_desc_array = smca_pie_mce_desc;
908 len = ARRAY_SIZE(f17h_pie_mce_desc) - 1; 908 len = ARRAY_SIZE(smca_pie_mce_desc) - 1;
909 break; 909 break;
910 910
911 default: 911 default:
@@ -963,23 +963,23 @@ static void decode_smca_errors(struct mce *m)
963 break; 963 break;
964 964
965 case SMCA_UMC: 965 case SMCA_UMC:
966 error_desc_array = f17h_umc_mce_desc; 966 error_desc_array = smca_umc_mce_desc;
967 len = ARRAY_SIZE(f17h_umc_mce_desc) - 1; 967 len = ARRAY_SIZE(smca_umc_mce_desc) - 1;
968 break; 968 break;
969 969
970 case SMCA_PB: 970 case SMCA_PB:
971 error_desc_array = f17h_pb_mce_desc; 971 error_desc_array = smca_pb_mce_desc;
972 len = ARRAY_SIZE(f17h_pb_mce_desc) - 1; 972 len = ARRAY_SIZE(smca_pb_mce_desc) - 1;
973 break; 973 break;
974 974
975 case SMCA_PSP: 975 case SMCA_PSP:
976 error_desc_array = f17h_psp_mce_desc; 976 error_desc_array = smca_psp_mce_desc;
977 len = ARRAY_SIZE(f17h_psp_mce_desc) - 1; 977 len = ARRAY_SIZE(smca_psp_mce_desc) - 1;
978 break; 978 break;
979 979
980 case SMCA_SMU: 980 case SMCA_SMU:
981 error_desc_array = f17h_smu_mce_desc; 981 error_desc_array = smca_smu_mce_desc;
982 len = ARRAY_SIZE(f17h_smu_mce_desc) - 1; 982 len = ARRAY_SIZE(smca_smu_mce_desc) - 1;
983 break; 983 break;
984 984
985 default: 985 default: