blob: 197896718f8130368b2b0eb4548d767e31d942db [file] [log] [blame]
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001.. include:: <isonum.txt>
2
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -02003============================================
4Reliability, Availability and Serviceability
5============================================
6
7RAS concepts
8************
9
10Reliability, Availability and Serviceability (RAS) is a concept used on
Tamara Diaconita9f02a482017-03-14 10:38:35 +020011servers meant to measure their robustness.
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -020012
13Reliability
14 is the probability that a system will produce correct outputs.
15
16 * Generally measured as Mean Time Between Failures (MTBF)
17 * Enhanced by features that help to avoid, detect and repair hardware faults
18
19Availability
20 is the probability that a system is operational at a given time
21
22 * Generally measured as a percentage of downtime per a period of time
23 * Often uses mechanisms to detect and correct hardware faults in
24 runtime;
25
26Serviceability (or maintainability)
27 is the simplicity and speed with which a system can be repaired or
28 maintained
29
30 * Generally measured on Mean Time Between Repair (MTBR)
31
32Improving RAS
33-------------
34
35In order to reduce systems downtime, a system should be capable of detecting
36hardware errors, and, when possible correcting them in runtime. It should
37also provide mechanisms to detect hardware degradation, in order to warn
38the system administrator to take the action of replacing a component before
39it causes data loss or system downtime.
40
41Among the monitoring measures, the most usual ones include:
42
43* CPU – detect errors at instruction execution and at L1/L2/L3 caches;
44* Memory – add error correction logic (ECC) to detect and correct errors;
Tamara Diaconita9f02a482017-03-14 10:38:35 +020045* I/O – add CRC checksums for transferred data;
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -020046* Storage – RAID, journal file systems, checksums,
47 Self-Monitoring, Analysis and Reporting Technology (SMART).
48
49By monitoring the number of occurrences of error detections, it is possible
50to identify if the probability of hardware errors is increasing, and, on such
Tamara Diaconita9f02a482017-03-14 10:38:35 +020051case, do a preventive maintenance to replace a degraded component while
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -020052those errors are correctable.
53
54Types of errors
55---------------
56
57Most mechanisms used on modern systems use use technologies like Hamming
58Codes that allow error correction when the number of errors on a bit packet
59is below a threshold. If the number of errors is above, those mechanisms
60can indicate with a high degree of confidence that an error happened, but
61they can't correct.
62
63Also, sometimes an error occur on a component that it is not used. For
64example, a part of the memory that it is not currently allocated.
65
66That defines some categories of errors:
67
68* **Correctable Error (CE)** - the error detection mechanism detected and
69 corrected the error. Such errors are usually not fatal, although some
70 Kernel mechanisms allow the system administrator to consider them as fatal.
71
72* **Uncorrected Error (UE)** - the amount of errors happened above the error
73 correction threshold, and the system was unable to auto-correct.
74
75* **Fatal Error** - when an UE error happens on a critical component of the
76 system (for example, a piece of the Kernel got corrupted by an UE), the
77 only reliable way to avoid data corruption is to hang or reboot the machine.
78
79* **Non-fatal Error** - when an UE error happens on an unused component,
80 like a CPU in power down state or an unused memory bank, the system may
81 still run, eventually replacing the affected hardware by a hot spare,
82 if available.
83
Masahiro Yamada9332ef92017-02-27 14:28:47 -080084 Also, when an error happens on a userspace process, it is also possible to
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -020085 kill such process and let userspace restart it.
86
87The mechanism for handling non-fatal errors is usually complex and may
88require the help of some userspace application, in order to apply the
89policy desired by the system administrator.
90
91Identifying a bad hardware component
92------------------------------------
93
94Just detecting a hardware flaw is usually not enough, as the system needs
95to pinpoint to the minimal replaceable unit (MRU) that should be exchanged
96to make the hardware reliable again.
97
98So, it requires not only error logging facilities, but also mechanisms that
99will translate the error message to the silkscreen or component label for
100the MRU.
101
102Typically, it is very complex for memory, as modern CPUs interlace memory
103from different memory modules, in order to provide a better performance. The
104DMI BIOS usually have a list of memory module labels, with can be obtained
105using the ``dmidecode`` tool. For example, on a desktop machine, it shows::
106
107 Memory Device
108 Total Width: 64 bits
109 Data Width: 64 bits
110 Size: 16384 MB
111 Form Factor: SODIMM
112 Set: None
113 Locator: ChannelA-DIMM0
114 Bank Locator: BANK 0
115 Type: DDR4
116 Type Detail: Synchronous
117 Speed: 2133 MHz
118 Rank: 2
119 Configured Clock Speed: 2133 MHz
120
121On the above example, a DDR4 SO-DIMM memory module is located at the
122system's memory labeled as "BANK 0", as given by the *bank locator* field.
123Please notice that, on such system, the *total width* is equal to the
Tamara Diaconita9f02a482017-03-14 10:38:35 +0200124*data width*. It means that such memory module doesn't have error
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200125detection/correction mechanisms.
126
127Unfortunately, not all systems use the same field to specify the memory
128bank. On this example, from an older server, ``dmidecode`` shows::
129
130 Memory Device
131 Array Handle: 0x1000
132 Error Information Handle: Not Provided
133 Total Width: 72 bits
134 Data Width: 64 bits
135 Size: 8192 MB
136 Form Factor: DIMM
137 Set: 1
138 Locator: DIMM_A1
139 Bank Locator: Not Specified
140 Type: DDR3
141 Type Detail: Synchronous Registered (Buffered)
142 Speed: 1600 MHz
143 Rank: 2
144 Configured Clock Speed: 1600 MHz
145
146There, the DDR3 RDIMM memory module is located at the system's memory labeled
147as "DIMM_A1", as given by the *locator* field. Please notice that this
Tamara Diaconita9f02a482017-03-14 10:38:35 +0200148memory module has 64 bits of *data width* and 72 bits of *total width*. So,
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200149it has 8 extra bits to be used by error detection and correction mechanisms.
150Such kind of memory is called Error-correcting code memory (ECC memory).
151
152To make things even worse, it is not uncommon that systems with different
153labels on their system's board to use exactly the same BIOS, meaning that
154the labels provided by the BIOS won't match the real ones.
155
156ECC memory
157----------
158
159As mentioned on the previous section, ECC memory has extra bits to be
160used for error correction. So, on 64 bit systems, a memory module
161has 64 bits of *data width*, and 74 bits of *total width*. So, there are
1628 bits extra bits to be used for the error detection and correction
163mechanisms. Those extra bits are called *syndrome*\ [#f1]_\ [#f2]_.
164
165So, when the cpu requests the memory controller to write a word with
166*data width*, the memory controller calculates the *syndrome* in real time,
167using Hamming code, or some other error correction code, like SECDED+,
168producing a code with *total width* size. Such code is then written
169on the memory modules.
170
171At read, the *total width* bits code is converted back, using the same
172ECC code used on write, producing a word with *data width* and a *syndrome*.
173The word with *data width* is sent to the CPU, even when errors happen.
174
175The memory controller also looks at the *syndrome* in order to check if
176there was an error, and if the ECC code was able to fix such error.
177If the error was corrected, a Corrected Error (CE) happened. If not, an
178Uncorrected Error (UE) happened.
179
180The information about the CE/UE errors is stored on some special registers
181at the memory controller and can be accessed by reading such registers,
182either by BIOS, by some special CPUs or by Linux EDAC driver. On x86 64
183bit CPUs, such errors can also be retrieved via the Machine Check
184Architecture (MCA)\ [#f3]_.
185
186.. [#f1] Please notice that several memory controllers allow operation on a
187 mode called "Lock-Step", where it groups two memory modules together,
188 doing 128-bit reads/writes. That gives 16 bits for error correction, with
Tamara Diaconita9f02a482017-03-14 10:38:35 +0200189 significantly improves the error correction mechanism, at the expense
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200190 that, when an error happens, there's no way to know what memory module is
191 to blame. So, it has to blame both memory modules.
192
193.. [#f2] Some memory controllers also allow using memory in mirror mode.
194 On such mode, the same data is written to two memory modules. At read,
195 the system checks both memory modules, in order to check if both provide
196 identical data. On such configuration, when an error happens, there's no
197 way to know what memory module is to blame. So, it has to blame both
198 memory modules (or 4 memory modules, if the system is also on Lock-step
199 mode).
200
201.. [#f3] For more details about the Machine Check Architecture (MCA),
202 please read Documentation/x86/x86_64/machinecheck at the Kernel tree.
203
Alan Coxda9bb1d2006-01-18 17:44:13 -0800204EDAC - Error Detection And Correction
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200205*************************************
Doug Thompson87f24c32007-07-19 01:50:34 -0700206
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200207.. note::
Borislav Petkove34217c2015-11-26 14:12:56 +0100208
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200209 "bluesmoke" was the name for this device driver subsystem when it
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200210 was "out-of-tree" and maintained at http://bluesmoke.sourceforge.net.
211 That site is mostly archaic now and can be used only for historical
212 purposes.
Doug Thompson87f24c32007-07-19 01:50:34 -0700213
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200214 When the subsystem was pushed upstream for the first time, on
215 Kernel 2.6.16, for the first time, it was renamed to ``EDAC``.
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200216
217Purpose
Borislav Petkov043b4312015-06-19 11:47:17 +0200218-------
Doug Thompson87f24c32007-07-19 01:50:34 -0700219
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200220The ``edac`` kernel module's goal is to detect and report hardware errors
Borislav Petkov043b4312015-06-19 11:47:17 +0200221that occur within the computer system running under linux.
Doug Thompson87f24c32007-07-19 01:50:34 -0700222
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200223Memory
Borislav Petkov043b4312015-06-19 11:47:17 +0200224------
Doug Thompson87f24c32007-07-19 01:50:34 -0700225
Borislav Petkov043b4312015-06-19 11:47:17 +0200226Memory Correctable Errors (CE) and Uncorrectable Errors (UE) are the
227primary errors being harvested. These types of errors are harvested by
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200228the ``edac_mc`` device.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800229
230Detecting CE events, then harvesting those events and reporting them,
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200231**can** but must not necessarily be a predictor of future UE events. With
Borislav Petkov043b4312015-06-19 11:47:17 +0200232CE events only, the system can and will continue to operate as no data
233has been damaged yet.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800234
Borislav Petkov043b4312015-06-19 11:47:17 +0200235However, preventive maintenance and proactive part replacement of memory
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200236modules exhibiting CEs can reduce the likelihood of the dreaded UE events
Borislav Petkov043b4312015-06-19 11:47:17 +0200237and system panics.
238
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200239Other hardware elements
Borislav Petkov043b4312015-06-19 11:47:17 +0200240-----------------------
Doug Thompson87f24c32007-07-19 01:50:34 -0700241
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200242A new feature for EDAC, the ``edac_device`` class of device, was added in
Doug Thompson87f24c32007-07-19 01:50:34 -0700243the 2.6.23 version of the kernel.
244
245This new device type allows for non-memory type of ECC hardware detectors
246to have their states harvested and presented to userspace via the sysfs
247interface.
248
Borislav Petkov043b4312015-06-19 11:47:17 +0200249Some architectures have ECC detectors for L1, L2 and L3 caches,
250along with DMA engines, fabric switches, main data path switches,
251interconnections, and various other hardware data paths. If the hardware
252reports it, then a edac_device device probably can be constructed to
253harvest and present that to userspace.
Doug Thompson87f24c32007-07-19 01:50:34 -0700254
255
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200256PCI bus scanning
Borislav Petkov043b4312015-06-19 11:47:17 +0200257----------------
Alan Coxda9bb1d2006-01-18 17:44:13 -0800258
Borislav Petkov043b4312015-06-19 11:47:17 +0200259In addition, PCI devices are scanned for PCI Bus Parity and SERR Errors
260in order to determine if errors are occurring during data transfers.
Doug Thompson87f24c32007-07-19 01:50:34 -0700261
Alan Coxda9bb1d2006-01-18 17:44:13 -0800262The presence of PCI Parity errors must be examined with a grain of salt.
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200263There are several add-in adapters that do **not** follow the PCI specification
Alan Coxda9bb1d2006-01-18 17:44:13 -0800264with regards to Parity generation and reporting. The specification says
265the vendor should tie the parity status bits to 0 if they do not intend
266to generate parity. Some vendors do not do this, and thus the parity bit
267can "float" giving false positives.
268
Borislav Petkov043b4312015-06-19 11:47:17 +0200269There is a PCI device attribute located in sysfs that is checked by
270the EDAC PCI scanning code. If that attribute is set, PCI parity/error
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200271scanning is skipped for that device. The attribute is::
Doug Thompson87f24c32007-07-19 01:50:34 -0700272
273 broken_parity_status
274
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200275and is located in ``/sys/devices/pci<XXX>/0000:XX:YY.Z`` directories for
Doug Thompson87f24c32007-07-19 01:50:34 -0700276PCI devices.
277
Alan Coxda9bb1d2006-01-18 17:44:13 -0800278
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200279Versioning
Borislav Petkov043b4312015-06-19 11:47:17 +0200280----------
Alan Coxda9bb1d2006-01-18 17:44:13 -0800281
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200282EDAC is composed of a "core" module (``edac_core.ko``) and several Memory
Borislav Petkov043b4312015-06-19 11:47:17 +0200283Controller (MC) driver modules. On a given system, the CORE is loaded
284and one MC driver will be loaded. Both the CORE and the MC driver (or
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200285``edac_device`` driver) have individual versions that reflect current
Borislav Petkov043b4312015-06-19 11:47:17 +0200286release level of their respective modules.
Doug Thompson87f24c32007-07-19 01:50:34 -0700287
Borislav Petkov043b4312015-06-19 11:47:17 +0200288Thus, to "report" on what version a system is running, one must report
289both the CORE's and the MC driver's versions.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800290
291
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200292Loading
Borislav Petkov043b4312015-06-19 11:47:17 +0200293-------
Alan Coxda9bb1d2006-01-18 17:44:13 -0800294
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200295If ``edac`` was statically linked with the kernel then no loading
296is necessary. If ``edac`` was built as modules then simply modprobe
297the ``edac`` pieces that you need. You should be able to modprobe
Borislav Petkov043b4312015-06-19 11:47:17 +0200298hardware-specific modules and have the dependencies load the necessary
299core modules.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800300
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200301Example::
Alan Coxda9bb1d2006-01-18 17:44:13 -0800302
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200303 $ modprobe amd76x_edac
Alan Coxda9bb1d2006-01-18 17:44:13 -0800304
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200305loads both the ``amd76x_edac.ko`` memory controller module and the
306``edac_mc.ko`` core module.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800307
308
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200309Sysfs interface
Borislav Petkov043b4312015-06-19 11:47:17 +0200310---------------
Alan Coxda9bb1d2006-01-18 17:44:13 -0800311
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200312EDAC presents a ``sysfs`` interface for control and reporting purposes. It
Borislav Petkov043b4312015-06-19 11:47:17 +0200313lives in the /sys/devices/system/edac directory.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800314
Borislav Petkov043b4312015-06-19 11:47:17 +0200315Within this directory there currently reside 2 components:
Alan Coxda9bb1d2006-01-18 17:44:13 -0800316
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200317 ======= ==============================
Alan Coxda9bb1d2006-01-18 17:44:13 -0800318 mc memory controller(s) system
Doug Thompson49c0dab72006-07-10 04:45:19 -0700319 pci PCI control and status system
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200320 ======= ==============================
Alan Coxda9bb1d2006-01-18 17:44:13 -0800321
322
Borislav Petkov043b4312015-06-19 11:47:17 +0200323
Alan Coxda9bb1d2006-01-18 17:44:13 -0800324Memory Controller (mc) Model
Borislav Petkov043b4312015-06-19 11:47:17 +0200325----------------------------
Alan Coxda9bb1d2006-01-18 17:44:13 -0800326
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200327Each ``mc`` device controls a set of memory modules [#f4]_. These modules
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200328are laid out in a Chip-Select Row (``csrowX``) and Channel table (``chX``).
Borislav Petkov043b4312015-06-19 11:47:17 +0200329There can be multiple csrows and multiple channels.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800330
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200331.. [#f4] Nowadays, the term DIMM (Dual In-line Memory Module) is widely
332 used to refer to a memory module, although there are other memory
333 packaging alternatives, like SO-DIMM, SIMM, etc. Along this document,
334 and inside the EDAC system, the term "dimm" is used for all memory
335 modules, even when they use a different kind of packaging.
336
Borislav Petkov043b4312015-06-19 11:47:17 +0200337Memory controllers allow for several csrows, with 8 csrows being a
338typical value. Yet, the actual number of csrows depends on the layout of
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200339a given motherboard, memory controller and memory module characteristics.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800340
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200341Dual channels allow for dual data length (e. g. 128 bits, on 64 bit systems)
342data transfers to/from the CPU from/to memory. Some newer chipsets allow
343for more than 2 channels, like Fully Buffered DIMMs (FB-DIMMs) memory
344controllers. The following example will assume 2 channels:
Alan Coxda9bb1d2006-01-18 17:44:13 -0800345
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200346 +------------+-----------------------+
Jonathan Corbet82a19552017-06-18 17:30:18 -0600347 | CS Rows | Channels |
348 +------------+-----------+-----------+
349 | | ``ch0`` | ``ch1`` |
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200350 +============+===========+===========+
351 | ``csrow0`` | DIMM_A0 | DIMM_B0 |
352 +------------+ | |
353 | ``csrow1`` | | |
354 +------------+-----------+-----------+
355 | ``csrow2`` | DIMM_A1 | DIMM_B1 |
356 +------------+ | |
357 | ``csrow3`` | | |
358 +------------+-----------+-----------+
Alan Coxda9bb1d2006-01-18 17:44:13 -0800359
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200360In the above example, there are 4 physical slots on the motherboard
Alan Coxda9bb1d2006-01-18 17:44:13 -0800361for memory DIMMs:
362
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200363 +---------+---------+
364 | DIMM_A0 | DIMM_B0 |
365 +---------+---------+
366 | DIMM_A1 | DIMM_B1 |
367 +---------+---------+
Alan Coxda9bb1d2006-01-18 17:44:13 -0800368
Borislav Petkov043b4312015-06-19 11:47:17 +0200369Labels for these slots are usually silk-screened on the motherboard.
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200370Slots labeled ``A`` are channel 0 in this example. Slots labeled ``B`` are
Borislav Petkov043b4312015-06-19 11:47:17 +0200371channel 1. Notice that there are two csrows possible on a physical DIMM.
372These csrows are allocated their csrow assignment based on the slot into
373which the memory DIMM is placed. Thus, when 1 DIMM is placed in each
374Channel, the csrows cross both DIMMs.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800375
376Memory DIMMs come single or dual "ranked". A rank is a populated csrow.
377Thus, 2 single ranked DIMMs, placed in slots DIMM_A0 and DIMM_B0 above
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200378will have just one csrow (csrow0). csrow1 will be empty. On the other
379hand, when 2 dual ranked DIMMs are similarly placed, then both csrow0
380and csrow1 will be populated. The pattern repeats itself for csrow2 and
Alan Coxda9bb1d2006-01-18 17:44:13 -0800381csrow3.
382
Borislav Petkov043b4312015-06-19 11:47:17 +0200383The representation of the above is reflected in the directory
384tree in EDAC's sysfs interface. Starting in directory
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200385``/sys/devices/system/edac/mc``, each memory controller will be
386represented by its own ``mcX`` directory, where ``X`` is the
387index of the MC::
Alan Coxda9bb1d2006-01-18 17:44:13 -0800388
389 ..../edac/mc/
390 |
391 |->mc0
392 |->mc1
393 |->mc2
394 ....
395
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200396Under each ``mcX`` directory each ``csrowX`` is again represented by a
397``csrowX``, where ``X`` is the csrow index::
Alan Coxda9bb1d2006-01-18 17:44:13 -0800398
399 .../mc/mc0/
400 |
401 |->csrow0
402 |->csrow2
403 |->csrow3
404 ....
405
Borislav Petkov043b4312015-06-19 11:47:17 +0200406Notice that there is no csrow1, which indicates that csrow0 is composed
407of a single ranked DIMMs. This should also apply in both Channels, in
408order to have dual-channel mode be operational. Since both csrow2 and
409csrow3 are populated, this indicates a dual ranked set of DIMMs for
410channels 0 and 1.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800411
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200412Within each of the ``mcX`` and ``csrowX`` directories are several EDAC
Borislav Petkov043b4312015-06-19 11:47:17 +0200413control and attribute files.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800414
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200415``mcX`` directories
416-------------------
Alan Coxda9bb1d2006-01-18 17:44:13 -0800417
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200418In ``mcX`` directories are EDAC control and attribute files for
419this ``X`` instance of the memory controllers.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800420
Mauro Carvalho Chehab8b6f04c2012-04-17 08:53:34 -0300421For a description of the sysfs API, please see:
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200422
Rami Rosen3aae9ed2015-06-19 09:18:34 +0300423 Documentation/ABI/testing/sysfs-devices-edac
Alan Coxda9bb1d2006-01-18 17:44:13 -0800424
425
Mauro Carvalho Chehab032d0ab2016-10-27 10:00:46 -0200426``dimmX`` or ``rankX`` directories
427----------------------------------
428
429The recommended way to use the EDAC subsystem is to look at the information
430provided by the ``dimmX`` or ``rankX`` directories [#f5]_.
431
432A typical EDAC system has the following structure under
433``/sys/devices/system/edac/``\ [#f6]_::
434
435 /sys/devices/system/edac/
436 ├── mc
437 │   ├── mc0
438 │   │   ├── ce_count
439 │   │   ├── ce_noinfo_count
440 │   │   ├── dimm0
Aaron Miller4fb6fde2016-11-03 15:01:53 -0700441 │   │   │   ├── dimm_ce_count
Mauro Carvalho Chehab032d0ab2016-10-27 10:00:46 -0200442 │   │   │   ├── dimm_dev_type
443 │   │   │   ├── dimm_edac_mode
444 │   │   │   ├── dimm_label
445 │   │   │   ├── dimm_location
446 │   │   │   ├── dimm_mem_type
Aaron Miller4fb6fde2016-11-03 15:01:53 -0700447 │   │   │   ├── dimm_ue_count
Mauro Carvalho Chehab032d0ab2016-10-27 10:00:46 -0200448 │   │   │   ├── size
449 │   │   │   └── uevent
450 │   │   ├── max_location
451 │   │   ├── mc_name
452 │   │   ├── reset_counters
453 │   │   ├── seconds_since_reset
454 │   │   ├── size_mb
455 │   │   ├── ue_count
456 │   │   ├── ue_noinfo_count
457 │   │   └── uevent
458 │   ├── mc1
459 │   │   ├── ce_count
460 │   │   ├── ce_noinfo_count
461 │   │   ├── dimm0
Aaron Miller4fb6fde2016-11-03 15:01:53 -0700462 │   │   │   ├── dimm_ce_count
Mauro Carvalho Chehab032d0ab2016-10-27 10:00:46 -0200463 │   │   │   ├── dimm_dev_type
464 │   │   │   ├── dimm_edac_mode
465 │   │   │   ├── dimm_label
466 │   │   │   ├── dimm_location
467 │   │   │   ├── dimm_mem_type
Aaron Miller4fb6fde2016-11-03 15:01:53 -0700468 │   │   │   ├── dimm_ue_count
Mauro Carvalho Chehab032d0ab2016-10-27 10:00:46 -0200469 │   │   │   ├── size
470 │   │   │   └── uevent
471 │   │   ├── max_location
472 │   │   ├── mc_name
473 │   │   ├── reset_counters
474 │   │   ├── seconds_since_reset
475 │   │   ├── size_mb
476 │   │   ├── ue_count
477 │   │   ├── ue_noinfo_count
478 │   │   └── uevent
479 │   └── uevent
480 └── uevent
481
482In the ``dimmX`` directories are EDAC control and attribute files for
483this ``X`` memory module:
484
485- ``size`` - Total memory managed by this csrow attribute file
486
487 This attribute file displays, in count of megabytes, the memory
488 that this csrow contains.
489
Aaron Miller4fb6fde2016-11-03 15:01:53 -0700490- ``dimm_ue_count`` - Uncorrectable Errors count attribute file
491
492 This attribute file displays the total count of uncorrectable
493 errors that have occurred on this DIMM. If panic_on_ue is set
494 this counter will not have a chance to increment, since EDAC
495 will panic the system.
496
497- ``dimm_ce_count`` - Correctable Errors count attribute file
498
499 This attribute file displays the total count of correctable
500 errors that have occurred on this DIMM. This count is very
501 important to examine. CEs provide early indications that a
502 DIMM is beginning to fail. This count field should be
503 monitored for non-zero values and report such information
504 to the system administrator.
505
Mauro Carvalho Chehab032d0ab2016-10-27 10:00:46 -0200506- ``dimm_dev_type`` - Device type attribute file
507
508 This attribute file will display what type of DRAM device is
509 being utilized on this DIMM.
510 Examples:
511
512 - x1
513 - x2
514 - x4
515 - x8
516
517- ``dimm_edac_mode`` - EDAC Mode of operation attribute file
518
519 This attribute file will display what type of Error detection
520 and correction is being utilized.
521
522- ``dimm_label`` - memory module label control file
523
524 This control file allows this DIMM to have a label assigned
525 to it. With this label in the module, when errors occur
526 the output can provide the DIMM label in the system log.
527 This becomes vital for panic events to isolate the
528 cause of the UE event.
529
530 DIMM Labels must be assigned after booting, with information
531 that correctly identifies the physical slot with its
532 silk screen label. This information is currently very
533 motherboard specific and determination of this information
534 must occur in userland at this time.
535
536- ``dimm_location`` - location of the memory module
537
538 The location can have up to 3 levels, and describe how the
539 memory controller identifies the location of a memory module.
540 Depending on the type of memory and memory controller, it
541 can be:
542
543 - *csrow* and *channel* - used when the memory controller
544 doesn't identify a single DIMM - e. g. in ``rankX`` dir;
545 - *branch*, *channel*, *slot* - typically used on FB-DIMM memory
546 controllers;
547 - *channel*, *slot* - used on Nehalem and newer Intel drivers.
548
549- ``dimm_mem_type`` - Memory Type attribute file
550
551 This attribute file will display what type of memory is currently
552 on this csrow. Normally, either buffered or unbuffered memory.
553 Examples:
554
555 - Registered-DDR
556 - Unbuffered-DDR
557
558.. [#f5] On some systems, the memory controller doesn't have any logic
559 to identify the memory module. On such systems, the directory is called ``rankX`` and works on a similar way as the ``csrowX`` directories.
560 On modern Intel memory controllers, the memory controller identifies the
561 memory modules directly. On such systems, the directory is called ``dimmX``.
562
563.. [#f6] There are also some ``power`` directories and ``subsystem``
564 symlinks inside the sysfs mapping that are automatically created by
565 the sysfs subsystem. Currently, they serve no purpose.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800566
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200567``csrowX`` directories
568----------------------
Borislav Petkov043b4312015-06-19 11:47:17 +0200569
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200570When CONFIG_EDAC_LEGACY_SYSFS is enabled, sysfs will contain the ``csrowX``
Borislav Petkov043b4312015-06-19 11:47:17 +0200571directories. As this API doesn't work properly for Rambus, FB-DIMMs and
572modern Intel Memory Controllers, this is being deprecated in favor of
Mauro Carvalho Chehab9c058d242016-10-27 09:26:36 -0200573``dimmX`` directories.
Mauro Carvalho Chehab8b6f04c2012-04-17 08:53:34 -0300574
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200575In the ``csrowX`` directories are EDAC control and attribute files for
576this ``X`` instance of csrow:
Alan Coxda9bb1d2006-01-18 17:44:13 -0800577
578
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200579- ``ue_count`` - Total Uncorrectable Errors count attribute file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800580
581 This attribute file displays the total count of uncorrectable
582 errors that have occurred on this csrow. If panic_on_ue is set
583 this counter will not have a chance to increment, since EDAC
584 will panic the system.
585
586
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200587- ``ce_count`` - Total Correctable Errors count attribute file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800588
589 This attribute file displays the total count of correctable
Borislav Petkov043b4312015-06-19 11:47:17 +0200590 errors that have occurred on this csrow. This count is very
591 important to examine. CEs provide early indications that a
592 DIMM is beginning to fail. This count field should be
593 monitored for non-zero values and report such information
594 to the system administrator.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800595
596
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200597- ``size_mb`` - Total memory managed by this csrow attribute file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800598
Rami Rosen3aae9ed2015-06-19 09:18:34 +0300599 This attribute file displays, in count of megabytes, the memory
Dave Petersonf3479812006-03-26 01:38:53 -0800600 that this csrow contains.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800601
602
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200603- ``mem_type`` - Memory Type attribute file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800604
605 This attribute file will display what type of memory is currently
606 on this csrow. Normally, either buffered or unbuffered memory.
Doug Thompson49c0dab72006-07-10 04:45:19 -0700607 Examples:
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200608
609 - Registered-DDR
610 - Unbuffered-DDR
Alan Coxda9bb1d2006-01-18 17:44:13 -0800611
612
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200613- ``edac_mode`` - EDAC Mode of operation attribute file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800614
615 This attribute file will display what type of Error detection
616 and correction is being utilized.
617
618
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200619- ``dev_type`` - Device type attribute file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800620
Doug Thompson49c0dab72006-07-10 04:45:19 -0700621 This attribute file will display what type of DRAM device is
622 being utilized on this DIMM.
623 Examples:
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200624
625 - x1
626 - x2
627 - x4
628 - x8
Alan Coxda9bb1d2006-01-18 17:44:13 -0800629
630
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200631- ``ch0_ce_count`` - Channel 0 CE Count attribute file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800632
633 This attribute file will display the count of CEs on this
634 DIMM located in channel 0.
635
636
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200637- ``ch0_ue_count`` - Channel 0 UE Count attribute file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800638
639 This attribute file will display the count of UEs on this
640 DIMM located in channel 0.
641
642
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200643- ``ch0_dimm_label`` - Channel 0 DIMM Label control file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800644
Alan Coxda9bb1d2006-01-18 17:44:13 -0800645
646 This control file allows this DIMM to have a label assigned
647 to it. With this label in the module, when errors occur
648 the output can provide the DIMM label in the system log.
649 This becomes vital for panic events to isolate the
650 cause of the UE event.
651
652 DIMM Labels must be assigned after booting, with information
653 that correctly identifies the physical slot with its
654 silk screen label. This information is currently very
655 motherboard specific and determination of this information
656 must occur in userland at this time.
657
658
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200659- ``ch1_ce_count`` - Channel 1 CE Count attribute file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800660
Alan Coxda9bb1d2006-01-18 17:44:13 -0800661
662 This attribute file will display the count of CEs on this
663 DIMM located in channel 1.
664
665
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200666- ``ch1_ue_count`` - Channel 1 UE Count attribute file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800667
Alan Coxda9bb1d2006-01-18 17:44:13 -0800668
669 This attribute file will display the count of UEs on this
670 DIMM located in channel 0.
671
672
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200673- ``ch1_dimm_label`` - Channel 1 DIMM Label control file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800674
675 This control file allows this DIMM to have a label assigned
676 to it. With this label in the module, when errors occur
677 the output can provide the DIMM label in the system log.
678 This becomes vital for panic events to isolate the
679 cause of the UE event.
680
681 DIMM Labels must be assigned after booting, with information
682 that correctly identifies the physical slot with its
683 silk screen label. This information is currently very
684 motherboard specific and determination of this information
685 must occur in userland at this time.
686
Alan Coxda9bb1d2006-01-18 17:44:13 -0800687
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200688System Logging
Borislav Petkov043b4312015-06-19 11:47:17 +0200689--------------
690
691If logging for UEs and CEs is enabled, then system logs will contain
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200692information indicating that errors have been detected::
Alan Coxda9bb1d2006-01-18 17:44:13 -0800693
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200694 EDAC MC0: CE page 0x283, offset 0xce0, grain 8, syndrome 0x6ec3, row 0, channel 1 "DIMM_B1": amd76x_edac
695 EDAC MC0: CE page 0x1e5, offset 0xfb0, grain 8, syndrome 0xb741, row 0, channel 1 "DIMM_B1": amd76x_edac
Alan Coxda9bb1d2006-01-18 17:44:13 -0800696
697
698The structure of the message is:
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200699
700 +---------------------------------------+-------------+
Jonathan Corbet82a19552017-06-18 17:30:18 -0600701 | Content | Example |
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200702 +=======================================+=============+
703 | The memory controller | MC0 |
704 +---------------------------------------+-------------+
705 | Error type | CE |
706 +---------------------------------------+-------------+
707 | Memory page | 0x283 |
708 +---------------------------------------+-------------+
709 | Offset in the page | 0xce0 |
710 +---------------------------------------+-------------+
711 | The byte granularity | grain 8 |
712 | or resolution of the error | |
713 +---------------------------------------+-------------+
714 | The error syndrome | 0xb741 |
715 +---------------------------------------+-------------+
Jonathan Corbet82a19552017-06-18 17:30:18 -0600716 | Memory row | row 0 |
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200717 +---------------------------------------+-------------+
718 | Memory channel | channel 1 |
719 +---------------------------------------+-------------+
720 | DIMM label, if set prior | DIMM B1 |
721 +---------------------------------------+-------------+
722 | And then an optional, driver-specific | |
723 | message that may have additional | |
724 | information. | |
725 +---------------------------------------+-------------+
Alan Coxda9bb1d2006-01-18 17:44:13 -0800726
Borislav Petkov043b4312015-06-19 11:47:17 +0200727Both UEs and CEs with no info will lack all but memory controller, error
728type, a notice of "no info" and then an optional, driver-specific error
729message.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800730
731
Alan Coxda9bb1d2006-01-18 17:44:13 -0800732PCI Bus Parity Detection
Borislav Petkov043b4312015-06-19 11:47:17 +0200733------------------------
Alan Coxda9bb1d2006-01-18 17:44:13 -0800734
Borislav Petkov043b4312015-06-19 11:47:17 +0200735On Header Type 00 devices, the primary status is looked at for any
736parity error regardless of whether parity is enabled on the device or
737not. (The spec indicates parity is generated in some cases). On Header
738Type 01 bridges, the secondary status register is also looked at to see
739if parity occurred on the bus on the other side of the bridge.
Alan Coxda9bb1d2006-01-18 17:44:13 -0800740
741
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200742Sysfs configuration
Borislav Petkov043b4312015-06-19 11:47:17 +0200743-------------------
Alan Coxda9bb1d2006-01-18 17:44:13 -0800744
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200745Under ``/sys/devices/system/edac/pci`` are control and attribute files as
746follows:
Alan Coxda9bb1d2006-01-18 17:44:13 -0800747
748
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200749- ``check_pci_parity`` - Enable/Disable PCI Parity checking control file
Alan Coxda9bb1d2006-01-18 17:44:13 -0800750
751 This control file enables or disables the PCI Bus Parity scanning
752 operation. Writing a 1 to this file enables the scanning. Writing
753 a 0 to this file disables the scanning.
754
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200755 Enable::
Alan Coxda9bb1d2006-01-18 17:44:13 -0800756
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200757 echo "1" >/sys/devices/system/edac/pci/check_pci_parity
758
759 Disable::
760
761 echo "0" >/sys/devices/system/edac/pci/check_pci_parity
Alan Coxda9bb1d2006-01-18 17:44:13 -0800762
763
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200764- ``pci_parity_count`` - Parity Count
Arthur Jones327dafb2008-07-25 01:49:10 -0700765
766 This attribute file will display the number of parity errors that
767 have been detected.
768
769
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200770Module parameters
Borislav Petkov043b4312015-06-19 11:47:17 +0200771-----------------
Arthur Jones327dafb2008-07-25 01:49:10 -0700772
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200773- ``edac_mc_panic_on_ue`` - Panic on UE control file
Arthur Jones327dafb2008-07-25 01:49:10 -0700774
775 An uncorrectable error will cause a machine panic. This is usually
776 desirable. It is a bad idea to continue when an uncorrectable error
777 occurs - it is indeterminate what was uncorrected and the operating
778 system context might be so mangled that continuing will lead to further
779 corruption. If the kernel has MCE configured, then EDAC will never
780 notice the UE.
781
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200782 LOAD TIME::
Arthur Jones327dafb2008-07-25 01:49:10 -0700783
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200784 module/kernel parameter: edac_mc_panic_on_ue=[0|1]
785
786 RUN TIME::
787
788 echo "1" > /sys/module/edac_core/parameters/edac_mc_panic_on_ue
Arthur Jones327dafb2008-07-25 01:49:10 -0700789
790
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200791- ``edac_mc_log_ue`` - Log UE control file
Arthur Jones327dafb2008-07-25 01:49:10 -0700792
Arthur Jones327dafb2008-07-25 01:49:10 -0700793
794 Generate kernel messages describing uncorrectable errors. These errors
795 are reported through the system message log system. UE statistics
796 will be accumulated even when UE logging is disabled.
797
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200798 LOAD TIME::
Arthur Jones327dafb2008-07-25 01:49:10 -0700799
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200800 module/kernel parameter: edac_mc_log_ue=[0|1]
801
802 RUN TIME::
803
804 echo "1" > /sys/module/edac_core/parameters/edac_mc_log_ue
Arthur Jones327dafb2008-07-25 01:49:10 -0700805
806
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200807- ``edac_mc_log_ce`` - Log CE control file
Arthur Jones327dafb2008-07-25 01:49:10 -0700808
Arthur Jones327dafb2008-07-25 01:49:10 -0700809
810 Generate kernel messages describing correctable errors. These
811 errors are reported through the system message log system.
812 CE statistics will be accumulated even when CE logging is disabled.
813
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200814 LOAD TIME::
Arthur Jones327dafb2008-07-25 01:49:10 -0700815
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200816 module/kernel parameter: edac_mc_log_ce=[0|1]
817
818 RUN TIME::
819
820 echo "1" > /sys/module/edac_core/parameters/edac_mc_log_ce
Arthur Jones327dafb2008-07-25 01:49:10 -0700821
822
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200823- ``edac_mc_poll_msec`` - Polling period control file
Arthur Jones327dafb2008-07-25 01:49:10 -0700824
Arthur Jones327dafb2008-07-25 01:49:10 -0700825
826 The time period, in milliseconds, for polling for error information.
827 Too small a value wastes resources. Too large a value might delay
828 necessary handling of errors and might loose valuable information for
829 locating the error. 1000 milliseconds (once each second) is the current
830 default. Systems which require all the bandwidth they can get, may
831 increase this.
832
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200833 LOAD TIME::
Arthur Jones327dafb2008-07-25 01:49:10 -0700834
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200835 module/kernel parameter: edac_mc_poll_msec=[0|1]
836
837 RUN TIME::
838
839 echo "1000" > /sys/module/edac_core/parameters/edac_mc_poll_msec
Arthur Jones327dafb2008-07-25 01:49:10 -0700840
Alan Coxda9bb1d2006-01-18 17:44:13 -0800841
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200842- ``panic_on_pci_parity`` - Panic on PCI PARITY Error
Alan Coxda9bb1d2006-01-18 17:44:13 -0800843
844
Rami Rosen3aae9ed2015-06-19 09:18:34 +0300845 This control file enables or disables panicking when a parity
Alan Coxda9bb1d2006-01-18 17:44:13 -0800846 error has been detected.
847
848
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200849 module/kernel parameter::
Alan Coxda9bb1d2006-01-18 17:44:13 -0800850
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200851 edac_panic_on_pci_pe=[0|1]
Alan Coxda9bb1d2006-01-18 17:44:13 -0800852
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200853 Enable::
854
855 echo "1" > /sys/module/edac_core/parameters/edac_panic_on_pci_pe
856
857 Disable::
858
859 echo "0" > /sys/module/edac_core/parameters/edac_panic_on_pci_pe
Alan Coxda9bb1d2006-01-18 17:44:13 -0800860
861
862
Borislav Petkov043b4312015-06-19 11:47:17 +0200863EDAC device type
864----------------
Doug Thompson87f24c32007-07-19 01:50:34 -0700865
Mauro Carvalho Chehab66c222a2016-10-29 10:35:23 -0200866In the header file, edac_pci.h, there is a series of edac_device structures
Doug Thompson87f24c32007-07-19 01:50:34 -0700867and APIs for the EDAC_DEVICE.
868
869User space access to an edac_device is through the sysfs interface.
870
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200871At the location ``/sys/devices/system/edac`` (sysfs) new edac_device devices
872will appear.
Doug Thompson87f24c32007-07-19 01:50:34 -0700873
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200874There is a three level tree beneath the above ``edac`` directory. For example,
875the ``test_device_edac`` device (found at the http://bluesmoke.sourceforget.net
876website) installs itself as::
Doug Thompson87f24c32007-07-19 01:50:34 -0700877
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200878 /sys/devices/system/edac/test-instance
Doug Thompson87f24c32007-07-19 01:50:34 -0700879
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200880in this directory are various controls, a symlink and one or more ``instance``
Carlos Garciac98be0c2014-04-04 22:31:00 -0400881directories.
Doug Thompson87f24c32007-07-19 01:50:34 -0700882
883The standard default controls are:
884
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200885 ============== =======================================================
Doug Thompson87f24c32007-07-19 01:50:34 -0700886 log_ce boolean to log CE events
887 log_ue boolean to log UE events
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200888 panic_on_ue boolean to ``panic`` the system if an UE is encountered
Doug Thompson87f24c32007-07-19 01:50:34 -0700889 (default off, can be set true via startup script)
890 poll_msec time period between POLL cycles for events
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200891 ============== =======================================================
Doug Thompson87f24c32007-07-19 01:50:34 -0700892
893The test_device_edac device adds at least one of its own custom control:
894
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200895 ============== ==================================================
Doug Thompson87f24c32007-07-19 01:50:34 -0700896 test_bits which in the current test driver does nothing but
897 show how it is installed. A ported driver can
898 add one or more such controls and/or attributes
899 for specific uses.
900 One out-of-tree driver uses controls here to allow
901 for ERROR INJECTION operations to hardware
902 injection registers
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200903 ============== ==================================================
Doug Thompson87f24c32007-07-19 01:50:34 -0700904
905The symlink points to the 'struct dev' that is registered for this edac_device.
906
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200907Instances
Borislav Petkov043b4312015-06-19 11:47:17 +0200908---------
Doug Thompson87f24c32007-07-19 01:50:34 -0700909
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200910One or more instance directories are present. For the ``test_device_edac``
911case:
Doug Thompson87f24c32007-07-19 01:50:34 -0700912
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200913 +----------------+
914 | test-instance0 |
915 +----------------+
Doug Thompson87f24c32007-07-19 01:50:34 -0700916
917
918In this directory there are two default counter attributes, which are totals of
919counter in deeper subdirectories.
920
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200921 ============== ====================================
Doug Thompson87f24c32007-07-19 01:50:34 -0700922 ce_count total of CE events of subdirectories
923 ue_count total of UE events of subdirectories
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200924 ============== ====================================
Doug Thompson87f24c32007-07-19 01:50:34 -0700925
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200926Blocks
Borislav Petkov043b4312015-06-19 11:47:17 +0200927------
Doug Thompson87f24c32007-07-19 01:50:34 -0700928
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200929At the lowest directory level is the ``block`` directory. There can be 0, 1
930or more blocks specified in each instance:
Doug Thompson87f24c32007-07-19 01:50:34 -0700931
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200932 +-------------+
933 | test-block0 |
934 +-------------+
Doug Thompson87f24c32007-07-19 01:50:34 -0700935
936In this directory the default attributes are:
937
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200938 ============== ================================================
939 ce_count which is counter of CE events for this ``block``
Doug Thompson87f24c32007-07-19 01:50:34 -0700940 of hardware being monitored
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200941 ue_count which is counter of UE events for this ``block``
Doug Thompson87f24c32007-07-19 01:50:34 -0700942 of hardware being monitored
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200943 ============== ================================================
Doug Thompson87f24c32007-07-19 01:50:34 -0700944
945
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200946The ``test_device_edac`` device adds 4 attributes and 1 control:
Doug Thompson87f24c32007-07-19 01:50:34 -0700947
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200948 ================== ====================================================
Doug Thompson87f24c32007-07-19 01:50:34 -0700949 test-block-bits-0 for every POLL cycle this counter
950 is incremented
951 test-block-bits-1 every 10 cycles, this counter is bumped once,
952 and test-block-bits-0 is set to 0
953 test-block-bits-2 every 100 cycles, this counter is bumped once,
954 and test-block-bits-1 is set to 0
955 test-block-bits-3 every 1000 cycles, this counter is bumped once,
956 and test-block-bits-2 is set to 0
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200957 ================== ====================================================
Doug Thompson87f24c32007-07-19 01:50:34 -0700958
959
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200960 ================== ====================================================
Doug Thompson87f24c32007-07-19 01:50:34 -0700961 reset-counters writing ANY thing to this control will
962 reset all the above counters.
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200963 ================== ====================================================
Doug Thompson87f24c32007-07-19 01:50:34 -0700964
965
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200966Use of the ``test_device_edac`` driver should enable any others to create their own
Doug Thompson87f24c32007-07-19 01:50:34 -0700967unique drivers for their hardware systems.
968
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -0200969The ``test_device_edac`` sample driver is located at the
970http://bluesmoke.sourceforge.net project site for EDAC.
Doug Thompson87f24c32007-07-19 01:50:34 -0700971
Borislav Petkov043b4312015-06-19 11:47:17 +0200972
Mauro Carvalho Chehabe4b53012016-10-26 08:43:58 -0200973Usage of EDAC APIs on Nehalem and newer Intel CPUs
974--------------------------------------------------
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -0300975
Mauro Carvalho Chehabe4b53012016-10-26 08:43:58 -0200976On older Intel architectures, the memory controller was part of the North
977Bridge chipset. Nehalem, Sandy Bridge, Ivy Bridge, Haswell, Sky Lake and
978newer Intel architectures integrated an enhanced version of the memory
979controller (MC) inside the CPUs.
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -0300980
Mauro Carvalho Chehabe4b53012016-10-26 08:43:58 -0200981This chapter will cover the differences of the enhanced memory controllers
982found on newer Intel CPUs, such as ``i7core_edac``, ``sb_edac`` and
983``sbx_edac`` drivers.
984
985.. note::
986
987 The Xeon E7 processor families use a separate chip for the memory
988 controller, called Intel Scalable Memory Buffer. This section doesn't
989 apply for such families.
990
9911) There is one Memory Controller per Quick Patch Interconnect
Mauro Carvalho Chehabc3444362009-09-05 05:10:15 -0300992 (QPI). At the driver, the term "socket" means one QPI. This is
993 associated with a physical CPU socket.
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -0300994
995 Each MC have 3 physical read channels, 3 physical write channels and
Masanari Iidac94bed8e2012-04-10 00:22:13 +0900996 3 logic channels. The driver currently sees it as just 3 channels.
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -0300997 Each channel can have up to 3 DIMMs.
998
999 The minimum known unity is DIMMs. There are no information about csrows.
Rami Rosen3aae9ed2015-06-19 09:18:34 +03001000 As EDAC API maps the minimum unity is csrows, the driver sequentially
Mauro Carvalho Chehabe4b53012016-10-26 08:43:58 -02001001 maps channel/DIMM into different csrows.
Mauro Carvalho Chehabc3444362009-09-05 05:10:15 -03001002
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001003 For example, supposing the following layout::
1004
Mauro Carvalho Chehabc3444362009-09-05 05:10:15 -03001005 Ch0 phy rd0, wr0 (0x063f4031): 2 ranks, UDIMMs
1006 dimm 0 1024 Mb offset: 0, bank: 8, rank: 1, row: 0x4000, col: 0x400
1007 dimm 1 1024 Mb offset: 4, bank: 8, rank: 1, row: 0x4000, col: 0x400
1008 Ch1 phy rd1, wr1 (0x063f4031): 2 ranks, UDIMMs
1009 dimm 0 1024 Mb offset: 0, bank: 8, rank: 1, row: 0x4000, col: 0x400
1010 Ch2 phy rd3, wr3 (0x063f4031): 2 ranks, UDIMMs
1011 dimm 0 1024 Mb offset: 0, bank: 8, rank: 1, row: 0x4000, col: 0x400
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001012
1013 The driver will map it as::
1014
Mauro Carvalho Chehabc3444362009-09-05 05:10:15 -03001015 csrow0: channel 0, dimm0
1016 csrow1: channel 0, dimm1
1017 csrow2: channel 1, dimm0
1018 csrow3: channel 2, dimm0
1019
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001020 exports one DIMM per csrow.
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001021
Mauro Carvalho Chehabc3444362009-09-05 05:10:15 -03001022 Each QPI is exported as a different memory controller.
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001023
Mauro Carvalho Chehabe4b53012016-10-26 08:43:58 -020010242) The MC has the ability to inject errors to test drivers. The drivers
1025 implement this functionality via some error injection nodes:
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001026
1027 For injecting a memory error, there are some sysfs nodes, under
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001028 ``/sys/devices/system/edac/mc/mc?/``:
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001029
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001030 - ``inject_addrmatch/*``:
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001031 Controls the error injection mask register. It is possible to specify
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001032 several characteristics of the address to match an error code::
1033
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001034 dimm = the affected dimm. Numbers are relative to a channel;
1035 rank = the memory rank;
1036 channel = the channel that will generate an error;
1037 bank = the affected bank;
1038 page = the page address;
1039 column (or col) = the address column.
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001040
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001041 each of the above values can be set to "any" to match any valid value.
1042
1043 At driver init, all values are set to any.
1044
1045 For example, to generate an error at rank 1 of dimm 2, for any channel,
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001046 any bank, any page, any column::
1047
Mauro Carvalho Chehab35be9542009-09-24 17:28:50 -03001048 echo 2 >/sys/devices/system/edac/mc/mc0/inject_addrmatch/dimm
1049 echo 1 >/sys/devices/system/edac/mc/mc0/inject_addrmatch/rank
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001050
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001051 To return to the default behaviour of matching any, you can do::
1052
Mauro Carvalho Chehab35be9542009-09-24 17:28:50 -03001053 echo any >/sys/devices/system/edac/mc/mc0/inject_addrmatch/dimm
1054 echo any >/sys/devices/system/edac/mc/mc0/inject_addrmatch/rank
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001055
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001056 - ``inject_eccmask``:
1057 specifies what bits will have troubles,
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001058
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001059 - ``inject_section``:
1060 specifies what ECC cache section will get the error::
1061
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001062 3 for both
1063 2 for the highest
1064 1 for the lowest
1065
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001066 - ``inject_type``:
1067 specifies the type of error, being a combination of the following bits::
1068
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001069 bit 0 - repeat
1070 bit 1 - ecc
1071 bit 2 - parity
1072
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001073 - ``inject_enable``:
1074 starts the error generation when something different than 0 is written.
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001075
1076 All inject vars can be read. root permission is needed for write.
1077
1078 Datasheet states that the error will only be generated after a write on an
1079 address that matches inject_addrmatch. It seems, however, that reading will
1080 also produce an error.
1081
1082 For example, the following code will generate an error for any write access
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001083 at socket 0, on any DIMM/address on channel 2::
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001084
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001085 echo 2 >/sys/devices/system/edac/mc/mc0/inject_addrmatch/channel
1086 echo 2 >/sys/devices/system/edac/mc/mc0/inject_type
1087 echo 64 >/sys/devices/system/edac/mc/mc0/inject_eccmask
1088 echo 3 >/sys/devices/system/edac/mc/mc0/inject_section
1089 echo 1 >/sys/devices/system/edac/mc/mc0/inject_enable
1090 dd if=/dev/mem of=/dev/null seek=16k bs=4k count=1 >& /dev/null
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001091
Mauro Carvalho Chehabc3444362009-09-05 05:10:15 -03001092 For socket 1, it is needed to replace "mc0" by "mc1" at the above
1093 commands.
1094
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001095 The generated error message will look like::
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001096
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001097 EDAC MC0: UE row 0, channel-a= 0 channel-b= 0 labels "-": NON_FATAL (addr = 0x0075b980, socket=0, Dimm=0, Channel=2, syndrome=0x00000040, count=1, Err=8c0000400001009f:4000080482 (read error: read ECC error))
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001098
Mauro Carvalho Chehabe4b53012016-10-26 08:43:58 -020010993) Corrected Error memory register counters
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001100
Mauro Carvalho Chehabe4b53012016-10-26 08:43:58 -02001101 Those newer MCs have some registers to count memory errors. The driver
1102 uses those registers to report Corrected Errors on devices with Registered
1103 DIMMs.
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001104
Mauro Carvalho Chehabe4b53012016-10-26 08:43:58 -02001105 However, those counters don't work with Unregistered DIMM. As the chipset
1106 offers some counters that also work with UDIMMs (but with a worse level of
Mauro Carvalho Chehab35be9542009-09-24 17:28:50 -03001107 granularity than the default ones), the driver exposes those registers for
1108 UDIMM memories.
Mauro Carvalho Chehabc3444362009-09-05 05:10:15 -03001109
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001110 They can be read by looking at the contents of ``all_channel_counts/``::
Mauro Carvalho Chehab31983a02009-08-05 21:16:56 -03001111
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001112 $ for i in /sys/devices/system/edac/mc/mc0/all_channel_counts/*; do echo $i; cat $i; done
Mauro Carvalho Chehab35be9542009-09-24 17:28:50 -03001113 /sys/devices/system/edac/mc/mc0/all_channel_counts/udimm0
1114 0
1115 /sys/devices/system/edac/mc/mc0/all_channel_counts/udimm1
1116 0
1117 /sys/devices/system/edac/mc/mc0/all_channel_counts/udimm2
1118 0
Mauro Carvalho Chehabc3444362009-09-05 05:10:15 -03001119
1120 What happens here is that errors on different csrows, but at the same
1121 dimm number will increment the same counter.
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001122 So, in this memory mapping::
1123
Mauro Carvalho Chehabc3444362009-09-05 05:10:15 -03001124 csrow0: channel 0, dimm0
1125 csrow1: channel 0, dimm1
1126 csrow2: channel 1, dimm0
1127 csrow3: channel 2, dimm0
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001128
Mauro Carvalho Chehab35be9542009-09-24 17:28:50 -03001129 The hardware will increment udimm0 for an error at the first dimm at either
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001130 csrow0, csrow2 or csrow3;
1131
Mauro Carvalho Chehab35be9542009-09-24 17:28:50 -03001132 The hardware will increment udimm1 for an error at the second dimm at either
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001133 csrow0, csrow2 or csrow3;
1134
Mauro Carvalho Chehab35be9542009-09-24 17:28:50 -03001135 The hardware will increment udimm2 for an error at the third dimm at either
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001136 csrow0, csrow2 or csrow3;
Mauro Carvalho Chehabc3444362009-09-05 05:10:15 -03001137
11384) Standard error counters
1139
1140 The standard error counters are generated when an mcelog error is received
Mauro Carvalho Chehabe4b53012016-10-26 08:43:58 -02001141 by the driver. Since, with UDIMM, this is counted by software, it is
1142 possible that some errors could be lost. With RDIMM's, they display the
Mauro Carvalho Chehab35be9542009-09-24 17:28:50 -03001143 contents of the registers
Borislav Petkov043b4312015-06-19 11:47:17 +02001144
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001145Reference documents used on ``amd64_edac``
1146------------------------------------------
1147
1148``amd64_edac`` module is based on the following documents
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001149(available from http://support.amd.com/en-us/search/tech-docs):
1150
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -020011511. :Title: BIOS and Kernel Developer's Guide for AMD Athlon 64 and AMD
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001152 Opteron Processors
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001153 :AMD publication #: 26094
1154 :Revision: 3.26
1155 :Link: http://support.amd.com/TechDocs/26094.PDF
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001156
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -020011572. :Title: BIOS and Kernel Developer's Guide for AMD NPT Family 0Fh
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001158 Processors
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001159 :AMD publication #: 32559
1160 :Revision: 3.00
1161 :Issue Date: May 2006
1162 :Link: http://support.amd.com/TechDocs/32559.pdf
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001163
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -020011643. :Title: BIOS and Kernel Developer's Guide (BKDG) For AMD Family 10h
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001165 Processors
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001166 :AMD publication #: 31116
1167 :Revision: 3.00
1168 :Issue Date: September 07, 2007
1169 :Link: http://support.amd.com/TechDocs/31116.pdf
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001170
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -020011714. :Title: BIOS and Kernel Developer's Guide (BKDG) for AMD Family 15h
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001172 Models 30h-3Fh Processors
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001173 :AMD publication #: 49125
1174 :Revision: 3.06
1175 :Issue Date: 2/12/2015 (latest release)
1176 :Link: http://support.amd.com/TechDocs/49125_15h_Models_30h-3Fh_BKDG.pdf
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001177
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -020011785. :Title: BIOS and Kernel Developer's Guide (BKDG) for AMD Family 15h
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001179 Models 60h-6Fh Processors
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001180 :AMD publication #: 50742
1181 :Revision: 3.01
1182 :Issue Date: 7/23/2015 (latest release)
1183 :Link: http://support.amd.com/TechDocs/50742_15h_Models_60h-6Fh_BKDG.pdf
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001184
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -020011856. :Title: BIOS and Kernel Developer's Guide (BKDG) for AMD Family 16h
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001186 Models 00h-0Fh Processors
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001187 :AMD publication #: 48751
1188 :Revision: 3.03
1189 :Issue Date: 2/23/2015 (latest release)
1190 :Link: http://support.amd.com/TechDocs/48751_16h_bkdg.pdf
Aravind Gopalakrishnan6b7464b2015-09-28 06:44:31 -05001191
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001192Credits
1193=======
Borislav Petkov043b4312015-06-19 11:47:17 +02001194
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001195* Written by Doug Thompson <dougthompson@xmission.com>
Borislav Petkov043b4312015-06-19 11:47:17 +02001196
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001197 - 7 Dec 2005
1198 - 17 Jul 2007 Updated
Borislav Petkov043b4312015-06-19 11:47:17 +02001199
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001200* |copy| Mauro Carvalho Chehab
Borislav Petkov043b4312015-06-19 11:47:17 +02001201
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001202 - 05 Aug 2009 Nehalem interface
Mauro Carvalho Chehabe4b53012016-10-26 08:43:58 -02001203 - 26 Oct 2016 Converted to ReST and cleanups at the Nehalem section
Mauro Carvalho Chehabb27a2d02016-10-26 08:14:12 -02001204
1205* EDAC authors/maintainers:
1206
1207 - Doug Thompson, Dave Jiang, Dave Peterson et al,
1208 - Mauro Carvalho Chehab
1209 - Borislav Petkov
1210 - original author: Thayne Harbaugh