Knowledge Base Article

Why the Error Injection using Linux* debugfs interface does not work for SDMMC ECC Port B?

Description

Due to a problem in the EDAC (Error Detection and Correction) driver, the Error Injection using Linux* debugfs interface on SDMMC ECC Port B is not functioning.

The error injection command below does not write to INIT test register as intended.

echo C > /sys/kernel/debug/edac/sdmmca-ecc/altr_trigger

As comparison, when writing directly to the INITTEST register,  single bit error interrupt is shown to be working.  

root@agilex7dksiagf014eb:~# devmem2 0xFF8C8C26 h 0x1                                                                                                                      ----- /dev/mem opened.[ 1785.685802] EDAC DEVICE6: CE: Altera ECC Manager instance: sdmmcb-ecc0 block: sdmmcb-ecc0 count: 1 'sdmmcb-ecc' 

This issue is impacting Agilex® 7 SoC FPGA devices and Quartus® Prime software of version 25.3.1 and older.

Resolution

To workaround this issue, apply the patch by following the instructions below:

  1. git clone the repo https://github.com/altera-fpga/linux-socfpga/commits/socfpga-6.18.2-lts/
  2. run: git format-patch-1
    Make sure the commit is included in the patch: https://github.com/altera-fpga/linux-socfpga/commit/be94a41dfaf7e124a5547ac8948b36f097a73c90
  3. Use “git am” to apply the patch onto your source code.
Additional Information

This issue is fixed in Quartus Prime software version 26.1 onwards.

Updated 5 months ago
Version 4.0
No CommentsBe the first to comment