diff options
author | Jean Delvare <jdelvare@suse.de> | 2013-04-15 14:26:02 +0000 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2013-04-15 14:26:02 +0000 |
commit | 7add855d52a10f0ab2636dceb9a4ae92abf3fc5f (patch) | |
tree | 9a74d0497b46e8087831ac5fd66e1a0804d74906 | |
parent | eb2db47736a5209826b84bf1359ffdf35ba650fb (diff) | |
download | i2c-tools-git-7add855d52a10f0ab2636dceb9a4ae92abf3fc5f.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/branches/i2c-tools-3.1@6152 7894878c-1315-0410-8ee3-d5d059ff63e0
-rw-r--r-- | CHANGES | 1 | ||||
-rwxr-xr-x | eeprom/decode-dimms | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -10,6 +10,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: Clarify the SMBus commands used for probing by default i2c-dev.h: Minimize differences with kernel flavor Move SMBus helper functions to include/i2c/smbus.h diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index 69d2066..78da5e8 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -1228,7 +1228,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)); |