OSDN Git Service

EDAC, altera: Handle SDRAM Uncorrectable Errors on Stratix10
authorThor Thayer <thor.thayer@linux.intel.com>
Fri, 11 May 2018 23:00:10 +0000 (18:00 -0500)
committerBorislav Petkov <bp@suse.de>
Sat, 12 May 2018 10:29:41 +0000 (12:29 +0200)
commite9918d7fafae2ec5365b193654960f6158751f8c
treeb17e0df16f20521df19240b02facab73dac300fa
parentf8eb0edeb8c19aba667a087b80706bf4f61f8256
EDAC, altera: Handle SDRAM Uncorrectable Errors on Stratix10

On Stratix10, uncorrectable errors are routed to the SError exception
instead of the IRQ exceptions. In Stratix10, uncorrectable SErrors
must be treated as fatal and will cause a panic. Older Altera/Intel
parts printed out a message for UE so do that here using the notifier
framework.

Record the UE in sticky registers that retain the state through a reset.
Check these registers on probe and printout the error on startup.

Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: mark.rutland@arm.com
Cc: mchehab@kernel.org
Cc: will.deacon@arm.com
Link: http://lkml.kernel.org/r/1526079610-5527-1-git-send-email-thor.thayer@linux.intel.com
[ Remove unused var in s10_edac_dberr_handler(), reorder args. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/altera_edac.c
drivers/edac/altera_edac.h