* Support for DDR2 DRAM??
@ 2005-05-19 6:25 David Knierim
2005-05-19 6:25 ` Jean Delvare
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: David Knierim @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
Hi,
I'm running the latest CVS version of sensors and the sensors command does not appear to support the DDR2 DRAM in my server. When I run sensors on this box, I get output like this:
eeprom-i2c-0-53
Adapter: SMBus I801 adapter at 0540
Unknown EEPROM type (8)
Any advice on getting the sensors command to know about DDR2 DRAM??
Thanks,
David
^ permalink raw reply [flat|nested] 11+ messages in thread
* Support for DDR2 DRAM??
2005-05-19 6:25 Support for DDR2 DRAM?? David Knierim
` (3 preceding siblings ...)
2005-05-19 6:25 ` Rudolf Marek
@ 2005-05-19 6:25 ` Rudolf Marek
2005-05-19 6:25 ` Jean Delvare
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Rudolf Marek @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
> Please provide a dump of the EEPROM (using "i2cdump 0 0x53"). It it actually
> is an DDR2 DRAM EEPROM we'll see how we can get it supported. With some luck
> it might use the same standards as DDR and we may just have to add the new
> type value to get it supported.
Here is DDR2 EEPROM layout, (and all EDO, SDRAM, DDR layouts included
also)
http://download.micron.com/pdf/technotes/TN_04_42.pdf
Ruik
^ permalink raw reply [flat|nested] 11+ messages in thread
* Support for DDR2 DRAM??
2005-05-19 6:25 Support for DDR2 DRAM?? David Knierim
` (5 preceding siblings ...)
2005-05-19 6:25 ` Jean Delvare
@ 2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Rudolf Marek
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
On Thu, 9 Sep 2004 17:50:06 -0400 (GMT-04:00), David Knierim wrote
> I'm running the latest CVS version of sensors and the sensors
> command does not appear to support the DDR2 DRAM in my server.
> When I run sensors on this box, I get output like this:
>
> eeprom-i2c-0-53
> Adapter: SMBus I801 adapter at 0540
> Unknown EEPROM type (8)
>
> Any advice on getting the sensors command to know about DDR2 DRAM??
Well, this may not be a memory eeprom at all. New systems tend to have various
types of EEPROMs exposed on the SMBus, for holding manufacturer-specific data
(like in Sony Vaio laptops) or ethernet adapters MAC addresses.
Please provide a dump of the EEPROM (using "i2cdump 0 0x53"). It it actually
is an DDR2 DRAM EEPROM we'll see how we can get it supported. With some luck
it might use the same standards as DDR and we may just have to add the new
type value to get it supported.
--
Jean Delvare
http://khali.linux-fr.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Support for DDR2 DRAM??
2005-05-19 6:25 Support for DDR2 DRAM?? David Knierim
` (4 preceding siblings ...)
2005-05-19 6:25 ` Rudolf Marek
@ 2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
On Fri, 10 Sep 2004 11:34:06 +0200 (CEST), Rudolf Marek wrote
> Here is DDR2 EEPROM layout, (and all EDO, SDRAM, DDR layouts included
> also)
OK, so it looks similar to the other SDRAM types.
David, care to test the trivial patch attached?
Thanks.
--
Jean Delvare
http://khali.linux-fr.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sensors-ddr2-sdram.diff
Type: application/octet-stream
Size: 395 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040910/7a0e9cd9/sensors-ddr2-sdram.obj
^ permalink raw reply [flat|nested] 11+ messages in thread
* Support for DDR2 DRAM??
2005-05-19 6:25 Support for DDR2 DRAM?? David Knierim
2005-05-19 6:25 ` Jean Delvare
@ 2005-05-19 6:25 ` David Knierim
2005-05-19 6:25 ` Rudolf Marek
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: David Knierim @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
Well, it's somewhat better now, but still not quite right:
# sensors eeprom-i2c-0-53
eeprom-i2c-0-53
Adapter: SMBus I801 adapter at 0540
Memory type: DDR2 SDRAM DIMM
Memory size (MB): invalid (14 11 96 4)
The memory sticks are 1GB each.
Here's the output of i2cdump you initially requested:
# ./prog/dump/i2cdump 0 0x53
No size specified (using byte-data access)
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0, address 0x53, mode byte
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 80 08 08 0e 0b 60 48 00 05 50 60 02 82 04 04 00 ?????`H.?P`????.
10: 0c 04 18 00 01 05 01 50 60 00 00 3c 1e 3c 28 01 ???.???P`..<?<(?
20: 35 47 15 27 3c 28 1e 00 00 37 69 80 23 2d 0f 00 5G?'<(?..7i?#-?.
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 11 fa ..............??
40: 2c ff ff ff ff ff ff ff 01 31 38 48 54 46 31 32 ,.......?18HTF12
50: 38 37 32 59 2d 34 30 45 41 32 20 02 00 04 11 c1 872Y-40EA2 ?.???
60: 18 83 2b 00 00 00 00 00 00 00 00 00 00 00 00 00 ??+.............
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0f ...............?
I really am impressed with the fast response. Thank you.
David
^ permalink raw reply [flat|nested] 11+ messages in thread
* Support for DDR2 DRAM??
2005-05-19 6:25 Support for DDR2 DRAM?? David Knierim
` (2 preceding siblings ...)
2005-05-19 6:25 ` Rudolf Marek
@ 2005-05-19 6:25 ` Rudolf Marek
2005-05-19 6:25 ` Rudolf Marek
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Rudolf Marek @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
hello,
Byte 5 changed in DDR2 spec
DDR: http://www.jedec.org/download/search/4_01_02_04R13.PDF
Byte 5: Number of DIMM Banks
This field describes the number of physical banks on the SDRAM module. The
number of logical banks for the SDRAM device is defined in Byte 17.
DDR2: http://www.jedec.org/download/search/N04-NM2.pdf
Byte 5: Module Attributes - Number of Ranks, Package and Height
This field describes the number of ranks (Rank: any DRAMs connected to
same physical CS) and package on the SDRAM module, and module height. The
number of logical banks for the SDRAM device is defined in Byte 17.
Rank has 2 lowest bits,
Bit[ 7, 6, 5]
000 = less than 25.4 mm
001 = 25.4 mm
010 = greater than 25.4 mm and less than 30 mm
011 = 30.0 mm
100 = 30.5 mm
101 = greater than 30.5 mm
others :reserved
Bit4:
DRAM Packgage
1 = stack
0 = planar
Bit3:
Card on Card
1 = yes
0 = no
Bit1:
# of Ranks
it [2, 1, 0] :
000 = 1 rank
001 = 2 ranks
> Memory size (MB): invalid (14 11 96 4)
So 96 is bad bad...
And in byte 3, and 4 are changed also. I'm sorry I cant provide the patch
right now.
> I really am impressed with the fast response.
Thank Jean :)
Regards
Rudolf
^ permalink raw reply [flat|nested] 11+ messages in thread
* Support for DDR2 DRAM??
2005-05-19 6:25 Support for DDR2 DRAM?? David Knierim
@ 2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` David Knierim
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
Hi Ruik,
> Byte 5 changed in DDR2 spec
>
> DDR: http://www.jedec.org/download/search/4_01_02_04R13.PDF
> Byte 5: Number of DIMM Banks
> This field describes the number of physical banks on the SDRAM module.
> The number of logical banks for the SDRAM device is defined in Byte
> 17.
>
> DDR2: http://www.jedec.org/download/search/N04-NM2.pdf
>
> Byte 5: Module Attributes - Number of Ranks, Package and Height
> This field describes the number of ranks (Rank: any DRAMs connected to
> same physical CS) and package on the SDRAM module, and module height.
> The number of logical banks for the SDRAM device is defined in Byte
> 17.
>
> Rank has 2 lowest bits,
> (...)
> And in byte 3, and 4 are changed also. I'm sorry I cant provide the
> patch right now.
Looks like you did most of the detective work already. Care to propose a
patch (which would include my preliminary one)?
Thanks.
--
Jean "Khali" Delvare
http://khali.linux-fr.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Support for DDR2 DRAM??
2005-05-19 6:25 Support for DDR2 DRAM?? David Knierim
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` David Knierim
@ 2005-05-19 6:25 ` Rudolf Marek
2005-05-19 6:25 ` Rudolf Marek
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Rudolf Marek @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
> Looks like you did most of the detective work already. Care to propose a
> patch (which would include my preliminary one)?
Unfortunately it is not sufficient, now I must figure out how to calculate
the DRAM size. I will have time for this next week. This week I will go
hiking to the mountains :)
Sorry.
Regards
Rudolf
^ permalink raw reply [flat|nested] 11+ messages in thread
* Support for DDR2 DRAM??
2005-05-19 6:25 Support for DDR2 DRAM?? David Knierim
` (8 preceding siblings ...)
2005-05-19 6:25 ` David Knierim
@ 2005-05-19 6:25 ` David Knierim
9 siblings, 0 replies; 11+ messages in thread
From: David Knierim @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
Rudolf Marek wrote on September 14:
> I will have time for this next week. This week I will go
> hiking to the mountains :)
>
> Sorry.
>
> Regards
>
> Rudolf
>
>
Rudolf,
Any chance you might have time to look at this?? I'd be happy to
test any patches...
David
^ permalink raw reply [flat|nested] 11+ messages in thread
* Support for DDR2 DRAM??
2005-05-19 6:25 Support for DDR2 DRAM?? David Knierim
` (6 preceding siblings ...)
2005-05-19 6:25 ` Jean Delvare
@ 2005-05-19 6:25 ` Rudolf Marek
2005-05-19 6:25 ` David Knierim
2005-05-19 6:25 ` David Knierim
9 siblings, 0 replies; 11+ messages in thread
From: Rudolf Marek @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
Hello,
I lost half hour when I treated 17 as 0x17 ...
Patch is here:
http://www.assembler.cz/download/sensors_ddr2
Sample SPD DDR2 Rom and specs:
http://www.infineon.com/cgi/ecrm.dll/ecrm/scripts/public_download.jsp?oid‰099&parent_oidQ869
Inline patch is here:
diff -Naur lm_sensors-2.8.8/prog/sensors/chips.c lm_sensors-2.8.8new/prog/sensors/chips.c
--- lm_sensors-2.8.8/prog/sensors/chips.c 2004-09-19 19:09:59.000000000 +0200
+++ lm_sensors-2.8.8new/prog/sensors/chips.c 2004-11-01 22:25:31.000000000 +0100
@@ -2860,6 +2860,10 @@
print_label(label, 24);
printf("DDR SDRAM DIMM\n");
break;
+ case 8:
+ print_label(label, 24);
+ printf("DDR2 SDRAM DIMM\n");
+ break;
case 17:
print_label(label, 24);
printf("RAMBUS RIMM\n");
@@ -2915,6 +2919,9 @@
} else if (type = 1) { /* DRDRAM */
i = (((int) b) & 0x0f) + (((int) b) >> 4) + (((int) c) & 0x07) - 13;
k = 1;
+ } else if (type = 8) { /* DDR2 */
+ i = (((int) a) & 0x0f) + (((int) b) & 0x0f) - 17;
+ k = ((((int) c) & 0x7) + 1) * ((int) d);
} else { /* SDRAM */
i = (((int) a) & 0x0f) + (((int) b) & 0x0f) - 17;
if (((int) c) <= 8 && ((int) d) <= 8)
> Rudolf,
> Any chance you might have time to look at this?? I'd be happy to
> test any patches...
Now you can. Thank you
regards
Rudolf
^ permalink raw reply [flat|nested] 11+ messages in thread
* Support for DDR2 DRAM??
2005-05-19 6:25 Support for DDR2 DRAM?? David Knierim
` (7 preceding siblings ...)
2005-05-19 6:25 ` Rudolf Marek
@ 2005-05-19 6:25 ` David Knierim
2005-05-19 6:25 ` David Knierim
9 siblings, 0 replies; 11+ messages in thread
From: David Knierim @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
Rudolf Marek wrote:
> Hello,
>
> I lost half hour when I treated 17 as 0x17 ...
>
> Patch is here:
>
> http://www.assembler.cz/download/sensors_ddr2
>
>>Rudolf,
>> Any chance you might have time to look at this?? I'd be happy to
>>test any patches...
>
>
> Now you can. Thank you
>
Wow! That was fast!
It works fine on my board. Thanks so much!
David
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-05-19 6:25 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19 6:25 Support for DDR2 DRAM?? David Knierim
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` David Knierim
2005-05-19 6:25 ` Rudolf Marek
2005-05-19 6:25 ` Rudolf Marek
2005-05-19 6:25 ` Rudolf Marek
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Rudolf Marek
2005-05-19 6:25 ` David Knierim
2005-05-19 6:25 ` David Knierim
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.