aboutsummaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-07-13 20:54:01 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-07-14 21:55:30 +0000
commit799742af3d40dc6449c1dcb9109300e1c9d8f58b (patch)
tree916fc5c3cf7b0257c54ad6a14f57570730cc4986 /src/soc
parentdd405bc018e3730d0afddfd1cc5f18c6d5fd9794 (diff)
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>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/picasso/mca.c31
1 files changed, 23 insertions, 8 deletions
diff --git a/src/soc/amd/picasso/mca.c b/src/soc/amd/picasso/mca.c
index 23d7b61735..fcc9d3e155 100644
--- a/src/soc/amd/picasso/mca.c
+++ b/src/soc/amd/picasso/mca.c
@@ -135,14 +135,29 @@ failed:
}
static const char *const mca_bank_name[] = {
- "Load-store unit",
- "Instruction fetch unit",
- "L2 cache unit",
- "Decode unit",
- "",
- "Execution unit",
- "Floating point unit",
- "L3 cache unit"
+ [0] = "Load-store unit",
+ [1] = "Instruction fetch unit",
+ [2] = "L2 cache unit",
+ [3] = "Decode unit",
+ [4] = "",
+ [5] = "Execution unit",
+ [6] = "Floating point 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)