hwmon: (it87) Add support for IT8781F, IT8782F, IT8783E/F
Hi Bjoern,
At 01:11 AM 3/24/2012, Björn Gerhart wrote:
[ ... ]
Quoted 2 lines
label temp3 "CPU T."
compute temp3 100+@,-1*(100-@)
Is it possible that this is due to a bad sensor type configuration ?
Thermal diodes have a "current mode" and a "voltage mode", and if misconfigured (or miswired) the reported temperature difference is just about in that range. Difference in wiring, if I understand it correctly, is that the + pin is pulled high with a resistor in voltage mode, which is not the case in current mode.
Problem with the wrong reading is that it affects the sensor's dynamic range. You don't have much dynamic range left if the reading is off by 100 degrees.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 18 lines · Guenter Roeck
Hi Bjoern,
At 01:11 AM 3/24/2012, Björn Gerhart wrote:
[ ... ]Quoted 2 lines
label temp3 "CPU T."
compute temp3 100+@,-1*(100-@)Is it possible that this is due to a bad sensor type configuration ?
Thermal diodes have a "current mode" and a "voltage mode", and if misconfigured (or miswired) the reported temperature difference is just about in that range. Difference in wiring, if I understand it correctly, is that the + pin is pulled high with a resistor in voltage mode, which is not the case in current mode.
Quoted 4 lines
Problem with the wrong reading is that it affects the sensor's dynamic range. You don't have much dynamic range left if the reading is off by 100 degrees.
Hi again,
you might want to check registers 0x56, 0x57, and 0x59. It might be better to adjust temperature values with those registers than with sensors.conf, to retain the sensor's dynamic range.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Guenter,
Am 24.03.2012 um 19:07 schrieb Guenter Roeck:
Quoted 11 lines · Guenter Roeck
Quoted 10 lines
Hi Bjoern,
At 01:11 AM 3/24/2012, Björn Gerhart wrote:
[ ... ]Quoted 2 lines
label temp3 "CPU T."
compute temp3 100+@,-1*(100-@)Is it possible that this is due to a bad sensor type configuration ?
Quoted 8 lines
Quoted 8 lines
Thermal diodes have a "current mode" and a "voltage mode", and if misconfigured (or miswired) the reported temperature difference is just about in that range. Difference in wiring, if I understand it correctly, is that the + pin is pulled high with a resistor in voltage mode, which is not the case in current mode.
As I have learned this morning from our hardware developers, neither "current" nor "voltage" mode is used with temp3, but digital "PECI" mode. In this case, temp3's value describes the _difference_ between the actual temperature and the CPU's maximum temperature (where the CPU will begin to throttle). So actually, I think the static sensors.conf is the wrong place to specify this value, because different CPU models have different maximum temperatures. Therefore, dealing with 100 in our own sensors.conf (as implemented by now) is just a very rough inexact value.
Afaik, only temp3@IT8783 can be used in PECI mode, and in general other ITE sensor chip models can be driven in PECI mode also.
So, how could the PECI mode be handled on the driver side? Detecting if it8783 is in PECI mode:
- Index register 0x2C, bit 6: set to 1 (Enable PECI)
- temp3 value is negative until CPU is not throttling
Where to get current CPU's maximum temperature from:
- MSR 0x1A2, bit23...bit 16
If actually it is the job of the module to do such calculations, I would offer to create an it87 patch for IT8783 fixing this - analog to an existing module with a similar behavior (if you know one).
Quoted 10 lines
Quoted 4 lines
Problem with the wrong reading is that it affects the sensor's dynamic range. You don't have much dynamic range left if the reading is off by 100 degrees.
Hi again,
you might want to check registers
0x56,0x57, and0x59. It might be better to adjust temperature values with those registers than with sensors.conf, to retain the sensor's dynamic range.
Thanks for your attentive review.
Björn
Quoted 2 lines
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
T24gTW9uLCAyNiBNYXIgMjAxMiAxODowODozNSArMDIwMCwgQmrDtnJuIEdlcmhhcnQgd3JvdGU6 Cj4gSGkgR3VlbnRlciwKPiAKPiBBbSAyNC4wMy4yMDEyIHVtIDE5OjA3IHNjaHJpZWIgR3VlbnRl ciBSb2VjazoKPiA+IE9uIFNhdCwgTWFyIDI0LCAyMDEyIGF0IDEyOjIzOjEzUE0gLTA0MDAsIEd1 ZW50ZXIgUm9lY2sgd3JvdGU6Cj4gPj4gSGkgQmpvZXJuLAo+ID4+IAo+ID4+IEF0IDAxOjExIEFN IDMvMjQvMjAxMi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YWlsaW5nIGxpc3QKbG0tc2Vuc29yc0BsbS1zZW5zb3JzLm9yZwpodHRw Oi8vbGlzdHMubG0tc2Vuc29ycy5vcmcvbWFpbG1hbi9saXN0aW5mby9sbS1zZW5zb3Jz
HI Guenter,
Am 26.03.2012 um 21:05 schrieb Guenter Roeck:
Quoted 33 lines · Björn Gerhart
Quoted 25 lines
Hi Guenter,
Am 24.03.2012 um 19:07 schrieb Guenter Roeck:
Quoted 11 lines · Guenter Roeck
Quoted 10 lines
Hi Bjoern,
At 01:11 AM 3/24/2012, Björn Gerhart wrote:
[ ... ]Quoted 2 lines
label temp3 "CPU T."
compute temp3 100+@,-1*(100-@)Is it possible that this is due to a bad sensor type configuration ?
Quoted 8 lines
Quoted 8 lines
Thermal diodes have a "current mode" and a "voltage mode", and if misconfigured (or miswired) the reported temperature difference is just about in that range. Difference in wiring, if I understand it correctly, is that the + pin is pulled high with a resistor in voltage mode, which is not the case in current mode.
As I have learned this morning from our hardware developers, neither "current" nor "voltage" mode is used with temp3, but digital "PECI" mode. In this case, temp3's value describes the _difference_ between the actual temperature and the CPU's maximum temperature (where the CPU will begin to throttle). So actually, I think the static sensors.conf is the wrong place to specify this value, because different CPU models have different maximum temperatures. Therefore, dealing with 100 in our own sensors.conf (as implemented by now) is just a very rough inexact value.
Quoted 7 lines
Afaik, only temp3@IT8783 can be used in PECI mode, and in general other ITE sensor chip models can be driven in PECI mode also.
So, how could the PECI mode be handled on the driver side? Detecting if it8783 is in PECI mode:
- Index register0x2C, bit 6: set to 1 (Enable PECI)
- temp3 value is negative until CPU is not throttling
Quoted 5 lines
Possibly also register
0x55(ADC Temperature Extra Channel Enable Register), bit 7.Can you check with your HW folks ?
Your're right, checked that point with my HW colleagues this morning. They say when bit7 is 1 (as it is in our design), then the chip is in PECI resp. SST mode for getting digital temperatures @temp3.
Björn
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Jean,
Am 26.03.2012 um 19:01 schrieb Jean Delvare:
Quoted 7 lines
[..]
Quoted 1 line
If actually it is the job of the module to do such calculations, I would offer to create an it87 patch for IT8783 fixing this - analog to an existing module with a similar behavior (if you know one).
You assume that the PECI value always refers to the CPU. I do not think this is true, other parts (e.g. north bridge) could report their temperature through PECI as well.
Quoted 8 lines
And if it is the CPU temperature, we already have the coretemp driver providing the same information, so there's little point in implementing the same in it87. The only benefit of handling PECI sensors in it87 and the like would be so that they can be used as sources for automatic fan speed control, but if the chip itself has no idea about the absolute value of the temperature then I doubt it can use it for automatic fan speed control.
Yes, with the coretemp driver even both core temperatures are displayed correctly. So I agree, it's nonsense to implement our special design into the generic driver ;-)
Björn
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 18 lines · Björn Gerhart
Hi Jean,
Am 26.03.2012 um 19:01 schrieb Jean Delvare:
Quoted 7 lines
[..]
Quoted 1 line
If actually it is the job of the module to do such calculations, I would offer to create an it87 patch for IT8783 fixing this - analog to an existing module with a similar behavior (if you know one).
You assume that the PECI value always refers to the CPU. I do not think this is true, other parts (e.g. north bridge) could report their temperature through PECI as well.
Quoted 8 lines
And if it is the CPU temperature, we already have the coretemp driver providing the same information, so there's little point in implementing the same in it87. The only benefit of handling PECI sensors in it87 and the like would be so that they can be used as sources for automatic fan speed control, but if the chip itself has no idea about the absolute value of the temperature then I doubt it can use it for automatic fan speed control.
Quoted 1 line
Yes, with the coretemp driver even both core temperatures are displayed correctly. So I agree, it's nonsense to implement our special design into the generic driver ;-)
Depends. As Jean mentioned, it would make sense if the temperature can be used for automatic fan control.
The PECI specification says (I qoute Wikipedia) "PECI reports a negative value expressing the difference between the current temperature and the thermal throttle point (at which the CPU reduces speed or shuts down to prevent damage due to overheating) instead of the absolute temperature". So the negative value and slope is to be expected.
Question is if there is a way to tell the chip the how to calculate the real temperature from the raw value reported by PECI. The Nuvoton chips have a set of registers for that purpose.
Since the raw PECI value is not very useful, it might well be that it is possible to program the ITE chip to adust its readings. No idea how to do that, though. If your HW folks have a contact at ITE, maybe you could ask them to try to find out. Or maybe there is some BIOS code available from ITE and/or from BIOS vendors.
Alternatively, it might be possible to program fan control to take the negative slope into account; at least Wikipedia suggests that as possibility (to have the fan run faster as the reported temperature approaches zero from below). No idea how to do that either, though.
There is also register 0x0a, bits 4-6. Is that set to PECI on your board ?
Either case, I think it would make sense for us to report the sensor type as PECI if so configured. Yet another patch ...
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Guenter,
Am 28.03.2012 um 01:28 schrieb Guenter Roeck:
Quoted 19 lines · Björn Gerhart
Quoted 18 lines
Hi Jean,
Am 26.03.2012 um 19:01 schrieb Jean Delvare:
Quoted 15 lines
[..]
Quoted 1 line
If actually it is the job of the module to do such calculations, I would offer to create an it87 patch for IT8783 fixing this - analog to an existing module with a similar behavior (if you know one).
You assume that the PECI value always refers to the CPU. I do not think this is true, other parts (e.g. north bridge) could report their temperature through PECI as well.
And if it is the CPU temperature, we already have the coretemp driver providing the same information, so there's little point in implementing the same in it87. The only benefit of handling PECI sensors in it87 and the like would be so that they can be used as sources for automatic fan speed control, but if the chip itself has no idea about the absolute value of the temperature then I doubt it can use it for automatic fan speed control.
Quoted 5 lines
Quoted 1 line
Yes, with the coretemp driver even both core temperatures are displayed correctly. So I agree, it's nonsense to implement our special design into the generic driver ;-)
Depends. As Jean mentioned, it would make sense if the temperature can be used for automatic fan control.
That's right, for instance the BIOS on our mainboard controls the fan RPM through that PECI value.
Quoted 5 lines
The PECI specification says (I qoute Wikipedia) "PECI reports a negative value expressing the difference between the current temperature and the thermal throttle point (at which the CPU reduces speed or shuts down to prevent damage due to overheating) instead of the absolute temperature". So the negative value and slope is to be expected.
Quoted 9 lines
Question is if there is a way to tell the chip the how to calculate the real temperature from the raw value reported by PECI. The Nuvoton chips have a set of registers for that purpose.
Since the raw PECI value is not very useful, it might well be that it is possible to program the ITE chip to adust its readings. No idea how to do that, though. If your HW folks have a contact at ITE, maybe you could ask them to try to find out. Or maybe there is some BIOS code available from ITE and/or from BIOS vendors.
My HW colleagues don't have deeper knowledge about PECI. I'll try to get the ITE contact address to ask ITE directly.. As far as I know, our BIOS simply uses the intel CPU register to calculate the real temperature.
Quoted 7 lines
Alternatively, it might be possible to program fan control to take the negative slope into account; at least Wikipedia suggests that as possibility (to have the fan run faster as the reported temperature approaches zero from below). No idea how to do that either, though.
There is also register
0x0a, bits 4-6. Is that set to PECI on your board ?
Yes, in our design on Index Register 0x0A, bits 6-4 are set to 110, which also means that PECI is enabled.
However, on our mainboard we have PECI mode enabled but at the same time we can use UART6. There is a trick to disable the parallel port and therefore enable COM6 on the parallel port's pins:
When PECI mode is enabled, UART6 is not necessarily disabled. It depends on the wiring. When JP4 (pin 1) is set to 0, the parallel port on pins 100..106 gets disabled. Therefore, on these pins UART6 can be used instead (see chapter "Power On Strapping Options").
Björn
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors