IMX8DXL ECC Error Checking

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8DXL ECC Error Checking

Jump to solution
2,150 Views
chanks
Contributor II

We used the register programming aid to build a custom SCFW for our IMX8DXL which enables ECC on the entire 1GB of RAM.  However, it's unclear how the software would actually know an ECC error occurs.

  • Is there any way to know that a single-bit error was corrected in RAM?
  • Is there any way to be notified that an uncorrectable error occurred?
Tags (3)
0 Kudos
Reply
1 Solution
2,048 Views
pengyong_zhang
NXP Employee
NXP Employee

hi @chanks 

There are lots of ECC registers on RM file, and please refer it. About about corrected and uncorrectable errors you mentioned please see the corrected and uncorrected register.

pengyong_zhang_0-1723687459349.png

 

View solution in original post

0 Kudos
Reply
6 Replies
2,049 Views
pengyong_zhang
NXP Employee
NXP Employee

hi @chanks 

There are lots of ECC registers on RM file, and please refer it. About about corrected and uncorrectable errors you mentioned please see the corrected and uncorrected register.

pengyong_zhang_0-1723687459349.png

 

0 Kudos
Reply
2,042 Views
chanks
Contributor II
Thank you! It turns out I was looking at the March 2023 version of the reference manual which did not have these registers defined!
0 Kudos
Reply
2,088 Views
pengyong_zhang
NXP Employee
NXP Employee
0 Kudos
Reply
2,122 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi, @chanks 

Please see the description of ECC register on the below link:

You can find the Related register get the ECC report content.

https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true

B.R

0 Kudos
Reply
2,079 Views
chanks
Contributor II

I've already looked through the DDR section of the RM. The only ECC registers that I see are the configuration registers ECCCFG0 and ECCCFG1.  What register am I missing that contains information on corrected and uncorrectable errors?

I see that there are two interrupts ECC_CORRECT_INT and ECC_NCORRECT_INT.  Is there anything in linux-imx that monitors these interrupts?

0 Kudos
Reply
2,108 Views
chanks
Contributor II
That download link doesn't work.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1930504%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX8DXL%20ECC%20Error%20Checking%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1930504%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWe%20used%20the%20register%20programming%20aid%20to%20build%20a%20custom%20SCFW%20for%20our%20IMX8DXL%20which%20enables%20ECC%20on%20the%20entire%201GB%20of%20RAM.%26nbsp%3B%20However%2C%20it's%20unclear%20how%20the%20software%20would%20actually%20know%20an%20ECC%20error%20occurs.%3C%2FP%3E%3CUL%3E%3CLI%3EIs%20there%20any%20way%20to%20know%20that%20a%20single-bit%20error%20was%20corrected%20in%20RAM%3F%3C%2FLI%3E%3CLI%3EIs%20there%20any%20way%20to%20be%20notified%20that%20an%20uncorrectable%20error%20occurred%3F%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1932909%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20IMX8DXL%20ECC%20Error%20Checking%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1932909%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThank%20you!%20It%20turns%20out%20I%20was%20looking%20at%20the%20March%202023%20version%20of%20the%20reference%20manual%20which%20did%20not%20have%20these%20registers%20defined!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1932610%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20IMX8DXL%20ECC%20Error%20Checking%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1932610%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F221715%22%20target%3D%22_blank%22%3E%40chanks%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThere%20are%20lots%20of%20ECC%20registers%20on%20RM%20file%2C%20and%20please%20refer%20it.%20About%20about%26nbsp%3Bcorrected%20and%20uncorrectable%20errors%20you%20mentioned%20please%20see%20the%20corrected%20and%20uncorrected%20register.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pengyong_zhang_0-1723687459349.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pengyong_zhang_0-1723687459349.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F293382iF1F59A0860D58287%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pengyong_zhang_0-1723687459349.png%22%20alt%3D%22pengyong_zhang_0-1723687459349.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1932037%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20IMX8DXL%20ECC%20Error%20Checking%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1932037%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI've%20already%20looked%20through%20the%20DDR%20section%20of%20the%20RM.%20The%20only%20ECC%20registers%20that%20I%20see%20are%20the%20configuration%20registers%20ECCCFG0%20and%20ECCCFG1.%26nbsp%3B%20What%20register%20am%20I%20missing%20that%20contains%20information%20on%20corrected%20and%20uncorrectable%20errors%3F%3C%2FP%3E%3CP%3EI%20see%20that%20there%20are%20two%20interrupts%20ECC_CORRECT_INT%20and%20ECC_NCORRECT_INT.%26nbsp%3B%20Is%20there%20anything%20in%20linux-imx%20that%20monitors%20these%20interrupts%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1931559%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20IMX8DXL%20ECC%20Error%20Checking%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1931559%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F221715%22%20target%3D%22_blank%22%3E%40chanks%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUse%20the%20follow%20link%20download%20the%20i.MX8DXL%20RM%20file.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fprocessors-and-microcontrollers%2Farm-processors%2Fi-mx-applications-processors%2Fi-mx-8-applications-processors%2Fi-mx-8xlite-applications-processors-for-telematics-v2x-and-industrial-control%3AiMX8XLite%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fproducts%2Fprocessors-and-microcontrollers%2Farm-processors%2Fi-mx-applications-processors%2Fi-mx-8-applications-processors%2Fi-mx-8xlite-applications-processors-for-telematics-v2x-and-industrial-control%3AiMX8XLite%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1931135%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20IMX8DXL%20ECC%20Error%20Checking%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1931135%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThat%20download%20link%20doesn't%20work.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1930700%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20IMX8DXL%20ECC%20Error%20Checking%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1930700%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%EF%BC%8C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F221715%22%20target%3D%22_blank%22%3E%40chanks%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20see%20the%20description%20of%20ECC%20register%20on%20the%20below%20link%3A%3C%2FP%3E%0A%3CP%3EYou%20can%20find%20the%26nbsp%3BRelated%20register%20get%20the%20ECC%20report%20content.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fsps%2Fdownload%2FpreDownload.jsp%3Frender%3Dtrue%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fsps%2Fdownload%2FpreDownload.jsp%3Frender%3Dtrue%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E