On-the-fly scrubbing occurs when a correctable ECC error is detected on a read transaction. A Read-Modify-Write (RMW) operation is executed at the same memory address. A RMW is used in the event that a write had occurred after the correctable error was detected but before the controller had returned to complete the scrubbing. If an uncorrectable error is detected, on-the-fly scrubbing is not performed. However, if both correctable and uncorrectable errors are detected in a single burst, scrubbing is performed.
Background scrubbing is the process of stepping through the DRAM doing RMW to each address to mitigate data loss via single event upset. The memory controller uses idle cycles to implement the scrubbing, and in the event of full traffic periodically inserts transactions to ensure progress is made.
The memory can be initialized with the proper ECC values at the end of memory calibration. Initialization is not required, however you must ensure that no reads are issued to an address that has not been written to first. Inline ECC and memory fill are configured using the Advanced Configuration Editor (ace).
If a Correctable error is detected with a Background scrub, the data is corrected and written back to the memory as part of the RMW function. If an Uncorrectable error is detected with a Background scrub, the ECC poison bit is set for that BLn and unmodified data is written back to the memory. When Correctable and Uncorrectable errors are detected, the Correctable errors in the BLn are fixed and written back to the memory while the Uncorrectable errors in the BLn have their poison bit set and unmodified data is written to the memory. If a Correctable error is detected and corrected with the RMW function there is no user notification. If an Uncorrectable error is detected the poison bit is set but there is no user notification that this has happened. When you read the location with the Uncorrectable error, the DDRMC generates the ECC ISR and SLVERR as expected, along with populating the ECC Error Status registers.