diff options
author | Thor Thayer <thor.thayer@linux.intel.com> | 2019-03-26 16:29:30 -0500 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2019-03-29 11:35:39 +0100 |
commit | 436b0a583af0497b4b84cb73c12f8bd620f868af (patch) | |
tree | 6775d2037d9a2b3058ed30f493308f27fe681763 /drivers/edac/altera_edac.h | |
parent | fc00c6a416381010c4a721a4142ddd0260d68f20 (diff) | |
download | linux-stable-436b0a583af0497b4b84cb73c12f8bd620f868af.tar.gz linux-stable-436b0a583af0497b4b84cb73c12f8bd620f868af.tar.bz2 linux-stable-436b0a583af0497b4b84cb73c12f8bd620f868af.zip |
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
Diffstat (limited to 'drivers/edac/altera_edac.h')
-rw-r--r-- | drivers/edac/altera_edac.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/altera_edac.h b/drivers/edac/altera_edac.h index 60513f201ffb..1532ec9c3510 100644 --- a/drivers/edac/altera_edac.h +++ b/drivers/edac/altera_edac.h @@ -321,7 +321,7 @@ struct altr_sdram_mc_data { #define ECC_BLK_STARTACC_OFST 0x7C #define ECC_XACT_KICK 0x10000 -#define ECC_WORD_WRITE 0xF +#define ECC_WORD_WRITE 0xFF #define ECC_WRITE_DOVR 0x101 #define ECC_WRITE_EDOVR 0x103 #define ECC_READ_EOVR 0x2 |