Support for DDR2 DRAM??
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
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
On Thu, 9 Sep 2004 17:50:06 -0400 (GMT-04:00), David Knierim wrote
Quoted 9 lines
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.
Signature · 2 lines
Jean Delvare http://khali.linux-fr.org/
On Fri, 10 Sep 2004 11:34:06 +0200 (CEST), Rudolf Marek wrote
Quoted 2 lines
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.
Signature · 10 lines
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
Hi Ruik,
Quoted 16 lines
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.
Quoted 4 lines
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.
Signature · 2 lines
Jean "Khali" Delvare http://khali.linux-fr.org/
Quoted 4 lines
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
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
Quoted 1 line
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.
Quoted 1 line
I really am impressed with the fast response.
Thank Jean :)
Regards
Rudolf
Quoted 2 lines
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
Rudolf Marek wrote on September 14:
Quoted 10 lines
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
Quoted 6 lines · Rudolf Marek
Hello,
I lost half hour when I treated 17 as
0x17...Patch is here:
Quoted 9 lines
http://www.assembler.cz/download/sensors_ddr2
Quoted 3 lines
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
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:
prog/sensors/chips.c +7 -0
@@ -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 )
Quoted 3 lines
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