Linux EDAC development
 help / color / mirror / Atom feed
* [PATCH v3 0/6] x86/mce: Handle error injection failures in mce-inject module
@ 2021-11-04 21:58 Smita Koralahalli
  2021-11-04 21:58 ` [PATCH v3 1/6] x86/mce/inject: Check if a bank is unpopulated before error injection Smita Koralahalli
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Smita Koralahalli @ 2021-11-04 21:58 UTC (permalink / raw)
  To: x86, linux-edac, linux-kernel
  Cc: Tony Luck, H . Peter Anvin, yazen.ghannam,
	Smita.KoralahalliChannabasappa

This series of patches handles the scenarios where error injection
fails silently on mce-inject module. It also sets the valid bit in
MCA_STATUS register unconditionally to correct Val=0 injection made by the
user and finally returns error code to userspace on failures injecting the
module.

Error injection fails if the bank is unpopulated (MCA_IPID register reads
zero) or if the platform enforces write ignored behavior on status
registers.

The first patch checks for an unpopulated bank by reading the value out
from MCA_IPID register and the third patch checks for writes ignored from
MCA_STATUS and MCA_DESTAT.

The second patch sets valid bit before doing error injection.

The fourth and fifth patch does some cleanup in prepare_msrs(). No
functional changes in these two patches.

The final patch returns error code to userspace from mce-inject module.

Smita Koralahalli (6):
  x86/mce/inject: Check if a bank is unpopulated before error injection
  x86/mce/inject: Set the valid bit in MCA_STATUS before error injection
  x86/mce/inject: Check for writes ignored in status registers
  x86/mce/inject: Simplify evaluation of writes ignored in status
    registers
  x86/mce/inject: Restructure prepare_msrs()
  x86/mce/mce-inject: Return error code to userspace from mce-inject
    module

 arch/x86/kernel/cpu/mce/inject.c | 106 ++++++++++++++++++++++++++-----
 1 file changed, 90 insertions(+), 16 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-12-07 19:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-04 21:58 [PATCH v3 0/6] x86/mce: Handle error injection failures in mce-inject module Smita Koralahalli
2021-11-04 21:58 ` [PATCH v3 1/6] x86/mce/inject: Check if a bank is unpopulated before error injection Smita Koralahalli
2021-11-04 21:58 ` [PATCH v3 2/6] x86/mce/inject: Set the valid bit in MCA_STATUS " Smita Koralahalli
2021-11-04 21:58 ` [PATCH v3 3/6] x86/mce/inject: Check for writes ignored in status registers Smita Koralahalli
2021-12-07 19:00   ` Borislav Petkov
2021-11-04 21:58 ` [PATCH v3 4/6] x86/mce/inject: Simplify evaluation of " Smita Koralahalli
2021-11-04 21:58 ` [PATCH v3 5/6] x86/mce/inject: Restructure prepare_msrs() Smita Koralahalli
2021-11-04 21:58 ` [PATCH v3 6/6] x86/mce/mce-inject: Return error code to userspace from mce-inject module Smita Koralahalli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox