soc/amd/picasso: add missing banks to mca_bank_name array
Also use array indices for the initialization. TEST=Checked with the public Picasso PPR #55570-B1 Rev 3.16 Change-Id: I10a65210da73e64b67d613609fcc0f9a245a81fb Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56273 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
dd405bc018
commit
799742af3d
|
@ -135,14 +135,29 @@ failed:
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *const mca_bank_name[] = {
|
static const char *const mca_bank_name[] = {
|
||||||
"Load-store unit",
|
[0] = "Load-store unit",
|
||||||
"Instruction fetch unit",
|
[1] = "Instruction fetch unit",
|
||||||
"L2 cache unit",
|
[2] = "L2 cache unit",
|
||||||
"Decode unit",
|
[3] = "Decode unit",
|
||||||
"",
|
[4] = "",
|
||||||
"Execution unit",
|
[5] = "Execution unit",
|
||||||
"Floating point unit",
|
[6] = "Floating point unit",
|
||||||
"L3 cache unit"
|
[7] = "L3 cache unit",
|
||||||
|
[8] = "L3 cache unit",
|
||||||
|
[9] = "L3 cache unit",
|
||||||
|
[10] = "L3 cache unit",
|
||||||
|
[11] = "L3 cache unit",
|
||||||
|
[12] = "L3 cache unit",
|
||||||
|
[13] = "L3 cache unit",
|
||||||
|
[14] = "L3 cache unit",
|
||||||
|
[15] = "UMC",
|
||||||
|
[16] = "UMC",
|
||||||
|
[17] = "SMU",
|
||||||
|
[18] = "PSP",
|
||||||
|
[19] = "PB",
|
||||||
|
[20] = "CS",
|
||||||
|
[21] = "CS",
|
||||||
|
[22] = "PIE",
|
||||||
};
|
};
|
||||||
|
|
||||||
static void mca_print_error(unsigned int bank)
|
static void mca_print_error(unsigned int bank)
|
||||||
|
|
Loading…
Reference in New Issue