|
@@ -82,6 +82,7 @@ static struct smca_bank_name smca_names[] = {
|
|
[SMCA_IF] = { "insn_fetch", "Instruction Fetch Unit" },
|
|
[SMCA_IF] = { "insn_fetch", "Instruction Fetch Unit" },
|
|
[SMCA_L2_CACHE] = { "l2_cache", "L2 Cache" },
|
|
[SMCA_L2_CACHE] = { "l2_cache", "L2 Cache" },
|
|
[SMCA_DE] = { "decode_unit", "Decode Unit" },
|
|
[SMCA_DE] = { "decode_unit", "Decode Unit" },
|
|
|
|
+ [SMCA_RESERVED] = { "reserved", "Reserved" },
|
|
[SMCA_EX] = { "execution_unit", "Execution Unit" },
|
|
[SMCA_EX] = { "execution_unit", "Execution Unit" },
|
|
[SMCA_FP] = { "floating_point", "Floating Point Unit" },
|
|
[SMCA_FP] = { "floating_point", "Floating Point Unit" },
|
|
[SMCA_L3_CACHE] = { "l3_cache", "L3 Cache" },
|
|
[SMCA_L3_CACHE] = { "l3_cache", "L3 Cache" },
|
|
@@ -127,6 +128,9 @@ static enum smca_bank_types smca_get_bank_type(unsigned int bank)
|
|
static struct smca_hwid smca_hwid_mcatypes[] = {
|
|
static struct smca_hwid smca_hwid_mcatypes[] = {
|
|
/* { bank_type, hwid_mcatype, xec_bitmap } */
|
|
/* { bank_type, hwid_mcatype, xec_bitmap } */
|
|
|
|
|
|
|
|
+ /* Reserved type */
|
|
|
|
+ { SMCA_RESERVED, HWID_MCATYPE(0x00, 0x0), 0x0 },
|
|
|
|
+
|
|
/* ZN Core (HWID=0xB0) MCA types */
|
|
/* ZN Core (HWID=0xB0) MCA types */
|
|
{ SMCA_LS, HWID_MCATYPE(0xB0, 0x0), 0x1FFFEF },
|
|
{ SMCA_LS, HWID_MCATYPE(0xB0, 0x0), 0x1FFFEF },
|
|
{ SMCA_IF, HWID_MCATYPE(0xB0, 0x1), 0x3FFF },
|
|
{ SMCA_IF, HWID_MCATYPE(0xB0, 0x1), 0x3FFF },
|
|
@@ -433,6 +437,9 @@ static u32 get_block_address(unsigned int cpu, u32 current_addr, u32 low, u32 hi
|
|
u32 addr = 0, offset = 0;
|
|
u32 addr = 0, offset = 0;
|
|
|
|
|
|
if (mce_flags.smca) {
|
|
if (mce_flags.smca) {
|
|
|
|
+ if (smca_get_bank_type(bank) == SMCA_RESERVED)
|
|
|
|
+ return addr;
|
|
|
|
+
|
|
if (!block) {
|
|
if (!block) {
|
|
addr = MSR_AMD64_SMCA_MCx_MISC(bank);
|
|
addr = MSR_AMD64_SMCA_MCx_MISC(bank);
|
|
} else {
|
|
} else {
|