1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2011d8261SBorislav Petkovconfig RAS_CEC 3011d8261SBorislav Petkov bool "Correctable Errors Collector" 4011d8261SBorislav Petkov depends on X86_MCE && MEMORY_FAILURE && DEBUG_FS 5a7f7f624SMasahiro Yamada help 6011d8261SBorislav Petkov This is a small cache which collects correctable memory errors per 4K 7011d8261SBorislav Petkov page PFN and counts their repeated occurrence. Once the counter for a 8011d8261SBorislav Petkov PFN overflows, we try to soft-offline that page as we take it to mean 9011d8261SBorislav Petkov that it has reached a relatively high error count and would probably 10011d8261SBorislav Petkov be best if we don't use it anymore. 11011d8261SBorislav Petkov 12011d8261SBorislav Petkov Bear in mind that this is absolutely useless if your platform doesn't 13011d8261SBorislav Petkov have ECC DIMMs and doesn't have DRAM ECC checking enabled in the BIOS. 1460fd42d2STony Luck 1560fd42d2STony Luckconfig RAS_CEC_DEBUG 1660fd42d2STony Luck bool "CEC debugging machinery" 1760fd42d2STony Luck default n 1860fd42d2STony Luck depends on RAS_CEC 1960fd42d2STony Luck help 2060fd42d2STony Luck Add extra files to (debugfs)/ras/cec to test the correctable error 2160fd42d2STony Luck collector feature. "pfn" is a writable file that allows user to 2260fd42d2STony Luck simulate an error in a particular page frame. "array" is a read-only 2360fd42d2STony Luck file that dumps out the current state of all pages logged so far. 24