hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/ras/Kconfig
....@@ -2,7 +2,7 @@
22 config RAS_CEC
33 bool "Correctable Errors Collector"
44 depends on X86_MCE && MEMORY_FAILURE && DEBUG_FS
5
- ---help---
5
+ help
66 This is a small cache which collects correctable memory errors per 4K
77 page PFN and counts their repeated occurrence. Once the counter for a
88 PFN overflows, we try to soft-offline that page as we take it to mean
....@@ -11,3 +11,13 @@
1111
1212 Bear in mind that this is absolutely useless if your platform doesn't
1313 have ECC DIMMs and doesn't have DRAM ECC checking enabled in the BIOS.
14
+
15
+config RAS_CEC_DEBUG
16
+ bool "CEC debugging machinery"
17
+ default n
18
+ depends on RAS_CEC
19
+ help
20
+ Add extra files to (debugfs)/ras/cec to test the correctable error
21
+ collector feature. "pfn" is a writable file that allows user to
22
+ simulate an error in a particular page frame. "array" is a read-only
23
+ file that dumps out the current state of all pages logged so far.