Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

EDAC/altera: Use INTTEST register for Ethernet and USB SBE injection

The current single-bit error injection mechanism flips bits directly in ECC RAM
by performing write and read operations. When the ECC RAM is actively used by
the Ethernet or USB controller, this approach sometimes trigger a false
double-bit error.

Switch both Ethernet and USB EDAC devices to use the INTTEST register
(altr_edac_a10_device_inject_fops) for single-bit error injection, similar to
the existing double-bit error injection method.

Fixes: 064acbd4f4ab ("EDAC, altera: Add Stratix10 peripheral support")
Signed-off-by: Niravkumar L Rabara <niravkumarlaxmidas.rabara@altera.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20251111081333.1279635-1-niravkumarlaxmidas.rabara@altera.com

authored by

Niravkumar L Rabara and committed by
Borislav Petkov (AMD)
281326be fd3ecda3

+2 -2
+2 -2
drivers/edac/altera_edac.c
··· 1369 1369 .ue_set_mask = ALTR_A10_ECC_TDERRA, 1370 1370 .set_err_ofst = ALTR_A10_ECC_INTTEST_OFST, 1371 1371 .ecc_irq_handler = altr_edac_a10_ecc_irq, 1372 - .inject_fops = &altr_edac_a10_device_inject2_fops, 1372 + .inject_fops = &altr_edac_a10_device_inject_fops, 1373 1373 }; 1374 1374 1375 1375 #endif /* CONFIG_EDAC_ALTERA_ETHERNET */ ··· 1459 1459 .ue_set_mask = ALTR_A10_ECC_TDERRA, 1460 1460 .set_err_ofst = ALTR_A10_ECC_INTTEST_OFST, 1461 1461 .ecc_irq_handler = altr_edac_a10_ecc_irq, 1462 - .inject_fops = &altr_edac_a10_device_inject2_fops, 1462 + .inject_fops = &altr_edac_a10_device_inject_fops, 1463 1463 }; 1464 1464 1465 1465 #endif /* CONFIG_EDAC_ALTERA_USB */