Messages in this thread Patch in this message | | | From | Smita Koralahalli <> | Subject | [PATCH 2/5] x86/mce/inject: Set the valid bit in MCA_STATUS before error injection | Date | Wed, 15 Sep 2021 18:27:36 -0500 |
| |
MCA handlers check the valid bit in each status register (MCA_STATUS[Val]) and examine the remainder of the status register only if the valid bit is set.
Set the valid bit in the corresponding MCA_STATUS register if the user forgets to set it while doing error simulation.
Signed-off-by: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com> --- arch/x86/kernel/cpu/mce/inject.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/x86/kernel/cpu/mce/inject.c b/arch/x86/kernel/cpu/mce/inject.c index 51ac575c4605..8de709b049fc 100644 --- a/arch/x86/kernel/cpu/mce/inject.c +++ b/arch/x86/kernel/cpu/mce/inject.c @@ -490,6 +490,8 @@ static void do_inject(void) i_mce.tsc = rdtsc_ordered(); + i_mce.status |= MCI_STATUS_VAL; + if (i_mce.misc) i_mce.status |= MCI_STATUS_MISCV; -- 2.17.1
| |