Skip to contentSkip to conversation

getting 2.8.7 or better for 2.6 kernel?

DISCUSSION Jeremy Jackson 2 participants 8 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

I wish to try the pc87364 with 2.6 kernel. The downloads page indicates
that the patches must not be used with 2.6, and that development is in
the kernel tree. I don't see any mention of that driver in change logs for kernel 2.6.9, or -bk? so i seem to have hit a dead end.

Any pointers would be appreciated.

Thanks,

Jeremy

Signature · 4 lines
Jeremy Jackson
Coplanar Networks
(519)897-1516
http://www.coplanar.net
#1 lore raw
Quoted 3 lines

I tried the patch with a Dell Optiplex GX110. The module loads, finds a device at 0x09, but says it's "not activated". What do you need to debug this problem?

You mean, what do *you* need to work around it? ;)

Typically, disabled devices mean that the monitoring device is not wired properly (the motherboard manufacturer didn't make use of the functionality). Thus, the driver has not been educated to forcibly enable the device.

You may still want to try to manually enable it, and see if the driver then reports anything useful. The commands to do that are (in order):

isaset 0x2e 0x2f 7 9
isaset 0x2e 0x2f 0x30 1 1

Then loading the driver should work. Whether or not you will find it useful on your board, you tell us.

Note that I updated the patch to fix a problem with fan min always being reported as 0.
http://khali.linux-fr.org/devel/i2c/linux-2.6/linux-2.6.8-i2c-pc87360-beta1.diff

Please revert the old patch and apply this new one before testing again, so that the driver at least has a chance to work ;)

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#2 lore raw
In reply to Jeremy Jackson

I tried the patch with a Dell Optiplex GX110. The module loads, finds a device at 0x09, but says it's "not activated". What do you need to debug this problem?

Regards,

Jeremy

Quoted 28 lines · Jean Delvare

Hi Jeremy,

Quoted 6 lines

I wish to try the pc87364 with 2.6 kernel. The downloads page indicates that the patches must not be used with 2.6, and that development is in the kernel tree. I don't see any mention of that driver in change logs for kernel 2.6.9, or -bk? so i seem to have hit a dead end.

Any pointers would be appreciated.

You're of the lucky kind, aren't you? One week ago I'd have told you to wait, possibly for a long time, unless someone would port the driver to 2.6.

However I just ported the driver yesterday, after Wincor-Nixdorf Germany requested me to do so in exchange of some hardware I wanted. I guess you can thank them as I do :) You can pick the patch here:
http://khali.linux-fr.org/devel/i2c/linux-2.6/linux-2.6.8-i2c-pc87360-alpha1.diff
Note that it is totally untested since I do not own a compatible chip myself. The patch should apply and compile on almost any 2.6.8+ kernel tree.

If you give it a try, please let me know how it works for you and report any problem you encounter, so that I can fix theses.

Thanks,
Jean Delvare

Signature · 4 lines
Jeremy Jackson
Coplanar Networks
(519)897-1516
http://www.coplanar.net
#3 lore raw
In reply to Jeremy Jackson
Quoted 6 lines · Jean Delvare
Quoted 3 lines

I tried the patch with a Dell Optiplex GX110. The module loads, finds a device at 0x09, but says it's "not activated". What do you need to debug this problem?

You mean, what do *you* need to work around it? ;)

Yeah, that's what I meant.

Quoted 5 lines

