mcelog: Add support for Zhaoxin processors - #126
Open
LyleLi-oc wants to merge 2 commits into
Open
Conversation
Add machine-check decoding support for Zhaoxin processors identified by the "CentaurHauls" and " Shanghai " CPU vendor strings. Follow the Linux kernel's CPUID decoding rule and apply the extended model field to CPU families greater than or equal to 6. This is required to identify Zhaoxin family 7 processors correctly. Add generic Zhaoxin MCA decoding, memory-error accounting, bank names, and CPU type selection. Add model-specific support for the KH-50000 processor, including decoding for CPU, cache, PCIe, ZDI, ZPI, SVID, memory, and HIF error banks. The KH-50000 decoding logic is adapted from the corresponding rasdaemon implementation. Signed-off-by: Lyle Li <LyleLi-oc@zhaoxin.com>
Zhaoxin KH-40000 processors identify as family 7, model 0x5b and require model-specific MCA decoding. Add decoding for CPU, cache, SVID, ZPI, PCIe, and memory banks, and hook the model into CPU detection, bank naming, memory-error accounting, address resolution, the build, and --cpu selection. Signed-off-by: Lyle Li <LyleLi-oc@zhaoxin.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Zhaoxin CPUs support Machine Check Architecture (MCA), but mcelog currently does not recognize them or provide model-specific decoding for their Machine Check Exceptions (MCEs).
This series adds basic MCA support for all Zhaoxin CPUs. Detailed model-specific error decoding is implemented for the KH-50000 and KH-40000 processors.
Specifically, this series:
CentaurHaulsandShanghaiCPU vendor strings.resolution,
--cpuselection, and the build system.The KH-50000 decoding logic is adapted from the corresponding rasdaemon
implementation.
Patch structure
mcelog: Add support for Zhaoxin CPUs and the KH-50000 modelmcelog: Add support for Zhaoxin KH-40000 model