18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ciconfig RAS_CEC 38c2ecf20Sopenharmony_ci bool "Correctable Errors Collector" 48c2ecf20Sopenharmony_ci depends on X86_MCE && MEMORY_FAILURE && DEBUG_FS 58c2ecf20Sopenharmony_ci help 68c2ecf20Sopenharmony_ci This is a small cache which collects correctable memory errors per 4K 78c2ecf20Sopenharmony_ci page PFN and counts their repeated occurrence. Once the counter for a 88c2ecf20Sopenharmony_ci PFN overflows, we try to soft-offline that page as we take it to mean 98c2ecf20Sopenharmony_ci that it has reached a relatively high error count and would probably 108c2ecf20Sopenharmony_ci be best if we don't use it anymore. 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci Bear in mind that this is absolutely useless if your platform doesn't 138c2ecf20Sopenharmony_ci have ECC DIMMs and doesn't have DRAM ECC checking enabled in the BIOS. 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciconfig RAS_CEC_DEBUG 168c2ecf20Sopenharmony_ci bool "CEC debugging machinery" 178c2ecf20Sopenharmony_ci default n 188c2ecf20Sopenharmony_ci depends on RAS_CEC 198c2ecf20Sopenharmony_ci help 208c2ecf20Sopenharmony_ci Add extra files to (debugfs)/ras/cec to test the correctable error 218c2ecf20Sopenharmony_ci collector feature. "pfn" is a writable file that allows user to 228c2ecf20Sopenharmony_ci simulate an error in a particular page frame. "array" is a read-only 238c2ecf20Sopenharmony_ci file that dumps out the current state of all pages logged so far. 24