EDAC/versal: Make the bit position of injected errors configurable
authorShubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Thu, 8 Feb 2024 09:46:53 +0000 (15:16 +0530)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 14 Feb 2024 07:57:35 +0000 (08:57 +0100)
commit83bf24051a60d867e7633e07343913593c242f5d
treea922c5697d9418cd2a825a3d2c305283fdb73701
parentb57c1a1e7effab067a65bab54c5d83a67cffd043
EDAC/versal: Make the bit position of injected errors configurable

Currently, the bit positions to inject correctable and uncorrectable
errors are hardcoded. To make that configurable add separate sysfs entries
to set the bit positions for injecting CE and UE errors. Allow for
single bit error for CE and two bits errors for UE injection.

  [ bp: Massage. ]

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240208094653.11704-1-shubhrajyoti.datta@amd.com
drivers/edac/versal_edac.c