﻿# Linux DDR5 ECS control: what the 6.15 sysfs interface actually exposes

Read the version-pinned EDAC ECS ABI, row-versus-codeword counters, threshold masking and driver callbacks before interpreting memory-health observations.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/linux-ddr5-ecs-615-counter-mode-threshold-driver-contract/
Language: en

Linux added a standardized EDAC control interface for memory reliability features in the development cycle for 6.15. For DDR5 Error Check Scrub, the useful question is which controls a specific device and driver actually expose, and what their counters mean. A kernel version alone cannot establish that every installed memory module supports the same operations.

## Date the interface from a pinned record

The [original EDAC pull request](https://lkml.indiana.edu/2503.3/02392.html) is dated March 25, 2025. It introduces infrastructure for registering memory scrub and related reliability features with EDAC, with CXL devices identified as a main use case. This is evidence of a software interface change, rather than a field trial demonstrating fewer failures.

The [version-pinned ECS ABI](https://raw.githubusercontent.com/torvalds/linux/v6.15/Documentation/ABI/testing/sysfs-edac-ecs) labels the interface for kernel 6.15. It places per-media-unit controls beneath an EDAC device directory. Critically, an attribute exists only when the parent driver implements its callback and registers the necessary operations. Absence of a file is therefore not an observation of zero errors.

## Counter modes change the counted object

The ABI distinguishes a mode that counts rows containing detected errors from a mode that counts erroneous codewords. These are different observation units. A change in mode breaks a naive comparison of raw counter increments, even if the physical memory workload is unchanged.

The log-entry type also distinguishes per-DRAM reporting from reporting per field-replaceable memory unit. Preserve both settings with a measurement. The [host-ECC guide](/journal/host-ram-ecc-edac/) explains why an EDAC identifier needs platform mapping before being equated with a chassis slot or confused with a GPU-memory event.

## Threshold and reset do not repair the same thing

The ECS threshold is expressed per gigabit of memory cells and masks counts below the selected threshold. A quieter reported series after a threshold change need not indicate fewer physical errors. It may reflect changed visibility. The documented threshold values are a control contract, not universal acceptable-error limits for every server.

The reset attribute clears the counter. That bookkeeping action is not evidence that a faulty cell was repaired. Preserve the observation interval and any reset event before calculating rates or drawing a health trend. An apparent drop to a baseline loses meaning if the counter's lifecycle has changed.

## Scrubbing, repair and reporting remain distinct

The [pinned scrub documentation](https://raw.githubusercontent.com/torvalds/linux/v6.15/Documentation/edac/scrub.rst) describes ECS as an internal DRAM read, correction and writeback mechanism. It also discusses background and on-demand scrubbers with different control paths. Those mechanisms should not be reduced to one interchangeable scrub switch.

The [current features overview](https://www.kernel.org/doc/html/next/edac/features.html) describes a broader stack connecting platform firmware, drivers, EDAC and userspace control. Its repair and dynamic-controller descriptions should not be assumed to document every attribute in the earlier release. Internal correction is likewise not proof of end-to-end protection for every system-memory transfer or processing stage.

## Build an interpretable observation record

Record the exact kernel, firmware, device identity, driver, available attributes and their initial meanings. Align EDAC observations with platform-management logs using known timestamps. Establish whether the intended experiment measures reporting, background scanning or an actual repair mechanism before comparing results.

If a controlled operation changes configuration, keep workload, duration and thermal conditions comparable and retain the setting transition. The [RAM-versus-VRAM guide](/journal/ram-vs-vram/) supplies the broader resource distinction. The interface makes reliability management inspectable; the actual capabilities and operational outcome remain properties of the specific hardware and registered implementation.
