]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce: Simplify AMD severity grading logic
authorCarlos Bilbao <carlos.bilbao@amd.com>
Tue, 5 Apr 2022 18:32:13 +0000 (13:32 -0500)
committerBorislav Petkov <bp@suse.de>
Mon, 25 Apr 2022 10:32:03 +0000 (12:32 +0200)
commit8fbe9dc055dc0aecf77045a24ace5fde6cfa661f
tree031b95090802e4191f5ef4129b507808578c4b3c
parent0cab37017c55eab17bffd3051f1d271f7c0917c2
x86/mce: Simplify AMD severity grading logic

The MCE handler needs to understand the severity of the machine errors to
act accordingly. Simplify the AMD grading logic following a logic that
closely resembles the descriptions of the public PPR documents. This will
help include more fine-grained grading of errors in the future.

  [ bp: Touchups. ]

Signed-off-by: Carlos Bilbao <carlos.bilbao@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Link: https://lore.kernel.org/r/20220405183212.354606-2-carlos.bilbao@amd.com
arch/x86/kernel/cpu/mce/severity.c