diff options
author | Jean Delvare <jdelvare@suse.de> | 2017-12-05 07:45:17 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2017-12-05 07:45:17 +0100 |
commit | eea0b508aaefd687ed559992cece05608418c605 (patch) | |
tree | 8fe2ed86f5a1ed50f5edde34b1a89486d06dbebf | |
parent | 52cd6c60d6db0e39f00a67f5931c06cccb63e178 (diff) | |
download | i2c-tools-eea0b508aaefd687ed559992cece05608418c605.tar.gz |
decode-dimms: Documentation update for DDR4
The EEPROMs used to store SPD data on DDR4 SDRAM modules have their
own kernel driver: ee1004.
-rw-r--r-- | CHANGES | 1 | ||||
-rwxr-xr-x | eeprom/decode-dimms | 10 | ||||
-rw-r--r-- | eeprom/decode-dimms.1 | 7 |
3 files changed, 12 insertions, 6 deletions
@@ -7,6 +7,7 @@ master Decode size and timings of DDR4 Decode misc parameters of DDR4 Decode physical characteristics of DDR4 + Documentation update for DDR4 4.0 (2017-10-30) tools: Fix build with recent compilers (gcc 4.6+) diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index 6173192..c6556e9 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -5,7 +5,7 @@ # Copyright 1998, 1999 Philip Edelbrock <phil@netroedge.com> # modified by Christian Zuckschwerdt <zany@triq.net> # modified by Burkart Lingner <burkart@bollchen.de> -# Copyright (C) 2005-2013 Jean Delvare <jdelvare@suse.de> +# Copyright (C) 2005-2017 Jean Delvare <jdelvare@suse.de> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -2410,7 +2410,9 @@ sub get_dimm_list my (@dirs, $dir, $opened, $file, @files); if ($use_sysfs) { - @dirs = ('/sys/bus/i2c/drivers/eeprom', '/sys/bus/i2c/drivers/at24'); + @dirs = ('/sys/bus/i2c/drivers/eeprom', + '/sys/bus/i2c/drivers/at24', + '/sys/bus/i2c/drivers/ee1004'); # DDR4 } else { @dirs = ('/proc/sys/dev/sensors'); } @@ -2428,7 +2430,9 @@ sub get_dimm_list # or spd (driver at24) my $attr = sysfs_device_attribute("$dir/$file", "name"); next unless defined $attr && - ($attr eq "eeprom" || $attr eq "spd"); + ($attr eq "eeprom" || + $attr eq "spd" || + $attr eq "ee1004"); # DDR4 } else { next unless $file =~ /^eeprom-/; } diff --git a/eeprom/decode-dimms.1 b/eeprom/decode-dimms.1 index e8c6eea..710d6bf 100644 --- a/eeprom/decode-dimms.1 +++ b/eeprom/decode-dimms.1 @@ -1,6 +1,7 @@ .\" .\" decode-dimms.1 - manpage for the i2c-tools/decode-dimms utility .\" Copyright (C) 2013 Jaromir Capik +.\" Copyright (C) 2017 Jean Delvare .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by @@ -16,7 +17,7 @@ .\" with this program; if not, write to the Free Software Foundation, Inc., .\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. .\" -.TH decode-dimms 1 "Oct 2013" "i2c-tools" "User Commands" +.TH decode-dimms 1 "Nov 2017" "i2c-tools" "User Commands" .SH NAME decode-dimms \- decode the information found in memory module SPD EEPROMs .SH SYNOPSIS @@ -31,8 +32,8 @@ The purpose of the .B decode-dimms tool is to decode the information found in memory module SPD EEPROMs. The SPD data is read either from the running system or dump files. -In the former case, the tool requires either the eeprom kernel module -or the at24 kernel module to be loaded. +In the former case, the tool requires a kernel module to be loaded: +eeprom, at24 or ee1004 (for DDR4 SDRAM.) .SH PARAMETERS .TP .B \-f, --format |