]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC, altera: Fix S10 Double Bit Error Notification
authorThor Thayer <thor.thayer@linux.intel.com>
Wed, 13 Mar 2019 15:27:22 +0000 (10:27 -0500)
committerBorislav Petkov <bp@suse.de>
Sat, 23 Mar 2019 09:03:30 +0000 (10:03 +0100)
commitd2a913fef7de5c1aa369fea7fd02de2c2cc37f86
treefbd70afa6f0ac9f9f225e4a3348fd673c69ac2c1
parent2c5e4d2c0cbcc87991261a73db5aafc3bb5c494d
EDAC, altera: Fix S10 Double Bit Error Notification

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: 85491d12995b ("EDAC, altera: Combine Stratix10 and Arria10 probe functions")
Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: James Morse <james.morse@arm.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: https://lkml.kernel.org/r/1552490842-25440-1-git-send-email-thor.thayer@linux.intel.com
drivers/edac/altera_edac.c
drivers/edac/altera_edac.h