From: Aristeu Rozanski Date: Wed, 30 Oct 2013 16:27:05 +0000 (-0300) Subject: sb_edac: avoid decoding the same error multiple times X-Git-Tag: upstream/snapshot3+hdmi~3937^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be3036d220c9f9350c9da92e9b4e66855cf90889;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git sb_edac: avoid decoding the same error multiple times Whenever the extended error reporting is active, multiple MCEs will be generated for the same event, which will lead to multiple repeated errors to be reported. So check ADDRV and only decode the error if the MCE address is valid. Signed-off-by: Aristeu Rozanski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index 7f79511..90a62ff 100644 --- a/drivers/edac/sb_edac.c +++ b/drivers/edac/sb_edac.c @@ -1427,6 +1427,10 @@ static void sbridge_mce_output_error(struct mem_ctl_info *mci, } } + /* Only decode errors with an valid address (ADDRV) */ + if (!GET_BITFIELD(m->status, 58, 58)) + return; + rc = get_memory_error_data(mci, m->addr, &socket, &channel_mask, &rank, &area_type, msg); if (rc < 0)