aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2013-04-13 16:25:59 +0000
committerJean Delvare <jdelvare@suse.de>2013-04-13 16:25:59 +0000
commit32c172530d72eb3de4f4a5e81e7f600abf98f701 (patch)
tree2d163e300a71244971885b2fa3624206dfa628af
parentb05d645b017d22f7bf4372227e24573778e24a26 (diff)
downloadi2c-tools-32c172530d72eb3de4f4a5e81e7f600abf98f701.tar.gz
DDR3: Use the right nibble from byte 21 as the MSB of tRAS.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6129 7894878c-1315-0410-8ee3-d5d059ff63e0
-rw-r--r--CHANGES1
-rwxr-xr-xeeprom/decode-dimms2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 8b71319..3d9295b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -24,6 +24,7 @@ SVN HEAD
Fix decoding of SDR SPD revision
Prevent hang on reserved DDR3 module type
Decode more DDR3 module types
+ Fix DDR3 tRAS decoding
i2cdetect: Do a best effort detection if functionality is missing
Clarify the SMBus commands used for probing by default
i2c-dev.h: Minimize differences with kernel flavor
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
index d54d87a..ed8181b 100755
--- a/eeprom/decode-dimms
+++ b/eeprom/decode-dimms
@@ -1393,7 +1393,7 @@ sub decode_ddr3_sdram($)
$taa = int($bytes->[16] / $bytes->[12]);
$trcd = int($bytes->[18] / $bytes->[12]);
$trp = int($bytes->[20] / $bytes->[12]);
- $tras = int((($bytes->[21] >> 4) * 256 + $bytes->[22]) / $bytes->[12]);
+ $tras = int(((($bytes->[21] & 0x0f) << 8) + $bytes->[22]) / $bytes->[12]);
printl("tCL-tRCD-tRP-tRAS", join("-", $taa, $trcd, $trp, $tras));