Borislav Petkov | b70ef01 | 2009-06-25 19:32:38 +0200 | [diff] [blame] | 1 | #include <linux/module.h> |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 2 | #include <linux/slab.h> |
| 3 | |
Borislav Petkov | 47ca08a | 2010-09-27 15:30:39 +0200 | [diff] [blame] | 4 | #include "mce_amd.h" |
Doug Thompson | b52401ce | 2009-05-06 17:57:20 +0200 | [diff] [blame] | 5 | |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 6 | static struct amd_decoder_ops *fam_ops; |
| 7 | |
Borislav Petkov | 2be64bf | 2010-09-17 19:11:47 +0200 | [diff] [blame] | 8 | static u8 xec_mask = 0xf; |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 9 | static u8 nb_err_cpumask = 0xf; |
| 10 | |
Borislav Petkov | 549d042 | 2009-07-24 13:51:42 +0200 | [diff] [blame] | 11 | static bool report_gart_errors; |
Borislav Petkov | b0b07a2 | 2011-08-24 18:44:22 +0200 | [diff] [blame] | 12 | static void (*nb_bus_decoder)(int node_id, struct mce *m); |
Borislav Petkov | 549d042 | 2009-07-24 13:51:42 +0200 | [diff] [blame] | 13 | |
| 14 | void amd_report_gart_errors(bool v) |
| 15 | { |
| 16 | report_gart_errors = v; |
| 17 | } |
| 18 | EXPORT_SYMBOL_GPL(amd_report_gart_errors); |
| 19 | |
Borislav Petkov | b0b07a2 | 2011-08-24 18:44:22 +0200 | [diff] [blame] | 20 | void amd_register_ecc_decoder(void (*f)(int, struct mce *)) |
Borislav Petkov | 549d042 | 2009-07-24 13:51:42 +0200 | [diff] [blame] | 21 | { |
| 22 | nb_bus_decoder = f; |
| 23 | } |
| 24 | EXPORT_SYMBOL_GPL(amd_register_ecc_decoder); |
| 25 | |
Borislav Petkov | b0b07a2 | 2011-08-24 18:44:22 +0200 | [diff] [blame] | 26 | void amd_unregister_ecc_decoder(void (*f)(int, struct mce *)) |
Borislav Petkov | 549d042 | 2009-07-24 13:51:42 +0200 | [diff] [blame] | 27 | { |
| 28 | if (nb_bus_decoder) { |
| 29 | WARN_ON(nb_bus_decoder != f); |
| 30 | |
| 31 | nb_bus_decoder = NULL; |
| 32 | } |
| 33 | } |
| 34 | EXPORT_SYMBOL_GPL(amd_unregister_ecc_decoder); |
| 35 | |
Doug Thompson | b52401ce | 2009-05-06 17:57:20 +0200 | [diff] [blame] | 36 | /* |
| 37 | * string representation for the different MCA reported error types, see F3x48 |
| 38 | * or MSR0000_0411. |
| 39 | */ |
Borislav Petkov | 6337583 | 2010-09-06 18:13:39 +0200 | [diff] [blame] | 40 | |
| 41 | /* transaction type */ |
Borislav Petkov | 0f08669 | 2012-12-23 12:40:45 +0100 | [diff] [blame] | 42 | static const char * const tt_msgs[] = { "INSN", "DATA", "GEN", "RESV" }; |
Doug Thompson | b52401ce | 2009-05-06 17:57:20 +0200 | [diff] [blame] | 43 | |
Borislav Petkov | 6337583 | 2010-09-06 18:13:39 +0200 | [diff] [blame] | 44 | /* cache level */ |
Borislav Petkov | 0f08669 | 2012-12-23 12:40:45 +0100 | [diff] [blame] | 45 | static const char * const ll_msgs[] = { "RESV", "L1", "L2", "L3/GEN" }; |
Doug Thompson | b52401ce | 2009-05-06 17:57:20 +0200 | [diff] [blame] | 46 | |
Borislav Petkov | 6337583 | 2010-09-06 18:13:39 +0200 | [diff] [blame] | 47 | /* memory transaction type */ |
Borislav Petkov | 0f08669 | 2012-12-23 12:40:45 +0100 | [diff] [blame] | 48 | static const char * const rrrr_msgs[] = { |
Borislav Petkov | 6337583 | 2010-09-06 18:13:39 +0200 | [diff] [blame] | 49 | "GEN", "RD", "WR", "DRD", "DWR", "IRD", "PRF", "EV", "SNP" |
Doug Thompson | b52401ce | 2009-05-06 17:57:20 +0200 | [diff] [blame] | 50 | }; |
| 51 | |
Borislav Petkov | 6337583 | 2010-09-06 18:13:39 +0200 | [diff] [blame] | 52 | /* participating processor */ |
Borislav Petkov | ebe2aea | 2011-11-29 19:03:25 +0100 | [diff] [blame] | 53 | const char * const pp_msgs[] = { "SRC", "RES", "OBS", "GEN" }; |
Borislav Petkov | b70ef01 | 2009-06-25 19:32:38 +0200 | [diff] [blame] | 54 | EXPORT_SYMBOL_GPL(pp_msgs); |
Doug Thompson | b52401ce | 2009-05-06 17:57:20 +0200 | [diff] [blame] | 55 | |
Borislav Petkov | 6337583 | 2010-09-06 18:13:39 +0200 | [diff] [blame] | 56 | /* request timeout */ |
Borislav Petkov | 0f08669 | 2012-12-23 12:40:45 +0100 | [diff] [blame] | 57 | static const char * const to_msgs[] = { "no timeout", "timed out" }; |
Doug Thompson | b52401ce | 2009-05-06 17:57:20 +0200 | [diff] [blame] | 58 | |
Borislav Petkov | 6337583 | 2010-09-06 18:13:39 +0200 | [diff] [blame] | 59 | /* memory or i/o */ |
Borislav Petkov | 0f08669 | 2012-12-23 12:40:45 +0100 | [diff] [blame] | 60 | static const char * const ii_msgs[] = { "MEM", "RESV", "IO", "GEN" }; |
Doug Thompson | b52401ce | 2009-05-06 17:57:20 +0200 | [diff] [blame] | 61 | |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 62 | /* internal error type */ |
Borislav Petkov | 0f08669 | 2012-12-23 12:40:45 +0100 | [diff] [blame] | 63 | static const char * const uu_msgs[] = { "RESV", "RESV", "HWA", "RESV" }; |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 64 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 65 | static const char * const f15h_mc1_mce_desc[] = { |
Borislav Petkov | 86039cd | 2010-11-08 15:03:35 +0100 | [diff] [blame] | 66 | "UC during a demand linefill from L2", |
| 67 | "Parity error during data load from IC", |
| 68 | "Parity error for IC valid bit", |
| 69 | "Main tag parity error", |
| 70 | "Parity error in prediction queue", |
| 71 | "PFB data/address parity error", |
| 72 | "Parity error in the branch status reg", |
| 73 | "PFB promotion address error", |
| 74 | "Tag error during probe/victimization", |
| 75 | "Parity error for IC probe tag valid bit", |
| 76 | "PFB non-cacheable bit parity error", |
| 77 | "PFB valid bit parity error", /* xec = 0xd */ |
Borislav Petkov | 6c1173a | 2011-11-21 19:45:34 +0100 | [diff] [blame] | 78 | "Microcode Patch Buffer", /* xec = 010 */ |
Borislav Petkov | 86039cd | 2010-11-08 15:03:35 +0100 | [diff] [blame] | 79 | "uop queue", |
| 80 | "insn buffer", |
| 81 | "predecode buffer", |
| 82 | "fetch address FIFO" |
| 83 | }; |
| 84 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 85 | static const char * const f15h_mc2_mce_desc[] = { |
Borislav Petkov | 70fdb49 | 2010-09-21 20:45:10 +0200 | [diff] [blame] | 86 | "Fill ECC error on data fills", /* xec = 0x4 */ |
| 87 | "Fill parity error on insn fills", |
| 88 | "Prefetcher request FIFO parity error", |
| 89 | "PRQ address parity error", |
| 90 | "PRQ data parity error", |
| 91 | "WCC Tag ECC error", |
| 92 | "WCC Data ECC error", |
| 93 | "WCB Data parity error", |
Borislav Petkov | b64a99c | 2011-11-23 14:50:44 +0100 | [diff] [blame] | 94 | "VB Data ECC or parity error", |
Borislav Petkov | 70fdb49 | 2010-09-21 20:45:10 +0200 | [diff] [blame] | 95 | "L2 Tag ECC error", /* xec = 0x10 */ |
| 96 | "Hard L2 Tag ECC error", |
| 97 | "Multiple hits on L2 tag", |
| 98 | "XAB parity error", |
| 99 | "PRB address parity error" |
| 100 | }; |
| 101 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 102 | static const char * const mc4_mce_desc[] = { |
Borislav Petkov | 6878267 | 2011-11-24 21:29:57 +0100 | [diff] [blame] | 103 | "DRAM ECC error detected on the NB", |
| 104 | "CRC error detected on HT link", |
| 105 | "Link-defined sync error packets detected on HT link", |
| 106 | "HT Master abort", |
| 107 | "HT Target abort", |
| 108 | "Invalid GART PTE entry during GART table walk", |
| 109 | "Unsupported atomic RMW received from an IO link", |
| 110 | "Watchdog timeout due to lack of progress", |
| 111 | "DRAM ECC error detected on the NB", |
| 112 | "SVM DMA Exclusion Vector error", |
| 113 | "HT data error detected on link", |
| 114 | "Protocol error (link, L3, probe filter)", |
| 115 | "NB internal arrays parity error", |
| 116 | "DRAM addr/ctl signals parity error", |
| 117 | "IO link transmission error", |
| 118 | "L3 data cache ECC error", /* xec = 0x1c */ |
| 119 | "L3 cache tag error", |
| 120 | "L3 LRU parity bits error", |
| 121 | "ECC Error in the Probe Filter directory" |
| 122 | }; |
| 123 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 124 | static const char * const mc5_mce_desc[] = { |
Borislav Petkov | 8259a7e | 2010-09-22 15:28:59 +0200 | [diff] [blame] | 125 | "CPU Watchdog timer expire", |
| 126 | "Wakeup array dest tag", |
| 127 | "AG payload array", |
| 128 | "EX payload array", |
| 129 | "IDRF array", |
| 130 | "Retire dispatch queue", |
| 131 | "Mapper checkpoint array", |
| 132 | "Physical register file EX0 port", |
| 133 | "Physical register file EX1 port", |
| 134 | "Physical register file AG0 port", |
| 135 | "Physical register file AG1 port", |
| 136 | "Flag register file", |
Borislav Petkov | ae615b4 | 2011-11-25 15:42:59 +0100 | [diff] [blame] | 137 | "DE error occurred" |
Borislav Petkov | 8259a7e | 2010-09-22 15:28:59 +0200 | [diff] [blame] | 138 | }; |
| 139 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 140 | static bool f12h_mc0_mce(u16 ec, u8 xec) |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 141 | { |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 142 | bool ret = false; |
| 143 | |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 144 | if (MEM_ERROR(ec)) { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 145 | u8 ll = LL(ec); |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 146 | ret = true; |
| 147 | |
| 148 | if (ll == LL_L2) |
| 149 | pr_cont("during L1 linefill from L2.\n"); |
| 150 | else if (ll == LL_L1) |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 151 | pr_cont("Data/Tag %s error.\n", R4_MSG(ec)); |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 152 | else |
| 153 | ret = false; |
| 154 | } |
| 155 | return ret; |
| 156 | } |
| 157 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 158 | static bool f10h_mc0_mce(u16 ec, u8 xec) |
Borislav Petkov | 9be0bb1 | 2010-09-16 15:08:14 +0200 | [diff] [blame] | 159 | { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 160 | if (R4(ec) == R4_GEN && LL(ec) == LL_L1) { |
Borislav Petkov | 9be0bb1 | 2010-09-16 15:08:14 +0200 | [diff] [blame] | 161 | pr_cont("during data scrub.\n"); |
| 162 | return true; |
| 163 | } |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 164 | return f12h_mc0_mce(ec, xec); |
Borislav Petkov | 9be0bb1 | 2010-09-16 15:08:14 +0200 | [diff] [blame] | 165 | } |
| 166 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 167 | static bool k8_mc0_mce(u16 ec, u8 xec) |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 168 | { |
| 169 | if (BUS_ERROR(ec)) { |
| 170 | pr_cont("during system linefill.\n"); |
| 171 | return true; |
| 172 | } |
| 173 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 174 | return f10h_mc0_mce(ec, xec); |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 175 | } |
| 176 | |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 177 | static bool cat_mc0_mce(u16 ec, u8 xec) |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 178 | { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 179 | u8 r4 = R4(ec); |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 180 | bool ret = true; |
| 181 | |
| 182 | if (MEM_ERROR(ec)) { |
| 183 | |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 184 | if (TT(ec) != TT_DATA || LL(ec) != LL_L1) |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 185 | return false; |
| 186 | |
| 187 | switch (r4) { |
| 188 | case R4_DRD: |
| 189 | case R4_DWR: |
| 190 | pr_cont("Data/Tag parity error due to %s.\n", |
| 191 | (r4 == R4_DRD ? "load/hw prf" : "store")); |
| 192 | break; |
| 193 | case R4_EVICT: |
| 194 | pr_cont("Copyback parity error on a tag miss.\n"); |
| 195 | break; |
| 196 | case R4_SNOOP: |
| 197 | pr_cont("Tag parity error during snoop.\n"); |
| 198 | break; |
| 199 | default: |
| 200 | ret = false; |
| 201 | } |
| 202 | } else if (BUS_ERROR(ec)) { |
| 203 | |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 204 | if ((II(ec) != II_MEM && II(ec) != II_IO) || LL(ec) != LL_LG) |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 205 | return false; |
| 206 | |
| 207 | pr_cont("System read data error on a "); |
| 208 | |
| 209 | switch (r4) { |
| 210 | case R4_RD: |
| 211 | pr_cont("TLB reload.\n"); |
| 212 | break; |
| 213 | case R4_DWR: |
| 214 | pr_cont("store.\n"); |
| 215 | break; |
| 216 | case R4_DRD: |
| 217 | pr_cont("load.\n"); |
| 218 | break; |
| 219 | default: |
| 220 | ret = false; |
| 221 | } |
| 222 | } else { |
| 223 | ret = false; |
| 224 | } |
| 225 | |
| 226 | return ret; |
| 227 | } |
| 228 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 229 | static bool f15h_mc0_mce(u16 ec, u8 xec) |
Borislav Petkov | 25a4f8b | 2010-09-17 19:22:34 +0200 | [diff] [blame] | 230 | { |
| 231 | bool ret = true; |
| 232 | |
| 233 | if (MEM_ERROR(ec)) { |
| 234 | |
| 235 | switch (xec) { |
| 236 | case 0x0: |
| 237 | pr_cont("Data Array access error.\n"); |
| 238 | break; |
| 239 | |
| 240 | case 0x1: |
| 241 | pr_cont("UC error during a linefill from L2/NB.\n"); |
| 242 | break; |
| 243 | |
| 244 | case 0x2: |
| 245 | case 0x11: |
| 246 | pr_cont("STQ access error.\n"); |
| 247 | break; |
| 248 | |
| 249 | case 0x3: |
| 250 | pr_cont("SCB access error.\n"); |
| 251 | break; |
| 252 | |
| 253 | case 0x10: |
| 254 | pr_cont("Tag error.\n"); |
| 255 | break; |
| 256 | |
| 257 | case 0x12: |
| 258 | pr_cont("LDQ access error.\n"); |
| 259 | break; |
| 260 | |
| 261 | default: |
| 262 | ret = false; |
| 263 | } |
| 264 | } else if (BUS_ERROR(ec)) { |
| 265 | |
| 266 | if (!xec) |
Borislav Petkov | 344f0a0 | 2011-11-15 17:10:58 +0100 | [diff] [blame] | 267 | pr_cont("System Read Data Error.\n"); |
Borislav Petkov | 25a4f8b | 2010-09-17 19:22:34 +0200 | [diff] [blame] | 268 | else |
Borislav Petkov | 344f0a0 | 2011-11-15 17:10:58 +0100 | [diff] [blame] | 269 | pr_cont(" Internal error condition type %d.\n", xec); |
Borislav Petkov | 25a4f8b | 2010-09-17 19:22:34 +0200 | [diff] [blame] | 270 | } else |
| 271 | ret = false; |
| 272 | |
| 273 | return ret; |
| 274 | } |
| 275 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 276 | static void decode_mc0_mce(struct mce *m) |
Borislav Petkov | 5196624 | 2009-07-28 13:50:43 +0200 | [diff] [blame] | 277 | { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 278 | u16 ec = EC(m->status); |
| 279 | u8 xec = XEC(m->status, xec_mask); |
Borislav Petkov | 5196624 | 2009-07-28 13:50:43 +0200 | [diff] [blame] | 280 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 281 | pr_emerg(HW_ERR "MC0 Error: "); |
Borislav Petkov | 5196624 | 2009-07-28 13:50:43 +0200 | [diff] [blame] | 282 | |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 283 | /* TLB error signatures are the same across families */ |
| 284 | if (TLB_ERROR(ec)) { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 285 | if (TT(ec) == TT_DATA) { |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 286 | pr_cont("%s TLB %s.\n", LL_MSG(ec), |
Borislav Petkov | 25a4f8b | 2010-09-17 19:22:34 +0200 | [diff] [blame] | 287 | ((xec == 2) ? "locked miss" |
| 288 | : (xec ? "multimatch" : "parity"))); |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 289 | return; |
| 290 | } |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 291 | } else if (fam_ops->mc0_mce(ec, xec)) |
Borislav Petkov | 25a4f8b | 2010-09-17 19:22:34 +0200 | [diff] [blame] | 292 | ; |
| 293 | else |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 294 | pr_emerg(HW_ERR "Corrupted MC0 MCE info?\n"); |
Borislav Petkov | 5196624 | 2009-07-28 13:50:43 +0200 | [diff] [blame] | 295 | } |
| 296 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 297 | static bool k8_mc1_mce(u16 ec, u8 xec) |
Borislav Petkov | dd53bce | 2010-08-26 19:05:49 +0200 | [diff] [blame] | 298 | { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 299 | u8 ll = LL(ec); |
Borislav Petkov | dd53bce | 2010-08-26 19:05:49 +0200 | [diff] [blame] | 300 | bool ret = true; |
| 301 | |
| 302 | if (!MEM_ERROR(ec)) |
| 303 | return false; |
| 304 | |
| 305 | if (ll == 0x2) |
| 306 | pr_cont("during a linefill from L2.\n"); |
| 307 | else if (ll == 0x1) { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 308 | switch (R4(ec)) { |
Borislav Petkov | dd53bce | 2010-08-26 19:05:49 +0200 | [diff] [blame] | 309 | case R4_IRD: |
| 310 | pr_cont("Parity error during data load.\n"); |
| 311 | break; |
| 312 | |
| 313 | case R4_EVICT: |
| 314 | pr_cont("Copyback Parity/Victim error.\n"); |
| 315 | break; |
| 316 | |
| 317 | case R4_SNOOP: |
| 318 | pr_cont("Tag Snoop error.\n"); |
| 319 | break; |
| 320 | |
| 321 | default: |
| 322 | ret = false; |
| 323 | break; |
| 324 | } |
| 325 | } else |
| 326 | ret = false; |
| 327 | |
| 328 | return ret; |
| 329 | } |
| 330 | |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 331 | static bool cat_mc1_mce(u16 ec, u8 xec) |
Borislav Petkov | dd53bce | 2010-08-26 19:05:49 +0200 | [diff] [blame] | 332 | { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 333 | u8 r4 = R4(ec); |
Borislav Petkov | dd53bce | 2010-08-26 19:05:49 +0200 | [diff] [blame] | 334 | bool ret = true; |
| 335 | |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 336 | if (!MEM_ERROR(ec)) |
| 337 | return false; |
Borislav Petkov | dd53bce | 2010-08-26 19:05:49 +0200 | [diff] [blame] | 338 | |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 339 | if (TT(ec) != TT_INSTR) |
| 340 | return false; |
| 341 | |
| 342 | if (r4 == R4_IRD) |
| 343 | pr_cont("Data/tag array parity error for a tag hit.\n"); |
| 344 | else if (r4 == R4_SNOOP) |
| 345 | pr_cont("Tag error during snoop/victimization.\n"); |
| 346 | else if (xec == 0x0) |
| 347 | pr_cont("Tag parity error from victim castout.\n"); |
| 348 | else if (xec == 0x2) |
| 349 | pr_cont("Microcode patch RAM parity error.\n"); |
| 350 | else |
| 351 | ret = false; |
| 352 | |
Borislav Petkov | dd53bce | 2010-08-26 19:05:49 +0200 | [diff] [blame] | 353 | return ret; |
| 354 | } |
| 355 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 356 | static bool f15h_mc1_mce(u16 ec, u8 xec) |
Borislav Petkov | 86039cd | 2010-11-08 15:03:35 +0100 | [diff] [blame] | 357 | { |
| 358 | bool ret = true; |
| 359 | |
| 360 | if (!MEM_ERROR(ec)) |
| 361 | return false; |
| 362 | |
| 363 | switch (xec) { |
| 364 | case 0x0 ... 0xa: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 365 | pr_cont("%s.\n", f15h_mc1_mce_desc[xec]); |
Borislav Petkov | 86039cd | 2010-11-08 15:03:35 +0100 | [diff] [blame] | 366 | break; |
| 367 | |
| 368 | case 0xd: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 369 | pr_cont("%s.\n", f15h_mc1_mce_desc[xec-2]); |
Borislav Petkov | 86039cd | 2010-11-08 15:03:35 +0100 | [diff] [blame] | 370 | break; |
| 371 | |
Borislav Petkov | 6c1173a | 2011-11-21 19:45:34 +0100 | [diff] [blame] | 372 | case 0x10: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 373 | pr_cont("%s.\n", f15h_mc1_mce_desc[xec-4]); |
Borislav Petkov | 6c1173a | 2011-11-21 19:45:34 +0100 | [diff] [blame] | 374 | break; |
| 375 | |
| 376 | case 0x11 ... 0x14: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 377 | pr_cont("Decoder %s parity error.\n", f15h_mc1_mce_desc[xec-4]); |
Borislav Petkov | 86039cd | 2010-11-08 15:03:35 +0100 | [diff] [blame] | 378 | break; |
| 379 | |
| 380 | default: |
| 381 | ret = false; |
| 382 | } |
| 383 | return ret; |
| 384 | } |
| 385 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 386 | static void decode_mc1_mce(struct mce *m) |
Borislav Petkov | ab5535e | 2009-07-28 14:06:26 +0200 | [diff] [blame] | 387 | { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 388 | u16 ec = EC(m->status); |
| 389 | u8 xec = XEC(m->status, xec_mask); |
Borislav Petkov | ab5535e | 2009-07-28 14:06:26 +0200 | [diff] [blame] | 390 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 391 | pr_emerg(HW_ERR "MC1 Error: "); |
Borislav Petkov | ab5535e | 2009-07-28 14:06:26 +0200 | [diff] [blame] | 392 | |
Borislav Petkov | dd53bce | 2010-08-26 19:05:49 +0200 | [diff] [blame] | 393 | if (TLB_ERROR(ec)) |
| 394 | pr_cont("%s TLB %s.\n", LL_MSG(ec), |
| 395 | (xec ? "multimatch" : "parity error")); |
| 396 | else if (BUS_ERROR(ec)) { |
Borislav Petkov | 525906b | 2010-10-15 15:27:02 +0200 | [diff] [blame] | 397 | bool k8 = (boot_cpu_data.x86 == 0xf && (m->status & BIT_64(58))); |
Borislav Petkov | ab5535e | 2009-07-28 14:06:26 +0200 | [diff] [blame] | 398 | |
Borislav Petkov | dd53bce | 2010-08-26 19:05:49 +0200 | [diff] [blame] | 399 | pr_cont("during %s.\n", (k8 ? "system linefill" : "NB data read")); |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 400 | } else if (fam_ops->mc1_mce(ec, xec)) |
Borislav Petkov | dd53bce | 2010-08-26 19:05:49 +0200 | [diff] [blame] | 401 | ; |
| 402 | else |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 403 | pr_emerg(HW_ERR "Corrupted MC1 MCE info?\n"); |
Borislav Petkov | ab5535e | 2009-07-28 14:06:26 +0200 | [diff] [blame] | 404 | } |
| 405 | |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 406 | static bool k8_mc2_mce(u16 ec, u8 xec) |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 407 | { |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 408 | bool ret = true; |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 409 | |
| 410 | if (xec == 0x1) |
| 411 | pr_cont(" in the write data buffers.\n"); |
| 412 | else if (xec == 0x3) |
| 413 | pr_cont(" in the victim data buffers.\n"); |
| 414 | else if (xec == 0x2 && MEM_ERROR(ec)) |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 415 | pr_cont(": %s error in the L2 cache tags.\n", R4_MSG(ec)); |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 416 | else if (xec == 0x0) { |
| 417 | if (TLB_ERROR(ec)) |
| 418 | pr_cont(": %s error in a Page Descriptor Cache or " |
| 419 | "Guest TLB.\n", TT_MSG(ec)); |
| 420 | else if (BUS_ERROR(ec)) |
| 421 | pr_cont(": %s/ECC error in data read from NB: %s.\n", |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 422 | R4_MSG(ec), PP_MSG(ec)); |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 423 | else if (MEM_ERROR(ec)) { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 424 | u8 r4 = R4(ec); |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 425 | |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 426 | if (r4 >= 0x7) |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 427 | pr_cont(": %s error during data copyback.\n", |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 428 | R4_MSG(ec)); |
| 429 | else if (r4 <= 0x1) |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 430 | pr_cont(": %s parity/ECC error during data " |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 431 | "access from L2.\n", R4_MSG(ec)); |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 432 | else |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 433 | ret = false; |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 434 | } else |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 435 | ret = false; |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 436 | } else |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 437 | ret = false; |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 438 | |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 439 | return ret; |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 440 | } |
| 441 | |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 442 | static bool f15h_mc2_mce(u16 ec, u8 xec) |
Borislav Petkov | 70fdb49 | 2010-09-21 20:45:10 +0200 | [diff] [blame] | 443 | { |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 444 | bool ret = true; |
Borislav Petkov | 70fdb49 | 2010-09-21 20:45:10 +0200 | [diff] [blame] | 445 | |
| 446 | if (TLB_ERROR(ec)) { |
| 447 | if (xec == 0x0) |
| 448 | pr_cont("Data parity TLB read error.\n"); |
| 449 | else if (xec == 0x1) |
| 450 | pr_cont("Poison data provided for TLB fill.\n"); |
| 451 | else |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 452 | ret = false; |
Borislav Petkov | 70fdb49 | 2010-09-21 20:45:10 +0200 | [diff] [blame] | 453 | } else if (BUS_ERROR(ec)) { |
| 454 | if (xec > 2) |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 455 | ret = false; |
Borislav Petkov | 70fdb49 | 2010-09-21 20:45:10 +0200 | [diff] [blame] | 456 | |
| 457 | pr_cont("Error during attempted NB data read.\n"); |
| 458 | } else if (MEM_ERROR(ec)) { |
| 459 | switch (xec) { |
| 460 | case 0x4 ... 0xc: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 461 | pr_cont("%s.\n", f15h_mc2_mce_desc[xec - 0x4]); |
Borislav Petkov | 70fdb49 | 2010-09-21 20:45:10 +0200 | [diff] [blame] | 462 | break; |
| 463 | |
| 464 | case 0x10 ... 0x14: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 465 | pr_cont("%s.\n", f15h_mc2_mce_desc[xec - 0x7]); |
Borislav Petkov | 70fdb49 | 2010-09-21 20:45:10 +0200 | [diff] [blame] | 466 | break; |
| 467 | |
| 468 | default: |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 469 | ret = false; |
Borislav Petkov | 70fdb49 | 2010-09-21 20:45:10 +0200 | [diff] [blame] | 470 | } |
| 471 | } |
| 472 | |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 473 | return ret; |
| 474 | } |
Borislav Petkov | 70fdb49 | 2010-09-21 20:45:10 +0200 | [diff] [blame] | 475 | |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 476 | static bool f16h_mc2_mce(u16 ec, u8 xec) |
| 477 | { |
| 478 | u8 r4 = R4(ec); |
| 479 | |
| 480 | if (!MEM_ERROR(ec)) |
| 481 | return false; |
| 482 | |
| 483 | switch (xec) { |
| 484 | case 0x04 ... 0x05: |
| 485 | pr_cont("%cBUFF parity error.\n", (r4 == R4_RD) ? 'I' : 'O'); |
| 486 | break; |
| 487 | |
| 488 | case 0x09 ... 0x0b: |
| 489 | case 0x0d ... 0x0f: |
| 490 | pr_cont("ECC error in L2 tag (%s).\n", |
| 491 | ((r4 == R4_GEN) ? "BankReq" : |
| 492 | ((r4 == R4_SNOOP) ? "Prb" : "Fill"))); |
| 493 | break; |
| 494 | |
| 495 | case 0x10 ... 0x19: |
| 496 | case 0x1b: |
| 497 | pr_cont("ECC error in L2 data array (%s).\n", |
| 498 | (((r4 == R4_RD) && !(xec & 0x3)) ? "Hit" : |
| 499 | ((r4 == R4_GEN) ? "Attr" : |
| 500 | ((r4 == R4_EVICT) ? "Vict" : "Fill")))); |
| 501 | break; |
| 502 | |
| 503 | case 0x1c ... 0x1d: |
| 504 | case 0x1f: |
| 505 | pr_cont("Parity error in L2 attribute bits (%s).\n", |
| 506 | ((r4 == R4_RD) ? "Hit" : |
| 507 | ((r4 == R4_GEN) ? "Attr" : "Fill"))); |
| 508 | break; |
| 509 | |
| 510 | default: |
| 511 | return false; |
| 512 | } |
| 513 | |
| 514 | return true; |
| 515 | } |
| 516 | |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 517 | static void decode_mc2_mce(struct mce *m) |
| 518 | { |
| 519 | u16 ec = EC(m->status); |
| 520 | u8 xec = XEC(m->status, xec_mask); |
| 521 | |
| 522 | pr_emerg(HW_ERR "MC2 Error: "); |
| 523 | |
| 524 | if (!fam_ops->mc2_mce(ec, xec)) |
| 525 | pr_cont(HW_ERR "Corrupted MC2 MCE info?\n"); |
Borislav Petkov | 70fdb49 | 2010-09-21 20:45:10 +0200 | [diff] [blame] | 526 | } |
| 527 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 528 | static void decode_mc3_mce(struct mce *m) |
Borislav Petkov | f9350ef | 2009-07-28 14:17:30 +0200 | [diff] [blame] | 529 | { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 530 | u16 ec = EC(m->status); |
| 531 | u8 xec = XEC(m->status, xec_mask); |
Borislav Petkov | ded5062 | 2010-08-27 17:03:34 +0200 | [diff] [blame] | 532 | |
Borislav Petkov | b18434c | 2010-09-22 11:53:32 +0200 | [diff] [blame] | 533 | if (boot_cpu_data.x86 >= 0x14) { |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 534 | pr_emerg("You shouldn't be seeing MC3 MCE on this cpu family," |
Borislav Petkov | ded5062 | 2010-08-27 17:03:34 +0200 | [diff] [blame] | 535 | " please report on LKML.\n"); |
| 536 | return; |
| 537 | } |
Borislav Petkov | f9350ef | 2009-07-28 14:17:30 +0200 | [diff] [blame] | 538 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 539 | pr_emerg(HW_ERR "MC3 Error"); |
Borislav Petkov | f9350ef | 2009-07-28 14:17:30 +0200 | [diff] [blame] | 540 | |
| 541 | if (xec == 0x0) { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 542 | u8 r4 = R4(ec); |
Borislav Petkov | f9350ef | 2009-07-28 14:17:30 +0200 | [diff] [blame] | 543 | |
Borislav Petkov | ded5062 | 2010-08-27 17:03:34 +0200 | [diff] [blame] | 544 | if (!BUS_ERROR(ec) || (r4 != R4_DRD && r4 != R4_DWR)) |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 545 | goto wrong_mc3_mce; |
Borislav Petkov | f9350ef | 2009-07-28 14:17:30 +0200 | [diff] [blame] | 546 | |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 547 | pr_cont(" during %s.\n", R4_MSG(ec)); |
Borislav Petkov | ded5062 | 2010-08-27 17:03:34 +0200 | [diff] [blame] | 548 | } else |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 549 | goto wrong_mc3_mce; |
Borislav Petkov | ded5062 | 2010-08-27 17:03:34 +0200 | [diff] [blame] | 550 | |
Borislav Petkov | f9350ef | 2009-07-28 14:17:30 +0200 | [diff] [blame] | 551 | return; |
| 552 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 553 | wrong_mc3_mce: |
| 554 | pr_emerg(HW_ERR "Corrupted MC3 MCE info?\n"); |
Borislav Petkov | f9350ef | 2009-07-28 14:17:30 +0200 | [diff] [blame] | 555 | } |
| 556 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 557 | static void decode_mc4_mce(struct mce *m) |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 558 | { |
Borislav Petkov | 6878267 | 2011-11-24 21:29:57 +0100 | [diff] [blame] | 559 | struct cpuinfo_x86 *c = &boot_cpu_data; |
| 560 | int node_id = amd_get_nb_id(m->extcpu); |
| 561 | u16 ec = EC(m->status); |
| 562 | u8 xec = XEC(m->status, 0x1f); |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 563 | u8 offset = 0; |
| 564 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 565 | pr_emerg(HW_ERR "MC4 Error (node %d): ", node_id); |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 566 | |
Borislav Petkov | 6878267 | 2011-11-24 21:29:57 +0100 | [diff] [blame] | 567 | switch (xec) { |
| 568 | case 0x0 ... 0xe: |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 569 | |
Borislav Petkov | 6878267 | 2011-11-24 21:29:57 +0100 | [diff] [blame] | 570 | /* special handling for DRAM ECCs */ |
| 571 | if (xec == 0x0 || xec == 0x8) { |
| 572 | /* no ECCs on F11h */ |
| 573 | if (c->x86 == 0x11) |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 574 | goto wrong_mc4_mce; |
Borislav Petkov | 6878267 | 2011-11-24 21:29:57 +0100 | [diff] [blame] | 575 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 576 | pr_cont("%s.\n", mc4_mce_desc[xec]); |
Borislav Petkov | 6878267 | 2011-11-24 21:29:57 +0100 | [diff] [blame] | 577 | |
| 578 | if (nb_bus_decoder) |
| 579 | nb_bus_decoder(node_id, m); |
| 580 | return; |
| 581 | } |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 582 | break; |
| 583 | |
| 584 | case 0xf: |
| 585 | if (TLB_ERROR(ec)) |
| 586 | pr_cont("GART Table Walk data error.\n"); |
| 587 | else if (BUS_ERROR(ec)) |
| 588 | pr_cont("DMA Exclusion Vector Table Walk error.\n"); |
| 589 | else |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 590 | goto wrong_mc4_mce; |
Borislav Petkov | 6878267 | 2011-11-24 21:29:57 +0100 | [diff] [blame] | 591 | return; |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 592 | |
Borislav Petkov | 05cd667 | 2010-09-22 15:06:24 +0200 | [diff] [blame] | 593 | case 0x19: |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 594 | if (boot_cpu_data.x86 == 0x15 || boot_cpu_data.x86 == 0x16) |
Borislav Petkov | 05cd667 | 2010-09-22 15:06:24 +0200 | [diff] [blame] | 595 | pr_cont("Compute Unit Data Error.\n"); |
| 596 | else |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 597 | goto wrong_mc4_mce; |
Borislav Petkov | 6878267 | 2011-11-24 21:29:57 +0100 | [diff] [blame] | 598 | return; |
Borislav Petkov | 05cd667 | 2010-09-22 15:06:24 +0200 | [diff] [blame] | 599 | |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 600 | case 0x1c ... 0x1f: |
Borislav Petkov | 6878267 | 2011-11-24 21:29:57 +0100 | [diff] [blame] | 601 | offset = 13; |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 602 | break; |
| 603 | |
| 604 | default: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 605 | goto wrong_mc4_mce; |
Borislav Petkov | 6878267 | 2011-11-24 21:29:57 +0100 | [diff] [blame] | 606 | } |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 607 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 608 | pr_cont("%s.\n", mc4_mce_desc[xec - offset]); |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 609 | return; |
| 610 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 611 | wrong_mc4_mce: |
| 612 | pr_emerg(HW_ERR "Corrupted MC4 MCE info?\n"); |
Borislav Petkov | d93cc22 | 2009-07-28 10:56:15 +0200 | [diff] [blame] | 613 | } |
Borislav Petkov | d93cc22 | 2009-07-28 10:56:15 +0200 | [diff] [blame] | 614 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 615 | static void decode_mc5_mce(struct mce *m) |
Borislav Petkov | 53bd5fe | 2009-07-28 14:20:46 +0200 | [diff] [blame] | 616 | { |
Borislav Petkov | 8259a7e | 2010-09-22 15:28:59 +0200 | [diff] [blame] | 617 | struct cpuinfo_x86 *c = &boot_cpu_data; |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 618 | u8 xec = XEC(m->status, xec_mask); |
Borislav Petkov | 8259a7e | 2010-09-22 15:28:59 +0200 | [diff] [blame] | 619 | |
| 620 | if (c->x86 == 0xf || c->x86 == 0x11) |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 621 | goto wrong_mc5_mce; |
Borislav Petkov | fe4ea26 | 2010-08-31 18:38:24 +0200 | [diff] [blame] | 622 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 623 | pr_emerg(HW_ERR "MC5 Error: "); |
Borislav Petkov | 8259a7e | 2010-09-22 15:28:59 +0200 | [diff] [blame] | 624 | |
| 625 | if (xec == 0x0 || xec == 0xc) |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 626 | pr_cont("%s.\n", mc5_mce_desc[xec]); |
Borislav Petkov | 8259a7e | 2010-09-22 15:28:59 +0200 | [diff] [blame] | 627 | else if (xec < 0xd) |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 628 | pr_cont("%s parity error.\n", mc5_mce_desc[xec]); |
Borislav Petkov | 8259a7e | 2010-09-22 15:28:59 +0200 | [diff] [blame] | 629 | else |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 630 | goto wrong_mc5_mce; |
Borislav Petkov | 8259a7e | 2010-09-22 15:28:59 +0200 | [diff] [blame] | 631 | |
| 632 | return; |
Borislav Petkov | fe4ea26 | 2010-08-31 18:38:24 +0200 | [diff] [blame] | 633 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 634 | wrong_mc5_mce: |
| 635 | pr_emerg(HW_ERR "Corrupted MC5 MCE info?\n"); |
Borislav Petkov | 53bd5fe | 2009-07-28 14:20:46 +0200 | [diff] [blame] | 636 | } |
| 637 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 638 | static void decode_mc6_mce(struct mce *m) |
Borislav Petkov | b8f85c4 | 2010-09-22 15:37:58 +0200 | [diff] [blame] | 639 | { |
Borislav Petkov | 6245288 | 2010-09-22 16:08:37 +0200 | [diff] [blame] | 640 | u8 xec = XEC(m->status, xec_mask); |
Borislav Petkov | b8f85c4 | 2010-09-22 15:37:58 +0200 | [diff] [blame] | 641 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 642 | pr_emerg(HW_ERR "MC6 Error: "); |
Borislav Petkov | b8f85c4 | 2010-09-22 15:37:58 +0200 | [diff] [blame] | 643 | |
| 644 | switch (xec) { |
| 645 | case 0x1: |
| 646 | pr_cont("Free List"); |
| 647 | break; |
| 648 | |
| 649 | case 0x2: |
| 650 | pr_cont("Physical Register File"); |
| 651 | break; |
| 652 | |
| 653 | case 0x3: |
| 654 | pr_cont("Retire Queue"); |
| 655 | break; |
| 656 | |
| 657 | case 0x4: |
| 658 | pr_cont("Scheduler table"); |
| 659 | break; |
| 660 | |
| 661 | case 0x5: |
| 662 | pr_cont("Status Register File"); |
| 663 | break; |
| 664 | |
| 665 | default: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 666 | goto wrong_mc6_mce; |
Borislav Petkov | b8f85c4 | 2010-09-22 15:37:58 +0200 | [diff] [blame] | 667 | break; |
| 668 | } |
| 669 | |
| 670 | pr_cont(" parity error.\n"); |
| 671 | |
| 672 | return; |
| 673 | |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 674 | wrong_mc6_mce: |
| 675 | pr_emerg(HW_ERR "Corrupted MC6 MCE info?\n"); |
Borislav Petkov | b8f85c4 | 2010-09-22 15:37:58 +0200 | [diff] [blame] | 676 | } |
| 677 | |
Borislav Petkov | 6337583 | 2010-09-06 18:13:39 +0200 | [diff] [blame] | 678 | static inline void amd_decode_err_code(u16 ec) |
Borislav Petkov | d93cc22 | 2009-07-28 10:56:15 +0200 | [diff] [blame] | 679 | { |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 680 | if (INT_ERROR(ec)) { |
| 681 | pr_emerg(HW_ERR "internal: %s\n", UU_MSG(ec)); |
| 682 | return; |
| 683 | } |
Borislav Petkov | fa7ae8c | 2010-09-22 17:42:27 +0200 | [diff] [blame] | 684 | |
| 685 | pr_emerg(HW_ERR "cache level: %s", LL_MSG(ec)); |
| 686 | |
| 687 | if (BUS_ERROR(ec)) |
| 688 | pr_cont(", mem/io: %s", II_MSG(ec)); |
| 689 | else |
| 690 | pr_cont(", tx: %s", TT_MSG(ec)); |
| 691 | |
| 692 | if (MEM_ERROR(ec) || BUS_ERROR(ec)) { |
| 693 | pr_cont(", mem-tx: %s", R4_MSG(ec)); |
| 694 | |
| 695 | if (BUS_ERROR(ec)) |
| 696 | pr_cont(", part-proc: %s (%s)", PP_MSG(ec), TO_MSG(ec)); |
| 697 | } |
| 698 | |
| 699 | pr_cont("\n"); |
Borislav Petkov | 549d042 | 2009-07-24 13:51:42 +0200 | [diff] [blame] | 700 | } |
Borislav Petkov | 549d042 | 2009-07-24 13:51:42 +0200 | [diff] [blame] | 701 | |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 702 | /* |
| 703 | * Filter out unwanted MCE signatures here. |
| 704 | */ |
| 705 | static bool amd_filter_mce(struct mce *m) |
| 706 | { |
| 707 | u8 xec = (m->status >> 16) & 0x1f; |
| 708 | |
| 709 | /* |
| 710 | * NB GART TLB error reporting is disabled by default. |
| 711 | */ |
| 712 | if (m->bank == 4 && xec == 0x5 && !report_gart_errors) |
| 713 | return true; |
| 714 | |
| 715 | return false; |
| 716 | } |
| 717 | |
Borislav Petkov | d5c6770 | 2012-09-14 20:25:37 +0200 | [diff] [blame] | 718 | static const char *decode_error_status(struct mce *m) |
| 719 | { |
| 720 | if (m->status & MCI_STATUS_UC) { |
| 721 | if (m->status & MCI_STATUS_PCC) |
| 722 | return "System Fatal error."; |
| 723 | if (m->mcgstatus & MCG_STATUS_RIPV) |
| 724 | return "Uncorrected, software restartable error."; |
| 725 | return "Uncorrected, software containable error."; |
| 726 | } |
| 727 | |
| 728 | if (m->status & MCI_STATUS_DEFERRED) |
| 729 | return "Deferred error."; |
| 730 | |
| 731 | return "Corrected error, no action required."; |
| 732 | } |
| 733 | |
Borislav Petkov | 9cdeb40 | 2010-09-02 18:33:24 +0200 | [diff] [blame] | 734 | int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data) |
Borislav Petkov | 549d042 | 2009-07-24 13:51:42 +0200 | [diff] [blame] | 735 | { |
Borislav Petkov | fb25319 | 2009-10-07 13:20:38 +0200 | [diff] [blame] | 736 | struct mce *m = (struct mce *)data; |
Borislav Petkov | f89f838 | 2012-09-13 15:14:22 +0200 | [diff] [blame] | 737 | struct cpuinfo_x86 *c = &cpu_data(m->extcpu); |
Borislav Petkov | b0b07a2 | 2011-08-24 18:44:22 +0200 | [diff] [blame] | 738 | int ecc; |
Borislav Petkov | 549d042 | 2009-07-24 13:51:42 +0200 | [diff] [blame] | 739 | |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 740 | if (amd_filter_mce(m)) |
| 741 | return NOTIFY_STOP; |
| 742 | |
Borislav Petkov | 5196624 | 2009-07-28 13:50:43 +0200 | [diff] [blame] | 743 | switch (m->bank) { |
| 744 | case 0: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 745 | decode_mc0_mce(m); |
Borislav Petkov | 5196624 | 2009-07-28 13:50:43 +0200 | [diff] [blame] | 746 | break; |
Borislav Petkov | d93cc22 | 2009-07-28 10:56:15 +0200 | [diff] [blame] | 747 | |
Borislav Petkov | ab5535e | 2009-07-28 14:06:26 +0200 | [diff] [blame] | 748 | case 1: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 749 | decode_mc1_mce(m); |
Borislav Petkov | ab5535e | 2009-07-28 14:06:26 +0200 | [diff] [blame] | 750 | break; |
| 751 | |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 752 | case 2: |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 753 | decode_mc2_mce(m); |
Borislav Petkov | 56cad2d | 2009-07-28 14:14:24 +0200 | [diff] [blame] | 754 | break; |
| 755 | |
Borislav Petkov | f9350ef | 2009-07-28 14:17:30 +0200 | [diff] [blame] | 756 | case 3: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 757 | decode_mc3_mce(m); |
Borislav Petkov | f9350ef | 2009-07-28 14:17:30 +0200 | [diff] [blame] | 758 | break; |
| 759 | |
Borislav Petkov | 5196624 | 2009-07-28 13:50:43 +0200 | [diff] [blame] | 760 | case 4: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 761 | decode_mc4_mce(m); |
Borislav Petkov | 5196624 | 2009-07-28 13:50:43 +0200 | [diff] [blame] | 762 | break; |
| 763 | |
Borislav Petkov | 53bd5fe | 2009-07-28 14:20:46 +0200 | [diff] [blame] | 764 | case 5: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 765 | decode_mc5_mce(m); |
Borislav Petkov | 53bd5fe | 2009-07-28 14:20:46 +0200 | [diff] [blame] | 766 | break; |
| 767 | |
Borislav Petkov | b8f85c4 | 2010-09-22 15:37:58 +0200 | [diff] [blame] | 768 | case 6: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 769 | decode_mc6_mce(m); |
Borislav Petkov | b8f85c4 | 2010-09-22 15:37:58 +0200 | [diff] [blame] | 770 | break; |
| 771 | |
Borislav Petkov | 5196624 | 2009-07-28 13:50:43 +0200 | [diff] [blame] | 772 | default: |
| 773 | break; |
Borislav Petkov | b69b29d | 2009-07-27 16:21:14 +0200 | [diff] [blame] | 774 | } |
Borislav Petkov | 5196624 | 2009-07-28 13:50:43 +0200 | [diff] [blame] | 775 | |
Borislav Petkov | d5c6770 | 2012-09-14 20:25:37 +0200 | [diff] [blame] | 776 | pr_emerg(HW_ERR "Error Status: %s\n", decode_error_status(m)); |
| 777 | |
Borislav Petkov | d824c77 | 2012-09-14 20:10:59 +0200 | [diff] [blame] | 778 | pr_emerg(HW_ERR "CPU:%d (%x:%x:%x) MC%d_STATUS[%s|%s|%s|%s|%s", |
| 779 | m->extcpu, |
| 780 | c->x86, c->x86_model, c->x86_mask, |
| 781 | m->bank, |
| 782 | ((m->status & MCI_STATUS_OVER) ? "Over" : "-"), |
| 783 | ((m->status & MCI_STATUS_UC) ? "UE" : "CE"), |
| 784 | ((m->status & MCI_STATUS_MISCV) ? "MiscV" : "-"), |
| 785 | ((m->status & MCI_STATUS_PCC) ? "PCC" : "-"), |
| 786 | ((m->status & MCI_STATUS_ADDRV) ? "AddrV" : "-")); |
| 787 | |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 788 | if (c->x86 == 0x15 || c->x86 == 0x16) |
Borislav Petkov | d824c77 | 2012-09-14 20:10:59 +0200 | [diff] [blame] | 789 | pr_cont("|%s|%s", |
Borislav Petkov | d5c6770 | 2012-09-14 20:25:37 +0200 | [diff] [blame] | 790 | ((m->status & MCI_STATUS_DEFERRED) ? "Deferred" : "-"), |
| 791 | ((m->status & MCI_STATUS_POISON) ? "Poison" : "-")); |
Borislav Petkov | d824c77 | 2012-09-14 20:10:59 +0200 | [diff] [blame] | 792 | |
| 793 | /* do the two bits[14:13] together */ |
| 794 | ecc = (m->status >> 45) & 0x3; |
| 795 | if (ecc) |
| 796 | pr_cont("|%sECC", ((ecc == 2) ? "C" : "U")); |
| 797 | |
| 798 | pr_cont("]: 0x%016llx\n", m->status); |
| 799 | |
| 800 | if (m->status & MCI_STATUS_ADDRV) |
| 801 | pr_emerg(HW_ERR "MC%d_ADDR: 0x%016llx\n", m->bank, m->addr); |
| 802 | |
Borislav Petkov | 5196624 | 2009-07-28 13:50:43 +0200 | [diff] [blame] | 803 | amd_decode_err_code(m->status & 0xffff); |
Borislav Petkov | fb25319 | 2009-10-07 13:20:38 +0200 | [diff] [blame] | 804 | |
| 805 | return NOTIFY_STOP; |
Borislav Petkov | 549d042 | 2009-07-24 13:51:42 +0200 | [diff] [blame] | 806 | } |
Borislav Petkov | 9cdeb40 | 2010-09-02 18:33:24 +0200 | [diff] [blame] | 807 | EXPORT_SYMBOL_GPL(amd_decode_mce); |
Ingo Molnar | f436f8b | 2009-10-01 16:14:32 +0200 | [diff] [blame] | 808 | |
Borislav Petkov | fb25319 | 2009-10-07 13:20:38 +0200 | [diff] [blame] | 809 | static struct notifier_block amd_mce_dec_nb = { |
| 810 | .notifier_call = amd_decode_mce, |
| 811 | }; |
| 812 | |
Ingo Molnar | f436f8b | 2009-10-01 16:14:32 +0200 | [diff] [blame] | 813 | static int __init mce_amd_init(void) |
| 814 | { |
Borislav Petkov | bad11e0 | 2010-09-22 17:44:51 +0200 | [diff] [blame] | 815 | struct cpuinfo_x86 *c = &boot_cpu_data; |
| 816 | |
| 817 | if (c->x86_vendor != X86_VENDOR_AMD) |
Borislav Petkov | e045c29 | 2010-08-06 18:55:45 +0200 | [diff] [blame] | 818 | return 0; |
| 819 | |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 820 | if (c->x86 < 0xf || c->x86 > 0x16) |
Borislav Petkov | e045c29 | 2010-08-06 18:55:45 +0200 | [diff] [blame] | 821 | return 0; |
| 822 | |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 823 | fam_ops = kzalloc(sizeof(struct amd_decoder_ops), GFP_KERNEL); |
| 824 | if (!fam_ops) |
| 825 | return -ENOMEM; |
| 826 | |
Borislav Petkov | bad11e0 | 2010-09-22 17:44:51 +0200 | [diff] [blame] | 827 | switch (c->x86) { |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 828 | case 0xf: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 829 | fam_ops->mc0_mce = k8_mc0_mce; |
| 830 | fam_ops->mc1_mce = k8_mc1_mce; |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 831 | fam_ops->mc2_mce = k8_mc2_mce; |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 832 | break; |
| 833 | |
| 834 | case 0x10: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 835 | fam_ops->mc0_mce = f10h_mc0_mce; |
| 836 | fam_ops->mc1_mce = k8_mc1_mce; |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 837 | fam_ops->mc2_mce = k8_mc2_mce; |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 838 | break; |
| 839 | |
Borislav Petkov | f0157b3 | 2010-10-05 19:07:16 +0200 | [diff] [blame] | 840 | case 0x11: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 841 | fam_ops->mc0_mce = k8_mc0_mce; |
| 842 | fam_ops->mc1_mce = k8_mc1_mce; |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 843 | fam_ops->mc2_mce = k8_mc2_mce; |
Borislav Petkov | f0157b3 | 2010-10-05 19:07:16 +0200 | [diff] [blame] | 844 | break; |
| 845 | |
Borislav Petkov | 9be0bb1 | 2010-09-16 15:08:14 +0200 | [diff] [blame] | 846 | case 0x12: |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 847 | fam_ops->mc0_mce = f12h_mc0_mce; |
| 848 | fam_ops->mc1_mce = k8_mc1_mce; |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 849 | fam_ops->mc2_mce = k8_mc2_mce; |
Borislav Petkov | 9be0bb1 | 2010-09-16 15:08:14 +0200 | [diff] [blame] | 850 | break; |
| 851 | |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 852 | case 0x14: |
Borislav Petkov | 5ce88f6 | 2010-08-31 18:28:08 +0200 | [diff] [blame] | 853 | nb_err_cpumask = 0x3; |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 854 | fam_ops->mc0_mce = cat_mc0_mce; |
| 855 | fam_ops->mc1_mce = cat_mc1_mce; |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 856 | fam_ops->mc2_mce = k8_mc2_mce; |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 857 | break; |
| 858 | |
Borislav Petkov | 2be64bf | 2010-09-17 19:11:47 +0200 | [diff] [blame] | 859 | case 0x15: |
| 860 | xec_mask = 0x1f; |
Borislav Petkov | f05c41a | 2012-09-11 18:57:43 +0200 | [diff] [blame] | 861 | fam_ops->mc0_mce = f15h_mc0_mce; |
| 862 | fam_ops->mc1_mce = f15h_mc1_mce; |
Jacob Shin | 4a73d3d | 2012-12-18 15:06:10 -0600 | [diff] [blame] | 863 | fam_ops->mc2_mce = f15h_mc2_mce; |
Borislav Petkov | 2be64bf | 2010-09-17 19:11:47 +0200 | [diff] [blame] | 864 | break; |
| 865 | |
Jacob Shin | 980eec8 | 2012-12-18 15:06:11 -0600 | [diff] [blame] | 866 | case 0x16: |
| 867 | xec_mask = 0x1f; |
| 868 | fam_ops->mc0_mce = cat_mc0_mce; |
| 869 | fam_ops->mc1_mce = cat_mc1_mce; |
| 870 | fam_ops->mc2_mce = f16h_mc2_mce; |
| 871 | break; |
| 872 | |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 873 | default: |
Borislav Petkov | ec3e82d | 2012-04-04 14:21:02 +0200 | [diff] [blame] | 874 | printk(KERN_WARNING "Huh? What family is it: 0x%x?!\n", c->x86); |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 875 | kfree(fam_ops); |
| 876 | return -EINVAL; |
| 877 | } |
| 878 | |
Borislav Petkov | 9530d60 | 2010-09-06 15:05:45 +0200 | [diff] [blame] | 879 | pr_info("MCE: In-kernel MCE decoding enabled.\n"); |
| 880 | |
Borislav Petkov | 3653ada | 2011-12-04 15:12:09 +0100 | [diff] [blame] | 881 | mce_register_decode_chain(&amd_mce_dec_nb); |
Ingo Molnar | f436f8b | 2009-10-01 16:14:32 +0200 | [diff] [blame] | 882 | |
| 883 | return 0; |
| 884 | } |
| 885 | early_initcall(mce_amd_init); |
Borislav Petkov | 0d18b2e | 2009-10-02 15:31:48 +0200 | [diff] [blame] | 886 | |
| 887 | #ifdef MODULE |
| 888 | static void __exit mce_amd_exit(void) |
| 889 | { |
Borislav Petkov | 3653ada | 2011-12-04 15:12:09 +0100 | [diff] [blame] | 890 | mce_unregister_decode_chain(&amd_mce_dec_nb); |
Borislav Petkov | 888ab8e | 2010-08-18 15:11:35 +0200 | [diff] [blame] | 891 | kfree(fam_ops); |
Borislav Petkov | 0d18b2e | 2009-10-02 15:31:48 +0200 | [diff] [blame] | 892 | } |
| 893 | |
| 894 | MODULE_DESCRIPTION("AMD MCE decoder"); |
| 895 | MODULE_ALIAS("edac-mce-amd"); |
| 896 | MODULE_LICENSE("GPL"); |
| 897 | module_exit(mce_amd_exit); |
| 898 | #endif |