Typically, disabled devices mean that the monitoring device is not wired properly (the motherboard manufacturer didn't make use of the functionality). Thus, the driver has not been educated to forcibly enable the device.

Well the BIOS has temp., voltage and fan readings, and there are no other sensor chips on the board.

Quoted 6 lines

You may still want to try to manually enable it, and see if the driver then reports anything useful. The commands to do that are (in order):

isaset 0x2e 0x2f 7 9
isaset 0x2e 0x2f 0x30 1 1

What is the last trailing one for?

Now, the modprobe command gives:
pc87360: Base address not set for device 0x09

Quoted 3 lines

Then loading the driver should work. Whether or not you will find it useful on your board, you tell us.

Signature · 4 lines
Jeremy Jackson
Coplanar Networks
(519)897-1516
http://www.coplanar.net
#4 lore raw
In reply to Jeremy Jackson

Well I pulled out the data sheet for pc87364, seems the device 9 index 0x60 and 0x61 are "base address". I'm not sure what those are... is that an ISA decode address? Any chance it will work if I set it to any random unused address?

Quoted 2 lines · Jean Delvare

isaset 0x2e 0x2f 7 9
isaset 0x2e 0x2f 0x30 1 1

Signature · 4 lines
Jeremy Jackson
Coplanar Networks
(519)897-1516
http://www.coplanar.net
#5 lore raw
In reply to Jeremy Jackson

Well setting base address to 0x0380 lets the module load. Not much happens yet though, next i'll update the patch to the last one you sent.

so i added

isaset 0x2e 0x2f 0x60 0x03
isaset 0x2e 0x2f 0x61 0x80

Quoted 6 lines · Jean Delvare

isaset 0x2e 0x2f 7 9
isaset 0x2e 0x2f 0x30 1 1

Then loading the driver should work. Whether or not you will find it useful on your board, you tell us.

Signature · 4 lines
Jeremy Jackson
Coplanar Networks
(519)897-1516
http://www.coplanar.net
#6 lore raw
In reply to Jeremy Jackson

Hi Jeremy,

Quoted 6 lines

I wish to try the pc87364 with 2.6 kernel. The downloads page indicates
that the patches must not be used with 2.6, and that development is in
the kernel tree. I don't see any mention of that driver in change logs for kernel 2.6.9, or -bk? so i seem to have hit a dead end.

Any pointers would be appreciated.

You're of the lucky kind, aren't you? One week ago I'd have told you to wait, possibly for a long time, unless someone would port the driver to 2.6.

However I just ported the driver yesterday, after Wincor-Nixdorf Germany requested me to do so in exchange of some hardware I wanted. I guess you can thank them as I do :) You can pick the patch here:
http://khali.linux-fr.org/devel/i2c/linux-2.6/linux-2.6.8-i2c-pc87360-alpha1.diff
Note that it is totally untested since I do not own a compatible chip myself. The patch should apply and compile on almost any 2.6.8+ kernel tree.

If you give it a try, please let me know how it works for you and report any problem you encounter, so that I can fix theses.

Thanks,
Jean Delvare

#7 lore raw
In reply to Jeremy Jackson

Hi Jeremy,

Quoted 2 lines

Well the BIOS has temp., voltage and fan readings, and there are no other sensor chips on the board.

Impossible. You said you had a PC87364 Super-I/O chip. This model has fan monitoring and control, but no temperature nor voltage sensors. If the BIOS provides these, then you got to have an additional chip somewhere. As it goes, I wouldn't even be surprised that the fan monitoring and control part of the PC87364 is not used at all on your system.

Quoted 7 lines
Quoted 5 lines

You may still want to try to manually enable it, and see if the driver then reports anything useful. The commands to do that are (in order):

isaset 0x2e 0x2f 7 9
isaset 0x2e 0x2f 0x30 1 1

What is the last trailing one for?

Masking of the written value. It isn't strictly necessary since the other bits at address 0x30 are supposedly unused, but it's good practice to use the mask parameter when writing to a bitfield. This requires isaset from CVS though.

Although note that the two commands are not independant. The first one selects the logical device 9, the second write to a register in this logical device.

Quoted 2 lines

Now, the modprobe command gives:
pc87360: Base address not set for device 0x09

Which further suggests that this logical device isn't meant to be used on your system, IMHO.

[...next post...]

Quoted 4 lines

Well I pulled out the data sheet for pc87364, seems the device 9 index 0x60 and 0x61 are "base address". I'm not sure what those are... is that an ISA decode address? Any chance it will work if I set it to any random unused address?

Correct. Looks like you're more knowledged and curious than the average user, which is a good thing :)

[...next post...]

Quoted 7 lines

Well setting base address to 0x0380 lets the module load. Not much happens yet though, next i'll update the patch to the last one you sent.

so i added

isaset 0x2e 0x2f 0x60 0x03
isaset 0x2e 0x2f 0x61 0x80

I'd suggest you set the logical device to 9 again before doing this. You don't know if some other program (or the BIOS) could have changed the logical device since you last selected it.

Now, what I expect is that you will get 0 RPM readings from the supposed fans, and you won't be able to change the fans speed either, simply because the PC87364 chip isn't the one you fans are wired to. I may be wrong though...

Could also be that individual fan channels need to be enabled on an per-channel basis. If you have the dahasheet handy, look at registers 0xF0-0xF2, you may want to change bits there. Be extremely careful though, especially with polarity inversion bits. If fans are really wired to the PC87364, you will want to keep you case open and have a look at the fans so as to make sure you won't plain stop them.

You should enable I2C chip debugging in your kernel configuration, so that the driver tells you more about how it thinks the chip is configures.

Let us know if you get anywhere! I'd also be interested in a complete output log of sensors-detect. I cannot believe you have no other hardware monitoring chip on-board.

Jean