- i2c-tools-r6151-space-before-MHz.diff: Print a space before "MHz" to improve readability. - i2c-tools-r6152-fix-DDR3-tRAS-decoding.diff: Fix DDR3 tRAS decoding. - i2c-tools-r6153-fix-DDR3-timings-rounding.diff: Fix DDR3 core timings rounding. - i2c-tools-r6154-round-down-PC3-numbers.diff: Round down PC3 numbers to comply with Jedec. - i2c-tools-r6157-vendors-JEP106AK.diff: Update vendor list based on Jedec document JEP106AK. OBS-URL: https://build.opensuse.org/package/show/Base:System/i2c-tools?expand=0&rev=26
26 lines
826 B
Diff
26 lines
826 B
Diff
Subject: decode-dimms: Fix DDR3 core timings rounding
|
|
Upstream: yes, r6153
|
|
|
|
DDR3: Round core timings up, not down.
|
|
---
|
|
eeprom/decode-dimms | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
--- a/eeprom/decode-dimms
|
|
+++ b/eeprom/decode-dimms
|
|
@@ -1214,10 +1214,10 @@ sub decode_ddr3_sdram($)
|
|
my $trp;
|
|
my $tras;
|
|
|
|
- $taa = int($bytes->[16] / $bytes->[12]);
|
|
- $trcd = int($bytes->[18] / $bytes->[12]);
|
|
- $trp = int($bytes->[20] / $bytes->[12]);
|
|
- $tras = int(((($bytes->[21] & 0x0f) << 8) + $bytes->[22]) / $bytes->[12]);
|
|
+ $taa = ceil($bytes->[16] / $bytes->[12]);
|
|
+ $trcd = ceil($bytes->[18] / $bytes->[12]);
|
|
+ $trp = ceil($bytes->[20] / $bytes->[12]);
|
|
+ $tras = ceil(((($bytes->[21] & 0x0f) << 8) + $bytes->[22]) / $bytes->[12]);
|
|
|
|
printl("tCL-tRCD-tRP-tRAS", join("-", $taa, $trcd, $trp, $tras));
|
|
|