162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ciconfig RAS_CEC
362306a36Sopenharmony_ci	bool "Correctable Errors Collector"
462306a36Sopenharmony_ci	depends on X86_MCE && MEMORY_FAILURE && DEBUG_FS
562306a36Sopenharmony_ci	help
662306a36Sopenharmony_ci	  This is a small cache which collects correctable memory errors per 4K
762306a36Sopenharmony_ci	  page PFN and counts their repeated occurrence. Once the counter for a
862306a36Sopenharmony_ci	  PFN overflows, we try to soft-offline that page as we take it to mean
962306a36Sopenharmony_ci	  that it has reached a relatively high error count and would probably
1062306a36Sopenharmony_ci	  be best if we don't use it anymore.
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci	  Bear in mind that this is absolutely useless if your platform doesn't
1362306a36Sopenharmony_ci	  have ECC DIMMs and doesn't have DRAM ECC checking enabled in the BIOS.
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciconfig RAS_CEC_DEBUG
1662306a36Sopenharmony_ci	bool "CEC debugging machinery"
1762306a36Sopenharmony_ci	default n
1862306a36Sopenharmony_ci	depends on RAS_CEC
1962306a36Sopenharmony_ci	help
2062306a36Sopenharmony_ci	  Add extra files to (debugfs)/ras/cec to test the correctable error
2162306a36Sopenharmony_ci	  collector feature. "pfn" is a writable file that allows user to
2262306a36Sopenharmony_ci	  simulate an error in a particular page frame. "array" is a read-only
2362306a36Sopenharmony_ci	  file that dumps out the current state of all pages logged so far.
24