Add DIMM 2x refresh event and failure syndrome
v3 cover Add DIMM 2x refresh event and failure syndrome
Adds event_dimm_2x_refresh sysfs to report doubling of DIMM refresh rate on high temperature condition and event_dimm[0-15]_syndrome sysfs to report the DDR failure syndrome to BMC when DIMM training failed.
Discussion for v2:
https://lore.kernel.org/lkml/[email protected]/
v3:
+ Corrected kernel version to 6.4 [Greg]
v2:
+ Change "to initialized" to "to initialize" [Paul]
+ Corrected kernel version to 6.3 [Greg,Paul]
+ Corrected variables type to 'unsigned int" [Paul]
Quan Nguyen (2):
misc: smpro-errmon: Add DIMM 2x Refresh rate event
misc: smpro-errmon: Add dimm training failure syndrome
.../sysfs-bus-platform-devices-ampere-smpro | 19 ++++- drivers/misc/smpro-errmon.c | 82 +++++++++++++++++++ 2 files changed, 98 insertions(+), 3 deletions(-)
Signature · 1 line
2.35.1
PATCH v3 1/2 misc: smpro-errmon: Add DIMM 2x Refresh rate event
In high temperature condition, JEDEC spec requires memory controller to double the refresh rate. This commit adds event_dimm_2x_refresh sysfs to report that events for all memory channels.
---
v3:
+ Corrected kernel version to 6.4 [Greg]
v2:
+ Corrected kernel version to 6.3 [Greg,Paul]
--- .../ABI/testing/sysfs-bus-platform-devices-ampere-smpro | 9 ++++++--- drivers/misc/smpro-errmon.c | 5 +++++ 2 files changed, 11 insertions(+), 3 deletions(-)
Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro +6 -3
@@ -234,8 +234,8 @@ Description: For details, see section `5.10 RAS Internal Error Register Definitions, Altra Family Soc BMC Interface Specification`. -What: /sys/bus/platform/devices/smpro-errmon.*/event_[vrd_warn_fault|vrd_hot|dimm_hot] -KernelVersion: 6.1 +What: /sys/bus/platform/devices/smpro-errmon.*/event_[vrd_warn_fault|vrd_hot|dimm_hot|dimm_2x_refresh] +KernelVersion: 6.1 (event_[vrd_warn_fault|vrd_hot|dimm_hot]), 6.4 (event_dimm_2x_refresh) Contact: Quan Nguyen <[email protected]> Description: (RO) Contains the detail information in case of VRD/DIMM warning/hot events
@@ -258,8 +258,11 @@ Description: +---------------+---------------------------------------------------------------+---------------------+ | DIMM HOT | /sys/bus/platform/devices/smpro-errmon.*/event_dimm_hot | DIMM Hot | +---------------+---------------------------------------------------------------+---------------------+ + | DIMM 2X | /sys/bus/platform/devices/smpro-errmon.*/event_dimm_2x_refresh| DIMM 2x refresh rate| + | REFRESH RATE | | event in high temp | + +---------------+---------------------------------------------------------------+---------------------+ - For more details, see section `5.7 GPI Status Registers, + For more details, see section `5.7 GPI Status Registers and 5.9 Memory Error Register Definitions, Altra Family Soc BMC Interface Specification`. What: /sys/bus/platform/devices/smpro-misc.*/boot_progress
drivers/misc/smpro-errmon.c +5 -0
@@ -67,6 +67,7 @@#define VRD_WARN_FAULT_EVENT_DATA 0x78#define VRD_HOT_EVENT_DATA 0x79#define DIMM_HOT_EVENT_DATA 0x7A +#define DIMM_2X_REFRESH_EVENT_DATA 0x96#define MAX_READ_BLOCK_LENGTH 48
@@ -190,6 +191,7 @@ enum EVENT_TYPES {VRD_WARN_FAULT_EVENT ,VRD_HOT_EVENT ,DIMM_HOT_EVENT , +DIMM_2X_REFRESH_EVENT , NUM_EVENTS_TYPE, };
@@ -198,6 +200,7 @@ static u8 smpro_event_table[NUM_EVENTS_TYPE] = {VRD_WARN_FAULT_EVENT_DATA ,VRD_HOT_EVENT_DATA ,DIMM_HOT_EVENT_DATA , + DIMM_2X_REFRESH_EVENT_DATA, }; static ssize_t smpro_event_data_read(struct device *dev,
@@ -463,6 +466,7 @@ static DEVICE_ATTR_RO(warn_pmpro);EVENT_RO (vrd_warn_fault,VRD_WARN_FAULT_EVENT );EVENT_RO (vrd_hot,VRD_HOT_EVENT );EVENT_RO (dimm_hot,DIMM_HOT_EVENT ); +EVENT_RO (dimm_2x_refresh,DIMM_2X_REFRESH_EVENT );static struct attribute *smpro_errmon_attrs[] = { &dev_attr_overflow_core_ce.attr,
@@ -488,6 +492,7 @@ static struct attribute *smpro_errmon_attrs[] = { &dev_attr_event_vrd_warn_fault.attr, &dev_attr_event_vrd_hot.attr, &dev_attr_event_dimm_hot.attr, + &dev_attr_event_dimm_2x_refresh.attr, NULL };
Signature · 1 line
2.35.1
PATCH v3 2/2 misc: smpro-errmon: Add dimm training failure syndrome
In reply to Quan NguyenAdds event_dimm[0-15]_syndrome sysfs to report the failure syndrome to BMC when DIMM training failed.
---
v3:
+ Corrected kernel version to 6.4 [Greg]
v2:
+ Change "to initialized" to "to initialize" [Paul]
+ Corrected kernel version to 6.3 [Greg,Paul]
+ Corrected variables type to 'unsigned int" [Paul]
--- .../sysfs-bus-platform-devices-ampere-smpro | 10 +++ drivers/misc/smpro-errmon.c | 77 +++++++++++++++++++ 2 files changed, 87 insertions(+)
Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro +10 -0
@@ -265,6 +265,16 @@ Description: For more details, see section `5.7 GPI Status Registers and 5.9 Memory Error Register Definitions, Altra Family Soc BMC Interface Specification`. +What: /sys/bus/platform/devices/smpro-errmon.*/event_dimm[0-15]_syndrome +KernelVersion: 6.4 +Contact: Quan Nguyen <[email protected]> +Description: + (RO) The sysfs returns the 2-byte DIMM failure syndrome data for slot + 0-15 if it failed to initialize. + + For more details, see section `5.11 Boot Stage Register Definitions, + Altra Family Soc BMC Interface Specification`. + What: /sys/bus/platform/devices/smpro-misc.*/boot_progress KernelVersion: 6.1 Contact: Quan Nguyen <[email protected]>
drivers/misc/smpro-errmon.c +77 -0
95 lines not on this page · raw message
Signature · 1 line
2.35.1