mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
i7core_edac: sanity check: print a warning if a mcelog is ignored
In thesis, the other mc controller should handle it. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
f47429494f
commit
6c6aa3afdb
@ -1681,8 +1681,13 @@ static int i7core_mce_check_error(void *priv, struct mce *mce)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* Only handle if it is the right mc controller */
|
/* Only handle if it is the right mc controller */
|
||||||
if (cpu_data(mce->cpu).phys_proc_id != pvt->i7core_dev->socket)
|
if (cpu_data(mce->cpu).phys_proc_id != pvt->i7core_dev->socket) {
|
||||||
|
debugf0("mc%d: ignoring mce log for socket %d. "
|
||||||
|
"Another mc should get it.\n",
|
||||||
|
pvt->i7core_dev->socket,
|
||||||
|
cpu_data(mce->cpu).phys_proc_id);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
spin_lock_irqsave(&pvt->mce_lock, flags);
|
spin_lock_irqsave(&pvt->mce_lock, flags);
|
||||||
if (pvt->mce_count < MCE_LOG_LEN) {
|
if (pvt->mce_count < MCE_LOG_LEN) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user