| 1 |
.. SPDX-License-Identifier: GPL-2.0 |
| 2 |
|
| 3 |
=============================================================== |
| 4 |
Configurable sysfs parameters for the x86-64 machine check code |
| 5 |
=============================================================== |
| 6 |
|
| 7 |
Machine checks report internal hardware error conditions detected |
| 8 |
by the CPU. Uncorrected errors typically cause a machine check |
| 9 |
(often with panic), corrected ones cause a machine check log entry. |
| 10 |
|
| 11 |
Machine checks are organized in banks (normally associated with |
| 12 |
a hardware subsystem) and subevents in a bank. The exact meaning |
| 13 |
of the banks and subevent is CPU specific. |
| 14 |
|
| 15 |
mcelog knows how to decode them. |
| 16 |
|
| 17 |
When you see the "Machine check errors logged" message in the system |
| 18 |
log then mcelog should run to collect and decode machine check entries |
| 19 |
from /dev/mcelog. Normally mcelog should be run regularly from a cronjob. |
| 20 |
|
| 21 |
Each CPU has a directory in /sys/devices/system/machinecheck/machinecheckN |
| 22 |
(N = CPU number). |
| 23 |
|
| 24 |
The directory contains some configurable entries. See |
| 25 |
Documentation/ABI/testing/sysfs-mce for more details. |
| 26 |
|
| 27 |
TBD document entries for AMD threshold interrupt configuration |
| 28 |
|
| 29 |
For more details about the x86 machine check architecture |
| 30 |
see the Intel and AMD architecture manuals from their developer websites. |
| 31 |
|
| 32 |
For more details about the architecture |
| 33 |
see http://one.firstfloor.org/~andi/mce.pdf |