Re: [PATCH 1/1] mce-inject: Add an MCE injection case with the yellow status set

From: Andi Kleen
Date: Tue Nov 12 2024 - 10:54:58 EST


On Tue, Nov 12, 2024 at 03:37:29PM +0800, Qiuxu Zhuo wrote:
> Intel processors with the capability of 'threshold-based error status'
> use tracking hardware to monitor corrected errors of certain hardware
> components (e.g., CPU caches). If the tracking hardware overflows, a
> 'yellow' flag will be set in the MCI_STATUS[54:53] to indicate that
> the corrected errors of the associated hardware component exceed the
> predefined threshold. If so, then the system may need to be scheduled
> for servicing within a few weeks.
>
> Add an MCE injection case with the yellow status set to test whether the
> events of threshold-based corrected errors are handled by Linux kernel
> or/and the user-space tools like mcelog or rasdaemon.

Added thanks.

-Andi