EDAC/altera: Do less intrusive error injection
authorThor Thayer <thor.thayer@linux.intel.com>
Tue, 26 Mar 2019 21:29:30 +0000 (16:29 -0500)
committerBorislav Petkov <bp@suse.de>
Fri, 29 Mar 2019 10:35:39 +0000 (11:35 +0100)
commit436b0a583af0497b4b84cb73c12f8bd620f868af
tree6775d2037d9a2b3058ed30f493308f27fe681763
parentfc00c6a416381010c4a721a4142ddd0260d68f20
EDAC/altera: Do less intrusive error injection

Improve the Arria10 and Stratix10 error injection routine
by reading the data and changing just 1 bit before writing
back out. Previous routine would overwrite the first bytes
to 0 then change 1 bit but this method is less intrusive.

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/1553635771-32693-1-git-send-email-thor.thayer@linux.intel.com
drivers/edac/altera_edac.c
drivers/edac/altera_edac.h