xref: /OK3568_Linux_fs/kernel/arch/x86/ras/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyunconfig RAS_CEC
3*4882a593Smuzhiyun	bool "Correctable Errors Collector"
4*4882a593Smuzhiyun	depends on X86_MCE && MEMORY_FAILURE && DEBUG_FS
5*4882a593Smuzhiyun	help
6*4882a593Smuzhiyun	  This is a small cache which collects correctable memory errors per 4K
7*4882a593Smuzhiyun	  page PFN and counts their repeated occurrence. Once the counter for a
8*4882a593Smuzhiyun	  PFN overflows, we try to soft-offline that page as we take it to mean
9*4882a593Smuzhiyun	  that it has reached a relatively high error count and would probably
10*4882a593Smuzhiyun	  be best if we don't use it anymore.
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun	  Bear in mind that this is absolutely useless if your platform doesn't
13*4882a593Smuzhiyun	  have ECC DIMMs and doesn't have DRAM ECC checking enabled in the BIOS.
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunconfig RAS_CEC_DEBUG
16*4882a593Smuzhiyun	bool "CEC debugging machinery"
17*4882a593Smuzhiyun	default n
18*4882a593Smuzhiyun	depends on RAS_CEC
19*4882a593Smuzhiyun	help
20*4882a593Smuzhiyun	  Add extra files to (debugfs)/ras/cec to test the correctable error
21*4882a593Smuzhiyun	  collector feature. "pfn" is a writable file that allows user to
22*4882a593Smuzhiyun	  simulate an error in a particular page frame. "array" is a read-only
23*4882a593Smuzhiyun	  file that dumps out the current state of all pages logged so far.
24