edac.txt 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. EDAC - Error Detection And Correction
  2. =====================================
  3. "bluesmoke" was the name for this device driver when it
  4. was "out-of-tree" and maintained at sourceforge.net -
  5. bluesmoke.sourceforge.net. That site is mostly archaic now and can be
  6. used only for historical purposes.
  7. When the subsystem was pushed into 2.6.16 for the first time, it was
  8. renamed to 'EDAC'.
  9. PURPOSE
  10. -------
  11. The 'edac' kernel module's goal is to detect and report hardware errors
  12. that occur within the computer system running under linux.
  13. MEMORY
  14. ------
  15. Memory Correctable Errors (CE) and Uncorrectable Errors (UE) are the
  16. primary errors being harvested. These types of errors are harvested by
  17. the 'edac_mc' device.
  18. Detecting CE events, then harvesting those events and reporting them,
  19. *can* but must not necessarily be a predictor of future UE events. With
  20. CE events only, the system can and will continue to operate as no data
  21. has been damaged yet.
  22. However, preventive maintenance and proactive part replacement of memory
  23. DIMMs exhibiting CEs can reduce the likelihood of the dreaded UE events
  24. and system panics.
  25. OTHER HARDWARE ELEMENTS
  26. -----------------------
  27. A new feature for EDAC, the edac_device class of device, was added in
  28. the 2.6.23 version of the kernel.
  29. This new device type allows for non-memory type of ECC hardware detectors
  30. to have their states harvested and presented to userspace via the sysfs
  31. interface.
  32. Some architectures have ECC detectors for L1, L2 and L3 caches,
  33. along with DMA engines, fabric switches, main data path switches,
  34. interconnections, and various other hardware data paths. If the hardware
  35. reports it, then a edac_device device probably can be constructed to
  36. harvest and present that to userspace.
  37. PCI BUS SCANNING
  38. ----------------
  39. In addition, PCI devices are scanned for PCI Bus Parity and SERR Errors
  40. in order to determine if errors are occurring during data transfers.
  41. The presence of PCI Parity errors must be examined with a grain of salt.
  42. There are several add-in adapters that do *not* follow the PCI specification
  43. with regards to Parity generation and reporting. The specification says
  44. the vendor should tie the parity status bits to 0 if they do not intend
  45. to generate parity. Some vendors do not do this, and thus the parity bit
  46. can "float" giving false positives.
  47. There is a PCI device attribute located in sysfs that is checked by
  48. the EDAC PCI scanning code. If that attribute is set, PCI parity/error
  49. scanning is skipped for that device. The attribute is:
  50. broken_parity_status
  51. and is located in /sys/devices/pci<XXX>/0000:XX:YY.Z directories for
  52. PCI devices.
  53. VERSIONING
  54. ----------
  55. EDAC is composed of a "core" module (edac_core.ko) and several Memory
  56. Controller (MC) driver modules. On a given system, the CORE is loaded
  57. and one MC driver will be loaded. Both the CORE and the MC driver (or
  58. edac_device driver) have individual versions that reflect current
  59. release level of their respective modules.
  60. Thus, to "report" on what version a system is running, one must report
  61. both the CORE's and the MC driver's versions.
  62. LOADING
  63. -------
  64. If 'edac' was statically linked with the kernel then no loading
  65. is necessary. If 'edac' was built as modules then simply modprobe
  66. the 'edac' pieces that you need. You should be able to modprobe
  67. hardware-specific modules and have the dependencies load the necessary
  68. core modules.
  69. Example:
  70. $> modprobe amd76x_edac
  71. loads both the amd76x_edac.ko memory controller module and the edac_mc.ko
  72. core module.
  73. SYSFS INTERFACE
  74. ---------------
  75. EDAC presents a 'sysfs' interface for control and reporting purposes. It
  76. lives in the /sys/devices/system/edac directory.
  77. Within this directory there currently reside 2 components:
  78. mc memory controller(s) system
  79. pci PCI control and status system
  80. Memory Controller (mc) Model
  81. ----------------------------
  82. Each 'mc' device controls a set of DIMM memory modules. These modules
  83. are laid out in a Chip-Select Row (csrowX) and Channel table (chX).
  84. There can be multiple csrows and multiple channels.
  85. Memory controllers allow for several csrows, with 8 csrows being a
  86. typical value. Yet, the actual number of csrows depends on the layout of
  87. a given motherboard, memory controller and DIMM characteristics.
  88. Dual channels allows for 128 bit data transfers to/from the CPU from/to
  89. memory. Some newer chipsets allow for more than 2 channels, like Fully
  90. Buffered DIMMs (FB-DIMMs). The following example will assume 2 channels:
  91. Channel 0 Channel 1
  92. ===================================
  93. csrow0 | DIMM_A0 | DIMM_B0 |
  94. csrow1 | DIMM_A0 | DIMM_B0 |
  95. ===================================
  96. ===================================
  97. csrow2 | DIMM_A1 | DIMM_B1 |
  98. csrow3 | DIMM_A1 | DIMM_B1 |
  99. ===================================
  100. In the above example table there are 4 physical slots on the motherboard
  101. for memory DIMMs:
  102. DIMM_A0
  103. DIMM_B0
  104. DIMM_A1
  105. DIMM_B1
  106. Labels for these slots are usually silk-screened on the motherboard.
  107. Slots labeled 'A' are channel 0 in this example. Slots labeled 'B' are
  108. channel 1. Notice that there are two csrows possible on a physical DIMM.
  109. These csrows are allocated their csrow assignment based on the slot into
  110. which the memory DIMM is placed. Thus, when 1 DIMM is placed in each
  111. Channel, the csrows cross both DIMMs.
  112. Memory DIMMs come single or dual "ranked". A rank is a populated csrow.
  113. Thus, 2 single ranked DIMMs, placed in slots DIMM_A0 and DIMM_B0 above
  114. will have 1 csrow, csrow0. csrow1 will be empty. On the other hand,
  115. when 2 dual ranked DIMMs are similarly placed, then both csrow0 and
  116. csrow1 will be populated. The pattern repeats itself for csrow2 and
  117. csrow3.
  118. The representation of the above is reflected in the directory
  119. tree in EDAC's sysfs interface. Starting in directory
  120. /sys/devices/system/edac/mc each memory controller will be represented
  121. by its own 'mcX' directory, where 'X' is the index of the MC.
  122. ..../edac/mc/
  123. |
  124. |->mc0
  125. |->mc1
  126. |->mc2
  127. ....
  128. Under each 'mcX' directory each 'csrowX' is again represented by a
  129. 'csrowX', where 'X' is the csrow index:
  130. .../mc/mc0/
  131. |
  132. |->csrow0
  133. |->csrow2
  134. |->csrow3
  135. ....
  136. Notice that there is no csrow1, which indicates that csrow0 is composed
  137. of a single ranked DIMMs. This should also apply in both Channels, in
  138. order to have dual-channel mode be operational. Since both csrow2 and
  139. csrow3 are populated, this indicates a dual ranked set of DIMMs for
  140. channels 0 and 1.
  141. Within each of the 'mcX' and 'csrowX' directories are several EDAC
  142. control and attribute files.
  143. 'mcX' directories
  144. -----------------
  145. In 'mcX' directories are EDAC control and attribute files for
  146. this 'X' instance of the memory controllers.
  147. For a description of the sysfs API, please see:
  148. Documentation/ABI/testing/sysfs-devices-edac
  149. 'csrowX' directories
  150. --------------------
  151. When CONFIG_EDAC_LEGACY_SYSFS is enabled, sysfs will contain the csrowX
  152. directories. As this API doesn't work properly for Rambus, FB-DIMMs and
  153. modern Intel Memory Controllers, this is being deprecated in favor of
  154. dimmX directories.
  155. In the 'csrowX' directories are EDAC control and attribute files for
  156. this 'X' instance of csrow:
  157. Total Uncorrectable Errors count attribute file:
  158. 'ue_count'
  159. This attribute file displays the total count of uncorrectable
  160. errors that have occurred on this csrow. If panic_on_ue is set
  161. this counter will not have a chance to increment, since EDAC
  162. will panic the system.
  163. Total Correctable Errors count attribute file:
  164. 'ce_count'
  165. This attribute file displays the total count of correctable
  166. errors that have occurred on this csrow. This count is very
  167. important to examine. CEs provide early indications that a
  168. DIMM is beginning to fail. This count field should be
  169. monitored for non-zero values and report such information
  170. to the system administrator.
  171. Total memory managed by this csrow attribute file:
  172. 'size_mb'
  173. This attribute file displays, in count of megabytes, the memory
  174. that this csrow contains.
  175. Memory Type attribute file:
  176. 'mem_type'
  177. This attribute file will display what type of memory is currently
  178. on this csrow. Normally, either buffered or unbuffered memory.
  179. Examples:
  180. Registered-DDR
  181. Unbuffered-DDR
  182. EDAC Mode of operation attribute file:
  183. 'edac_mode'
  184. This attribute file will display what type of Error detection
  185. and correction is being utilized.
  186. Device type attribute file:
  187. 'dev_type'
  188. This attribute file will display what type of DRAM device is
  189. being utilized on this DIMM.
  190. Examples:
  191. x1
  192. x2
  193. x4
  194. x8
  195. Channel 0 CE Count attribute file:
  196. 'ch0_ce_count'
  197. This attribute file will display the count of CEs on this
  198. DIMM located in channel 0.
  199. Channel 0 UE Count attribute file:
  200. 'ch0_ue_count'
  201. This attribute file will display the count of UEs on this
  202. DIMM located in channel 0.
  203. Channel 0 DIMM Label control file:
  204. 'ch0_dimm_label'
  205. This control file allows this DIMM to have a label assigned
  206. to it. With this label in the module, when errors occur
  207. the output can provide the DIMM label in the system log.
  208. This becomes vital for panic events to isolate the
  209. cause of the UE event.
  210. DIMM Labels must be assigned after booting, with information
  211. that correctly identifies the physical slot with its
  212. silk screen label. This information is currently very
  213. motherboard specific and determination of this information
  214. must occur in userland at this time.
  215. Channel 1 CE Count attribute file:
  216. 'ch1_ce_count'
  217. This attribute file will display the count of CEs on this
  218. DIMM located in channel 1.
  219. Channel 1 UE Count attribute file:
  220. 'ch1_ue_count'
  221. This attribute file will display the count of UEs on this
  222. DIMM located in channel 0.
  223. Channel 1 DIMM Label control file:
  224. 'ch1_dimm_label'
  225. This control file allows this DIMM to have a label assigned
  226. to it. With this label in the module, when errors occur
  227. the output can provide the DIMM label in the system log.
  228. This becomes vital for panic events to isolate the
  229. cause of the UE event.
  230. DIMM Labels must be assigned after booting, with information
  231. that correctly identifies the physical slot with its
  232. silk screen label. This information is currently very
  233. motherboard specific and determination of this information
  234. must occur in userland at this time.
  235. SYSTEM LOGGING
  236. --------------
  237. If logging for UEs and CEs is enabled, then system logs will contain
  238. information indicating that errors have been detected:
  239. EDAC MC0: CE page 0x283, offset 0xce0, grain 8, syndrome 0x6ec3, row 0,
  240. channel 1 "DIMM_B1": amd76x_edac
  241. EDAC MC0: CE page 0x1e5, offset 0xfb0, grain 8, syndrome 0xb741, row 0,
  242. channel 1 "DIMM_B1": amd76x_edac
  243. The structure of the message is:
  244. the memory controller (MC0)
  245. Error type (CE)
  246. memory page (0x283)
  247. offset in the page (0xce0)
  248. the byte granularity (grain 8)
  249. or resolution of the error
  250. the error syndrome (0xb741)
  251. memory row (row 0)
  252. memory channel (channel 1)
  253. DIMM label, if set prior (DIMM B1
  254. and then an optional, driver-specific message that may
  255. have additional information.
  256. Both UEs and CEs with no info will lack all but memory controller, error
  257. type, a notice of "no info" and then an optional, driver-specific error
  258. message.
  259. PCI Bus Parity Detection
  260. ------------------------
  261. On Header Type 00 devices, the primary status is looked at for any
  262. parity error regardless of whether parity is enabled on the device or
  263. not. (The spec indicates parity is generated in some cases). On Header
  264. Type 01 bridges, the secondary status register is also looked at to see
  265. if parity occurred on the bus on the other side of the bridge.
  266. SYSFS CONFIGURATION
  267. -------------------
  268. Under /sys/devices/system/edac/pci are control and attribute files as follows:
  269. Enable/Disable PCI Parity checking control file:
  270. 'check_pci_parity'
  271. This control file enables or disables the PCI Bus Parity scanning
  272. operation. Writing a 1 to this file enables the scanning. Writing
  273. a 0 to this file disables the scanning.
  274. Enable:
  275. echo "1" >/sys/devices/system/edac/pci/check_pci_parity
  276. Disable:
  277. echo "0" >/sys/devices/system/edac/pci/check_pci_parity
  278. Parity Count:
  279. 'pci_parity_count'
  280. This attribute file will display the number of parity errors that
  281. have been detected.
  282. MODULE PARAMETERS
  283. -----------------
  284. Panic on UE control file:
  285. 'edac_mc_panic_on_ue'
  286. An uncorrectable error will cause a machine panic. This is usually
  287. desirable. It is a bad idea to continue when an uncorrectable error
  288. occurs - it is indeterminate what was uncorrected and the operating
  289. system context might be so mangled that continuing will lead to further
  290. corruption. If the kernel has MCE configured, then EDAC will never
  291. notice the UE.
  292. LOAD TIME: module/kernel parameter: edac_mc_panic_on_ue=[0|1]
  293. RUN TIME: echo "1" > /sys/module/edac_core/parameters/edac_mc_panic_on_ue
  294. Log UE control file:
  295. 'edac_mc_log_ue'
  296. Generate kernel messages describing uncorrectable errors. These errors
  297. are reported through the system message log system. UE statistics
  298. will be accumulated even when UE logging is disabled.
  299. LOAD TIME: module/kernel parameter: edac_mc_log_ue=[0|1]
  300. RUN TIME: echo "1" > /sys/module/edac_core/parameters/edac_mc_log_ue
  301. Log CE control file:
  302. 'edac_mc_log_ce'
  303. Generate kernel messages describing correctable errors. These
  304. errors are reported through the system message log system.
  305. CE statistics will be accumulated even when CE logging is disabled.
  306. LOAD TIME: module/kernel parameter: edac_mc_log_ce=[0|1]
  307. RUN TIME: echo "1" > /sys/module/edac_core/parameters/edac_mc_log_ce
  308. Polling period control file:
  309. 'edac_mc_poll_msec'
  310. The time period, in milliseconds, for polling for error information.
  311. Too small a value wastes resources. Too large a value might delay
  312. necessary handling of errors and might loose valuable information for
  313. locating the error. 1000 milliseconds (once each second) is the current
  314. default. Systems which require all the bandwidth they can get, may
  315. increase this.
  316. LOAD TIME: module/kernel parameter: edac_mc_poll_msec=[0|1]
  317. RUN TIME: echo "1000" > /sys/module/edac_core/parameters/edac_mc_poll_msec
  318. Panic on PCI PARITY Error:
  319. 'panic_on_pci_parity'
  320. This control file enables or disables panicking when a parity
  321. error has been detected.
  322. module/kernel parameter: edac_panic_on_pci_pe=[0|1]
  323. Enable:
  324. echo "1" > /sys/module/edac_core/parameters/edac_panic_on_pci_pe
  325. Disable:
  326. echo "0" > /sys/module/edac_core/parameters/edac_panic_on_pci_pe
  327. EDAC device type
  328. ----------------
  329. In the header file, edac_core.h, there is a series of edac_device structures
  330. and APIs for the EDAC_DEVICE.
  331. User space access to an edac_device is through the sysfs interface.
  332. At the location /sys/devices/system/edac (sysfs) new edac_device devices will
  333. appear.
  334. There is a three level tree beneath the above 'edac' directory. For example,
  335. the 'test_device_edac' device (found at the bluesmoke.sourceforget.net website)
  336. installs itself as:
  337. /sys/devices/systm/edac/test-instance
  338. in this directory are various controls, a symlink and one or more 'instance'
  339. directories.
  340. The standard default controls are:
  341. log_ce boolean to log CE events
  342. log_ue boolean to log UE events
  343. panic_on_ue boolean to 'panic' the system if an UE is encountered
  344. (default off, can be set true via startup script)
  345. poll_msec time period between POLL cycles for events
  346. The test_device_edac device adds at least one of its own custom control:
  347. test_bits which in the current test driver does nothing but
  348. show how it is installed. A ported driver can
  349. add one or more such controls and/or attributes
  350. for specific uses.
  351. One out-of-tree driver uses controls here to allow
  352. for ERROR INJECTION operations to hardware
  353. injection registers
  354. The symlink points to the 'struct dev' that is registered for this edac_device.
  355. INSTANCES
  356. ---------
  357. One or more instance directories are present. For the 'test_device_edac' case:
  358. test-instance0
  359. In this directory there are two default counter attributes, which are totals of
  360. counter in deeper subdirectories.
  361. ce_count total of CE events of subdirectories
  362. ue_count total of UE events of subdirectories
  363. BLOCKS
  364. ------
  365. At the lowest directory level is the 'block' directory. There can be 0, 1
  366. or more blocks specified in each instance.
  367. test-block0
  368. In this directory the default attributes are:
  369. ce_count which is counter of CE events for this 'block'
  370. of hardware being monitored
  371. ue_count which is counter of UE events for this 'block'
  372. of hardware being monitored
  373. The 'test_device_edac' device adds 4 attributes and 1 control:
  374. test-block-bits-0 for every POLL cycle this counter
  375. is incremented
  376. test-block-bits-1 every 10 cycles, this counter is bumped once,
  377. and test-block-bits-0 is set to 0
  378. test-block-bits-2 every 100 cycles, this counter is bumped once,
  379. and test-block-bits-1 is set to 0
  380. test-block-bits-3 every 1000 cycles, this counter is bumped once,
  381. and test-block-bits-2 is set to 0
  382. reset-counters writing ANY thing to this control will
  383. reset all the above counters.
  384. Use of the 'test_device_edac' driver should enable any others to create their own
  385. unique drivers for their hardware systems.
  386. The 'test_device_edac' sample driver is located at the
  387. bluesmoke.sourceforge.net project site for EDAC.
  388. NEHALEM USAGE OF EDAC APIs
  389. --------------------------
  390. This chapter documents some EXPERIMENTAL mappings for EDAC API to handle
  391. Nehalem EDAC driver. They will likely be changed on future versions
  392. of the driver.
  393. Due to the way Nehalem exports Memory Controller data, some adjustments
  394. were done at i7core_edac driver. This chapter will cover those differences
  395. 1) On Nehalem, there is one Memory Controller per Quick Patch Interconnect
  396. (QPI). At the driver, the term "socket" means one QPI. This is
  397. associated with a physical CPU socket.
  398. Each MC have 3 physical read channels, 3 physical write channels and
  399. 3 logic channels. The driver currently sees it as just 3 channels.
  400. Each channel can have up to 3 DIMMs.
  401. The minimum known unity is DIMMs. There are no information about csrows.
  402. As EDAC API maps the minimum unity is csrows, the driver sequentially
  403. maps channel/dimm into different csrows.
  404. For example, supposing the following layout:
  405. Ch0 phy rd0, wr0 (0x063f4031): 2 ranks, UDIMMs
  406. dimm 0 1024 Mb offset: 0, bank: 8, rank: 1, row: 0x4000, col: 0x400
  407. dimm 1 1024 Mb offset: 4, bank: 8, rank: 1, row: 0x4000, col: 0x400
  408. Ch1 phy rd1, wr1 (0x063f4031): 2 ranks, UDIMMs
  409. dimm 0 1024 Mb offset: 0, bank: 8, rank: 1, row: 0x4000, col: 0x400
  410. Ch2 phy rd3, wr3 (0x063f4031): 2 ranks, UDIMMs
  411. dimm 0 1024 Mb offset: 0, bank: 8, rank: 1, row: 0x4000, col: 0x400
  412. The driver will map it as:
  413. csrow0: channel 0, dimm0
  414. csrow1: channel 0, dimm1
  415. csrow2: channel 1, dimm0
  416. csrow3: channel 2, dimm0
  417. exports one
  418. DIMM per csrow.
  419. Each QPI is exported as a different memory controller.
  420. 2) Nehalem MC has the ability to generate errors. The driver implements this
  421. functionality via some error injection nodes:
  422. For injecting a memory error, there are some sysfs nodes, under
  423. /sys/devices/system/edac/mc/mc?/:
  424. inject_addrmatch/*:
  425. Controls the error injection mask register. It is possible to specify
  426. several characteristics of the address to match an error code:
  427. dimm = the affected dimm. Numbers are relative to a channel;
  428. rank = the memory rank;
  429. channel = the channel that will generate an error;
  430. bank = the affected bank;
  431. page = the page address;
  432. column (or col) = the address column.
  433. each of the above values can be set to "any" to match any valid value.
  434. At driver init, all values are set to any.
  435. For example, to generate an error at rank 1 of dimm 2, for any channel,
  436. any bank, any page, any column:
  437. echo 2 >/sys/devices/system/edac/mc/mc0/inject_addrmatch/dimm
  438. echo 1 >/sys/devices/system/edac/mc/mc0/inject_addrmatch/rank
  439. To return to the default behaviour of matching any, you can do:
  440. echo any >/sys/devices/system/edac/mc/mc0/inject_addrmatch/dimm
  441. echo any >/sys/devices/system/edac/mc/mc0/inject_addrmatch/rank
  442. inject_eccmask:
  443. specifies what bits will have troubles,
  444. inject_section:
  445. specifies what ECC cache section will get the error:
  446. 3 for both
  447. 2 for the highest
  448. 1 for the lowest
  449. inject_type:
  450. specifies the type of error, being a combination of the following bits:
  451. bit 0 - repeat
  452. bit 1 - ecc
  453. bit 2 - parity
  454. inject_enable starts the error generation when something different
  455. than 0 is written.
  456. All inject vars can be read. root permission is needed for write.
  457. Datasheet states that the error will only be generated after a write on an
  458. address that matches inject_addrmatch. It seems, however, that reading will
  459. also produce an error.
  460. For example, the following code will generate an error for any write access
  461. at socket 0, on any DIMM/address on channel 2:
  462. echo 2 >/sys/devices/system/edac/mc/mc0/inject_addrmatch/channel
  463. echo 2 >/sys/devices/system/edac/mc/mc0/inject_type
  464. echo 64 >/sys/devices/system/edac/mc/mc0/inject_eccmask
  465. echo 3 >/sys/devices/system/edac/mc/mc0/inject_section
  466. echo 1 >/sys/devices/system/edac/mc/mc0/inject_enable
  467. dd if=/dev/mem of=/dev/null seek=16k bs=4k count=1 >& /dev/null
  468. For socket 1, it is needed to replace "mc0" by "mc1" at the above
  469. commands.
  470. The generated error message will look like:
  471. 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))
  472. 3) Nehalem specific Corrected Error memory counters
  473. Nehalem have some registers to count memory errors. The driver uses those
  474. registers to report Corrected Errors on devices with Registered Dimms.
  475. However, those counters don't work with Unregistered Dimms. As the chipset
  476. offers some counters that also work with UDIMMS (but with a worse level of
  477. granularity than the default ones), the driver exposes those registers for
  478. UDIMM memories.
  479. They can be read by looking at the contents of all_channel_counts/
  480. $ for i in /sys/devices/system/edac/mc/mc0/all_channel_counts/*; do echo $i; cat $i; done
  481. /sys/devices/system/edac/mc/mc0/all_channel_counts/udimm0
  482. 0
  483. /sys/devices/system/edac/mc/mc0/all_channel_counts/udimm1
  484. 0
  485. /sys/devices/system/edac/mc/mc0/all_channel_counts/udimm2
  486. 0
  487. What happens here is that errors on different csrows, but at the same
  488. dimm number will increment the same counter.
  489. So, in this memory mapping:
  490. csrow0: channel 0, dimm0
  491. csrow1: channel 0, dimm1
  492. csrow2: channel 1, dimm0
  493. csrow3: channel 2, dimm0
  494. The hardware will increment udimm0 for an error at the first dimm at either
  495. csrow0, csrow2 or csrow3;
  496. The hardware will increment udimm1 for an error at the second dimm at either
  497. csrow0, csrow2 or csrow3;
  498. The hardware will increment udimm2 for an error at the third dimm at either
  499. csrow0, csrow2 or csrow3;
  500. 4) Standard error counters
  501. The standard error counters are generated when an mcelog error is received
  502. by the driver. Since, with udimm, this is counted by software, it is
  503. possible that some errors could be lost. With rdimm's, they display the
  504. contents of the registers
  505. AMD64_EDAC REFERENCE DOCUMENTS USED
  506. -----------------------------------
  507. amd64_edac module is based on the following documents
  508. (available from http://support.amd.com/en-us/search/tech-docs):
  509. 1. Title: BIOS and Kernel Developer's Guide for AMD Athlon 64 and AMD
  510. Opteron Processors
  511. AMD publication #: 26094
  512. Revision: 3.26
  513. Link: http://support.amd.com/TechDocs/26094.PDF
  514. 2. Title: BIOS and Kernel Developer's Guide for AMD NPT Family 0Fh
  515. Processors
  516. AMD publication #: 32559
  517. Revision: 3.00
  518. Issue Date: May 2006
  519. Link: http://support.amd.com/TechDocs/32559.pdf
  520. 3. Title: BIOS and Kernel Developer's Guide (BKDG) For AMD Family 10h
  521. Processors
  522. AMD publication #: 31116
  523. Revision: 3.00
  524. Issue Date: September 07, 2007
  525. Link: http://support.amd.com/TechDocs/31116.pdf
  526. 4. Title: BIOS and Kernel Developer's Guide (BKDG) for AMD Family 15h
  527. Models 30h-3Fh Processors
  528. AMD publication #: 49125
  529. Revision: 3.06
  530. Issue Date: 2/12/2015 (latest release)
  531. Link: http://support.amd.com/TechDocs/49125_15h_Models_30h-3Fh_BKDG.pdf
  532. 5. Title: BIOS and Kernel Developer's Guide (BKDG) for AMD Family 15h
  533. Models 60h-6Fh Processors
  534. AMD publication #: 50742
  535. Revision: 3.01
  536. Issue Date: 7/23/2015 (latest release)
  537. Link: http://support.amd.com/TechDocs/50742_15h_Models_60h-6Fh_BKDG.pdf
  538. 6. Title: BIOS and Kernel Developer's Guide (BKDG) for AMD Family 16h
  539. Models 00h-0Fh Processors
  540. AMD publication #: 48751
  541. Revision: 3.03
  542. Issue Date: 2/23/2015 (latest release)
  543. Link: http://support.amd.com/TechDocs/48751_16h_bkdg.pdf
  544. CREDITS:
  545. ========
  546. Written by Doug Thompson <dougthompson@xmission.com>
  547. 7 Dec 2005
  548. 17 Jul 2007 Updated
  549. (c) Mauro Carvalho Chehab
  550. 05 Aug 2009 Nehalem interface
  551. EDAC authors/maintainers:
  552. Doug Thompson, Dave Jiang, Dave Peterson et al,
  553. Mauro Carvalho Chehab
  554. Borislav Petkov
  555. original author: Thayne Harbaugh