]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/mce, EDAC/mce_amd: Reorder SMCA bank type enums
authorYazen Ghannam <yazen.ghannam@amd.com>
Sat, 7 Mar 2026 16:33:14 +0000 (11:33 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 11 Mar 2026 12:51:40 +0000 (13:51 +0100)
commitbee9f4178b4a3fec70414c82ddc4bceff182f2ba
treed87da9631827857d0c45b40835a9e574b5bb7273
parent11439c4635edd669ae435eec308f4ab8a0804808
x86/mce, EDAC/mce_amd: Reorder SMCA bank type enums

Originally, the SMCA bank type enums were ordered based on processor
documentation. However, the ordering became inconsistent after new bank
types were added over time.

Sort the bank type enums alphanumerically in most places.  Sort the
"enum to HWID/McaType" mapping by HWID/McaType. Drop redundant code
comments.

No functional changes.

  [ bp: Sort them alphanumerically. ]

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260307163316.345923-2-yazen.ghannam@amd.com
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mce/amd.c
drivers/edac/mce_amd.c