]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86, mce, severity: Extend the the mce_severity mechanism to handle UCNA/DEFERRED...
authorChen Yucong <slaoub@gmail.com>
Tue, 18 Nov 2014 02:09:19 +0000 (10:09 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 9 Jun 2015 17:43:45 +0000 (13:43 -0400)
commitc41c609c77b54451d1404d4fd2bfbf5c7efcd7b9
tree9fba9eb8bc59f5ec11c9cd41f017670819816fbc
parentf83263cae8cc77e23dc375299b7709c3fa36bee5
x86, mce, severity: Extend the the mce_severity mechanism to handle UCNA/DEFERRED error

[ Upstream commit e3480271f59253cb60d030aa5e615bf00b731fea ]

Until now, the mce_severity mechanism can only identify the severity
of UCNA error as MCE_KEEP_SEVERITY. Meanwhile, it is not able to filter
out DEFERRED error for AMD platform.

This patch extends the mce_severity mechanism for handling
UCNA/DEFERRED error. In order to do this, the patch introduces a new
severity level - MCE_UCNA/DEFERRED_SEVERITY.

In addition, mce_severity is specific to machine check exception,
and it will check MCIP/EIPV/RIPV bits. In order to use mce_severity
mechanism in non-exception context, the patch also introduces a new
argument (is_excp) for mce_severity. `is_excp' is used to explicitly
specify the calling context of mce_severity.

Reviewed-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Signed-off-by: Chen Yucong <slaoub@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce-internal.h
arch/x86/kernel/cpu/mcheck/mce-severity.c
arch/x86/kernel/cpu/mcheck/mce.c
drivers/edac/mce_amd.h