Path: blob/master/Documentation/acpi/apei/einj.txt
10823 views
APEI Error INJection1~~~~~~~~~~~~~~~~~~~~23EINJ provides a hardware error injection mechanism4It is very useful for debugging and testing of other APEI and RAS features.56To use EINJ, make sure the following are enabled in your kernel7configuration:89CONFIG_DEBUG_FS10CONFIG_ACPI_APEI11CONFIG_ACPI_APEI_EINJ1213The user interface of EINJ is debug file system, under the14directory apei/einj. The following files are provided.1516- available_error_type17Reading this file returns the error injection capability of the18platform, that is, which error types are supported. The error type19definition is as follow, the left field is the error type value, the20right field is error description.21220x00000001 Processor Correctable230x00000002 Processor Uncorrectable non-fatal240x00000004 Processor Uncorrectable fatal250x00000008 Memory Correctable260x00000010 Memory Uncorrectable non-fatal270x00000020 Memory Uncorrectable fatal280x00000040 PCI Express Correctable290x00000080 PCI Express Uncorrectable fatal300x00000100 PCI Express Uncorrectable non-fatal310x00000200 Platform Correctable320x00000400 Platform Uncorrectable non-fatal330x00000800 Platform Uncorrectable fatal3435The format of file contents are as above, except there are only the36available error type lines.3738- error_type39This file is used to set the error type value. The error type value40is defined in "available_error_type" description.4142- error_inject43Write any integer to this file to trigger the error44injection. Before this, please specify all necessary error45parameters.4647- param148This file is used to set the first error parameter value. Effect of49parameter depends on error_type specified. For memory error, this is50physical memory address.5152- param253This file is used to set the second error parameter value. Effect of54parameter depends on error_type specified. For memory error, this is55physical memory address mask.5657For more information about EINJ, please refer to ACPI specification58version 4.0, section 17.5.596061