Re: [PATCH] EDAC, altera: Fix S10 Double Bit Error Notification

From: Borislav Petkov
Date: Sat Mar 23 2019 - 05:15:08 EST


On Wed, Mar 13, 2019 at 10:27:22AM -0500, thor.thayer@xxxxxxxxxxxxxxx wrote:
> From: Thor Thayer <thor.thayer@xxxxxxxxxxxxxxx>
>
> Stratix10 Double Bit Error Address was always read from
> SDRAM Address register instead of each device's Address
> register.
> To determine which device had the DBE, cycle through
> the EDAC devices comparing the DBE value to the db_irq
> value. Once found, report the DBE Address from the device
> registers as well as the device name.
> Finally, notify the system via an SMC call and indicate
> the panic should result in a system reboot.
> Change a run-time check to a Stratix10 compile-time check
> for a clean SMC notification.
>
> Fixes: d5fc9125566c ("EDAC, altera: Combine Stratix10 and Arria10 probe functions")
> Signed-off-by: Thor Thayer <thor.thayer@xxxxxxxxxxxxxxx>
> ---
> drivers/edac/altera_edac.c | 69 ++++++++++++++++++++++++++++++++++------------
> drivers/edac/altera_edac.h | 20 ++++++++++++++
> 2 files changed, 72 insertions(+), 17 deletions(-)

Applied, thanks.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.