|
| 1 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX |
| 2 | +Date: March 2025 |
| 3 | +KernelVersion: 6.15 |
| 4 | +Contact: linux-edac@vger.kernel.org |
| 5 | +Description: |
| 6 | + The sysfs EDAC bus devices /<dev-name>/mem_repairX subdirectory |
| 7 | + pertains to the memory media repair features control, such as |
| 8 | + PPR (Post Package Repair), memory sparing etc, where <dev-name> |
| 9 | + directory corresponds to a device registered with the EDAC |
| 10 | + device driver for the memory repair features. |
| 11 | + |
| 12 | + Post Package Repair is a maintenance operation requests the memory |
| 13 | + device to perform a repair operation on its media. It is a memory |
| 14 | + self-healing feature that fixes a failing memory location by |
| 15 | + replacing it with a spare row in a DRAM device. For example, a |
| 16 | + CXL memory device with DRAM components that support PPR features may |
| 17 | + implement PPR maintenance operations. DRAM components may support |
| 18 | + two types of PPR functions: hard PPR, for a permanent row repair, and |
| 19 | + soft PPR, for a temporary row repair. Soft PPR may be much faster |
| 20 | + than hard PPR, but the repair is lost with a power cycle. |
| 21 | + |
| 22 | + The sysfs attributes nodes for a repair feature are only |
| 23 | + present if the parent driver has implemented the corresponding |
| 24 | + attr callback function and provided the necessary operations |
| 25 | + to the EDAC device driver during registration. |
| 26 | + |
| 27 | + In some states of system configuration (e.g. before address |
| 28 | + decoders have been configured), memory devices (e.g. CXL) |
| 29 | + may not have an active mapping in the main host address |
| 30 | + physical address map. As such, the memory to repair must be |
| 31 | + identified by a device specific physical addressing scheme |
| 32 | + using a device physical address(DPA). The DPA and other control |
| 33 | + attributes to use will be presented in related error records. |
| 34 | + |
| 35 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX/repair_type |
| 36 | +Date: March 2025 |
| 37 | +KernelVersion: 6.15 |
| 38 | +Contact: linux-edac@vger.kernel.org |
| 39 | +Description: |
| 40 | + (RO) Memory repair type. For eg. post package repair, |
| 41 | + memory sparing etc. Valid values are: |
| 42 | + |
| 43 | + - ppr - Post package repair. |
| 44 | + |
| 45 | + - All other values are reserved. |
| 46 | + |
| 47 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX/persist_mode |
| 48 | +Date: March 2025 |
| 49 | +KernelVersion: 6.15 |
| 50 | +Contact: linux-edac@vger.kernel.org |
| 51 | +Description: |
| 52 | + (RW) Get/Set the current persist repair mode set for a |
| 53 | + repair function. Persist repair modes supported in the |
| 54 | + device, based on a memory repair function, either is temporary, |
| 55 | + which is lost with a power cycle or permanent. Valid values are: |
| 56 | + |
| 57 | + - 0 - Soft memory repair (temporary repair). |
| 58 | + |
| 59 | + - 1 - Hard memory repair (permanent repair). |
| 60 | + |
| 61 | + - All other values are reserved. |
| 62 | + |
| 63 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX/repair_safe_when_in_use |
| 64 | +Date: March 2025 |
| 65 | +KernelVersion: 6.15 |
| 66 | +Contact: linux-edac@vger.kernel.org |
| 67 | +Description: |
| 68 | + (RO) True if memory media is accessible and data is retained |
| 69 | + during the memory repair operation. |
| 70 | + The data may not be retained and memory requests may not be |
| 71 | + correctly processed during a repair operation. In such case |
| 72 | + repair operation can not be executed at runtime. The memory |
| 73 | + must be taken offline. |
| 74 | + |
| 75 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX/hpa |
| 76 | +Date: March 2025 |
| 77 | +KernelVersion: 6.15 |
| 78 | +Contact: linux-edac@vger.kernel.org |
| 79 | +Description: |
| 80 | + (RW) Host Physical Address (HPA) of the memory to repair. |
| 81 | + The HPA to use will be provided in related error records. |
| 82 | + |
| 83 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX/dpa |
| 84 | +Date: March 2025 |
| 85 | +KernelVersion: 6.15 |
| 86 | +Contact: linux-edac@vger.kernel.org |
| 87 | +Description: |
| 88 | + (RW) Device Physical Address (DPA) of the memory to repair. |
| 89 | + The specific DPA to use will be provided in related error |
| 90 | + records. |
| 91 | + |
| 92 | + In some states of system configuration (e.g. before address |
| 93 | + decoders have been configured), memory devices (e.g. CXL) |
| 94 | + may not have an active mapping in the main host address |
| 95 | + physical address map. As such, the memory to repair must be |
| 96 | + identified by a device specific physical addressing scheme |
| 97 | + using a DPA. The device physical address(DPA) to use will be |
| 98 | + presented in related error records. |
| 99 | + |
| 100 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX/nibble_mask |
| 101 | +Date: March 2025 |
| 102 | +KernelVersion: 6.15 |
| 103 | +Contact: linux-edac@vger.kernel.org |
| 104 | +Description: |
| 105 | + (RW) Read/Write Nibble mask of the memory to repair. |
| 106 | + Nibble mask identifies one or more nibbles in error on the |
| 107 | + memory bus that produced the error event. Nibble Mask bit 0 |
| 108 | + shall be set if nibble 0 on the memory bus produced the |
| 109 | + event, etc. For example, CXL PPR and sparing, a nibble mask |
| 110 | + bit set to 1 indicates the request to perform repair |
| 111 | + operation in the specific device. All nibble mask bits set |
| 112 | + to 1 indicates the request to perform the operation in all |
| 113 | + devices. Eg. for CXL memory repair, the specific value of |
| 114 | + nibble mask to use will be provided in related error records. |
| 115 | + For more details, See nibble mask field in CXL spec ver 3.1, |
| 116 | + section 8.2.9.7.1.2 Table 8-103 soft PPR and section |
| 117 | + 8.2.9.7.1.3 Table 8-104 hard PPR, section 8.2.9.7.1.4 |
| 118 | + Table 8-105 memory sparing. |
| 119 | + |
| 120 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX/min_hpa |
| 121 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX/max_hpa |
| 122 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX/min_dpa |
| 123 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX/max_dpa |
| 124 | +Date: March 2025 |
| 125 | +KernelVersion: 6.15 |
| 126 | +Contact: linux-edac@vger.kernel.org |
| 127 | +Description: |
| 128 | + (RW) The supported range of memory address that is to be |
| 129 | + repaired. The memory device may give the supported range of |
| 130 | + attributes to use and it will depend on the memory device |
| 131 | + and the portion of memory to repair. |
| 132 | + The userspace may receive the specific value of attributes |
| 133 | + to use for a repair operation from the memory device via |
| 134 | + related error records and trace events, for eg. CXL DRAM |
| 135 | + and CXL general media error records in CXL memory devices. |
| 136 | + |
| 137 | +What: /sys/bus/edac/devices/<dev-name>/mem_repairX/repair |
| 138 | +Date: March 2025 |
| 139 | +KernelVersion: 6.15 |
| 140 | +Contact: linux-edac@vger.kernel.org |
| 141 | +Description: |
| 142 | + (WO) Issue the memory repair operation for the specified |
| 143 | + memory repair attributes. The operation may fail if resources |
| 144 | + are insufficient based on the requirements of the memory |
| 145 | + device and repair function. |
| 146 | + |
| 147 | + - 1 - Issue the repair operation. |
| 148 | + |
| 149 | + - All other values are reserved. |
0 commit comments