Centrino (855PM, ICH4-M): 82801DBM w/o LPC Bridge/SMBus?
Hi,
I've been trying to get the readings off a Centrino notebook (a Toshiba Satelite M30).
The sensor relevant pci entries (24c3/24c0) are missing:
# lspci -n 00:00.0 Class 0600: 8086:3340 (rev 21) 00:01.0 Class 0604: 8086:3341 (rev 21) 00:1d.0 Class 0c03: 8086:24c2 (rev 03) 00:1d.1 Class 0c03: 8086:24c4 (rev 03) 00:1d.7 Class 0c03: 8086:24cd (rev 03) 00:1e.0 Class 0604: 8086:2448 (rev 83) 00:1f.0 Class 0601: 8086:24cc (rev 03) 00:1f.1 Class 0101: 8086:24ca (rev 03) 00:1f.5 Class 0401: 8086:24c5 (rev 03) 00:1f.6 Class 0703: 8086:24c6 (rev 03) 01:00.0 Class 0300: 10de:0328 (rev a1) 02:07.0 Class 0c00: 104c:8023 02:08.0 Class 0200: 8086:103d (rev 83) 02:0a.0 Class 0280: 8086:1043 (rev 04) 02:0b.0 Class 0607: 1179:0617 (rev 33) 02:0d.0 Class 0880: 1179:0805 (rev 05) # lspci 00:00.0 Host bridge: Intel Corp. 82855PM Processor to I/O Controller (rev 21) 00:01.0 PCI bridge: Intel Corp. 82855PM Processor to AGP Controller (rev 21) 00:1d.0 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #1 (rev 03) 00:1d.1 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #2 (rev 03) 00:1d.7 USB Controller: Intel Corp. 82801DB (ICH4) USB2 EHCI Controller (rev 03) 00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 83) 00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 03) 00:1f.1 IDE interface: Intel Corp. 82801DBM (ICH4) Ultra ATA Storage Controller (rev 03) 00:1f.5 Multimedia audio controller: Intel Corp. 82801DB (ICH4) AC'97 Audio Controller (rev 03) 00:1f.6 Modem: Intel Corp. 82801DB (ICH4) AC'97 Modem Controller (rev 03) 01:00.0 VGA compatible controller: nVidia Corporation: Unknown device 0328 (rev a1) 02:07.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link) 02:08.0 Ethernet controller: Intel Corp. 82801BD PRO/100 VE (MOB) Ethernet Controller (rev 83) 02:0a.0 Network controller: Intel Corp. PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04) 02:0b.0 CardBus bridge: Toshiba America Info Systems ToPIC95 PCI to Cardbus Bridge with ZV Support (rev 33) 02:0d.0 System peripheral: Toshiba America Info Systems SD TypA Controller (rev 05)
I searched through the tickets and found the following similar entry:
http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticket04
I updated my BIOS and checked the settings, which aren't more than the very basic ones. I also tried to find any reports on people successfully using Centrino and lm_sensors.
Could it be that these devices aren't only not activated by the BIOS, but are perhaps missing/not connected? Is there any tool I can use to scan all PCI devices, even the deactivated ones?
Signature · 8 lines
Axel.Thimm at ATrpms.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040412/559f1b0a/attachment.bin
Quoted 1 line
There is an adm1032 chip on it, as well as RAM eeproms.
Oh yeah, now I remember. When I asked about which systems had ADM1032 chips on them, Sean Gilmour (from Analog Devices) told us that mainly notebooks (and the X-Box) used them. I just wish I had one on mine!
Quoted 3 lines
I have also found some bugs in the
p4b_smbus(the bits were valid for ICH2, not ICH4, as a sideeffect they enable USB UHCI #3 on ICH4).
Nice catching.
Quoted 4 lines
I will prepare a diff to cvs and send it to you. Thanks! (BTW cvs diff -N ... does not work with new, but not cvs added files and cvs add is not allowed with anonymous read-only access. How does one prepare a diff -N type patch?)
Never had to do that before. I guess that I would just duplicate the working repository and treat the whole thing as static, off-line directories. One of them being the snapshot of the CVS repository, the other being your working directory.
BTW, what file do you want to create?
Another possibility is that we could grant you write access to the repository. You look like a responsible person so I'd say it is safe ;)
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 2 lines
I renamed
p4b_smbus.cto82801_smbus.c, as the problems is not isolated to a specific motherboard.
You shouldn't do that. I agree that the name is not perfect and somewhat error-prone, but renaming files under CVS means losing their history (well it's still there but it's more difficult to access it, since you have to know the old name as well, and still the history is split in two parts). I don't think it's worth renaming the file anyway, documenting well enough should be OK.
Personally I don't really care, to say the truth (just mention the old name in the new commit message), but I know for sure that MDS will not like it at all ;)
Quoted 2 lines
The README.p4b mentioned that recent kernels (2.4.23 upwards) have the i801 SMBus detection and activation patched in.
Oh, nice. I though that only 2.5/2.6 kernels could do that.
Quoted 3 lines
I just checked and the patch is less than a dozen lines, and very easily extendable to Centrino laptops with hidden SMBus. But it is in the
quirks.c, which means that it needs a kernel patching.
Well, that can be done. It's just a bit more complex than usual because it depends on the kernel version (I guess that we don't do anything if version < 2.4.23). Just provide the needed patch and I'll try to teach mkpatch how to do the same.
You could also send that patch to Marcelo for inclusion into the 2.4 tree if this is trivial.
And you could also send a similar patch to whoever is in charge of that part in Linux 2.6 it it applies there too.
Quoted 2 lines
Any chance that detection/enabling could enter
i2c-i801.c? Should I give it a try and mergep4b_smbus.c/quicks.cbits intoi2c-i801.c?
I don't know why it wasn't done that way in the first place. Maybe it was decided that "regular" user should be allowed to keep the driver as simple as it was, with no additional stuff? Or maybe it is because p4b_smbus needs CONFIG_HOTPLUG? In this case I guess that we can enable that part if and only if CONFIG_HOTPLUG is set, it shouldn't affect the rest of the driver.
Actually, the fact that this part has moved to quirks.c means that the driver doesn't have to care anymore, so it's just fine that it was put in a different module in the first place. Any idea about what would happen if the code was both in quirks.c and in i2c-i801.c? Would the i2c-i801 part just be left unused, or should we fear more conflicts?
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Hi,
Quoted 4 lines · Axel Thimm
I've been trying to get the readings off a Centrino notebook (a Toshiba Satelite M30).
The sensor relevant pci entries (24c3/24c0) are missing:
Quoted 8 lines
# lspci -n [...] 00:1f.0 Class 0601: 8086:24cc (rev 03) [...] # lspci [...] 00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 03) [...]
OK, so I was blind. The LPC I/C has moved from 24c0 (801DB) to 24cc (82801DBM). I checked the specs at Intel and found that my SMBus is disabled wrt to the PCI configuration space, but the I/O space is accessible, e.g. the SMBus is there but hidden ...
What is the best way to proceed? I found a module that deals with a similar problem for the DB on ASUS P4B. Should this be dealt with the same way? Then I could add 82801DBM support into i2c-i801.c and sensors-detect.
Signature · 8 lines
Axel.Thimm at ATrpms.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040412/341d0138/attachment.bin
Hi Axel,
Quoted 4 lines
I've been trying to get the readings off a Centrino notebook (a Toshiba Satelite M30).
The sensor relevant pci entries (24c3/24c0) are missing:
You should take a look at lm_sensors2/prog/hotplug/p4b_smbus.c and associated Makefile and README.
Beware however that in some (most?) cases, the SMBus is actually disabled/hidden simply because there's nothing on it.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 5 lines
You should take a look at
lm_sensors2/prog/hotplug/p4b_smbus.cand associatedMakefileand README.Beware however that in some (most?) cases, the SMBus is actually disabled/hidden simply because there's nothing on it.
Hm sorry, it looks like you *already* tried this and it didn't work.
It might be just because the LPC controller's id differs. The SMBus ID should be the same. Just try replacing:
#define ICH4 0x24c0
#define ICH4_SMBUS 0x24c3
with
#define ICH4 0x24cc
#define ICH4_SMBUS 0x24c3
Maybe it'll work, who knows.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 1 line
OK, so I was blind.
OK, let's form a club ;) Looks like we both like replying to ourselves today.
Quoted 9 lines
The LPC I/C has moved from 24c0 (801DB) to 24cc (82801DBM). I checked the specs at Intel and found that my SMBus is disabled wrt to the PCI configuration space, but the I/O space is accessible, e.g. the SMBus is there but hidden ...
What is the best way to proceed? I found a module that deals with a similar problem for the DB on ASUS P4B. Should this be dealt with the same way? Then I could add 82801DBM support into
i2c-i801.cand sensors-detect.
Step 1 is to check that the p4b_smbus trick works for you. Just change the relevant define and try (see my other post).
If step 1 is successfull, i2c-i801.c should work out of the box (it's the same SMBus device after all). So there is no step 2 ;) Ditto for sensors-detect, it should work out of the box (we just can chanhge the description string from "DB" to "DB/DBM").
If it works (whether or not you actually find something on the bus), we of course want to do update the files in our CVS repository.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 5 lines · Jean Delvare
Quoted 5 lines
The LPC I/C has moved from 24c0 (801DB) to 24cc (82801DBM). I checked the specs at Intel and found that my SMBus is disabled wrt to the PCI configuration space, but the I/O space is accessible, e.g. the SMBus is there but hidden ...
Quoted 7 lines
Quoted 4 lines
What is the best way to proceed? I found a module that deals with a similar problem for the DB on ASUS P4B. Should this be dealt with the same way? Then I could add 82801DBM support into
i2c-i801.cand sensors-detect.Step 1 is to check that the
p4b_smbustrick works for you. Just change the relevant define and try (see my other post).
It does :)
Quoted 7 lines
If step 1 is successfull,
i2c-i801.cshould work out of the box (it's the same SMBus device after all). So there is no step 2 ;) Ditto for sensors-detect, it should work out of the box (we just can chanhge the description string from "DB" to "DB/DBM").If it works (whether or not you actually find something on the bus), we of course want to do update the files in our CVS repository.
There is an adm1032 chip on it, as well as RAM eeproms. I have also found some bugs in the p4b_smbus (the bits were valid for ICH2, not ICH4, as a sideeffect they enable USB UHCI #3 on ICH4).
I will prepare a diff to cvs and send it to you. Thanks! (BTW cvs diff -N ... does not work with new, but not cvs added files and cvs add is not allowed with anonymous read-only access. How does one prepare a diff -N type patch?)
# sensors adm1032-i2c-0-4c Adapter: SMBus I801 adapter at 1100 M/B Temp: +45?C (low = -65?C, high = +127?C) CPU Temp: +45.9?C (low = +42.0?C, high = +50.0?C) M/B Crit: +127?C (hyst = +122?C) CPU Crit: +87?C (hyst = +82?C)
eeprom-i2c-0-50
Adapter: SMBus I801 adapter at 1100 Memory type: DDR SDRAM DIMM Memory size (MB): 256
eeprom-i2c-0-51
Adapter: SMBus I801 adapter at 1100 Memory type: DDR SDRAM DIMM Memory size (MB): 256
Signature · 8 lines
Axel.Thimm at ATrpms.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040413/c4e3e94f/attachment.bin
Quoted 11 lines · Jean Delvare
Quoted 4 lines
I will prepare a diff to cvs and send it to you. Thanks! (BTW cvs diff -N ... does not work with new, but not cvs added files and cvs add is not allowed with anonymous read-only access. How does one prepare a diff -N type patch?)
Never had to do that before. I guess that I would just duplicate the working repository and treat the whole thing as static, off-line directories. One of them being the snapshot of the CVS repository, the other being your working directory.
BTW, what file do you want to create?
I renamed p4b_smbus.c to 82801_smbus.c, as the problems is not isolated to a specific motherboard.
The README.p4b mentioned that recent kernels (2.4.23 upwards) have the i801 SMBus detection and activation patched in. I just checked and the patch is less than a dozen lines, and very easily extendable to Centrino laptops with hidden SMBus. But it is in the quirks.c, which means that is needs a kernel patching.
Any chance that detection/enabling could enter i2c-i801.c? Should I give it a try and merge p4b_smbus.c/quicks.c bits into i2c-i801.c?
Quoted 3 lines
Another possibility is that we could grant you write access to the repository. You look like a responsible person so I'd say it is safe ;)
Thanks :)
Signature · 8 lines
Axel.Thimm at ATrpms.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040413/f1bd6177/attachment.bin
Quoted 4 lines
you are right about the CVS renaming pain. I've renamed it back to it original name.
Are you considering switching to subversion?
No.
Now, if you tell me that we can switch to subversion and keep all the history we have in CVS at the moment (including all branches) and that subversion allows renaming files without losing their history, we might reconsider. However, this means extra work for Philip Edelbrock (installing subversion, migrating data, updating webcvs - BTW is there a subversion equivalent?) and that "all" developers don't mind switching. Not sure it's worth it.
Quoted 3 lines
I cannot find the time to do the "proper" thing (e.g. go into
i2c_801.cand enable the smbus there), so before it get too cold, I'd rather submit the fixes to thep4b_smbus.c.
You're right. That fix is easier and some users may enjoy it. I'll apply this once home.
Quoted 2 lines
I believe it should also fix
http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticket04
Correct. We want to contact that person once your fix is commited, in case he is still using that laptop.
Thanks.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 11 lines · Jean Delvare
Quoted 4 lines
you are right about the CVS renaming pain. I've renamed it back to it original name.
Are you considering switching to subversion?
No.
Now, if you tell me that we can switch to subversion and keep all the history we have in CVS at the moment (including all branches) and that subversion allows renaming files without losing their history, we might reconsider.
I think this is the case. Renaming is one of the major benefits of svn in comparison to CVS (along with atomic commits, changesets etc.). There is a cvs2svn script that trasnforms *,v RCS files from a CVS repo to the svn equivalent.
Quoted 3 lines
However, this means extra work for Philip Edelbrock (installing subversion, migrating data, updating webcvs - BTW is there a subversion equivalent?)
Yes, there is mod_dav_svn and viewcvs. Have a look at my test subversion repos at
http://devel.atrpms.net/viewcvs/
http://devel.atrpms.net/svn/test1/
http://devel.atrpms.net/svn/test2/
http://devel.atrpms.net/svn/test3/
If anyone wants to test it send me a username/password off-list. I wouldn't mind helping out with the involved infrastructure.
Signature · 8 lines
Axel.Thimm at ATrpms.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040420/3f14b24c/attachment.bin