On Thu, Nov 14, 2013 at 04:36:46PM +0100, Björn Gerhart wrote: > Hi, > Hi Bjoern, thanks a lot for the feedback. > I'm about to test the new NCT6106D part of the Nuvoton nct6775 driver. > However, I experience a strange behaviour concerning the maximum > thresholds of in1 (wiring: +5V at chip's VIN0, 15/10 resistor ratio) and > in4 (wiring: +12V at chip's VIN1, 110/22 ratio). The behaviour is as > follows: > - the current value always looks good > - the minimum threshold value always looks good > - the maximum threshold value _only_ looks good, when it is configured > _lower_ than the current value (which doesn't make any sense anyway, but > I checked it just for error analysis) > - but once the maximum threshold value is configured higher than the > current value (which it normally is), then the read maximum value is > exactly the same as the current value > > Please see at the end of this mail for the sensors command output and > the related sensors.conf. > > When I analysed the nct6775.c source code, I noticed that the voltage > registers are programmed as "u16" registers. In the NCT6102D/NCT6106D > spec (see [1], page 111 and following), the tables say that the > registers are 8bit only. May this be the reason for the strange > behaviour? Or is it a bad typo Nuvoton made in the spec? > The register addresses encode both bank and address. If you look into nct6775_read_value(), you'll see how the address is split into <bank, offset>. > However, the register _adresses_ in the source code for the current > value and the min and max thresholds seem to apply with the ones > specified in the spec. > > Björn > > [1] > https://download.nuvoton.com/NuvotonMOSS/DownloadService/Member/DocumentsInfo.aspx?tp_GUID=DA00-NCT6106D > > My sensors output: > [root@allinone-wnlpos ~]# LANG=C sensors > nct6106-isa-0290 > Adapter: ISA adapter > CPUVCORE: +1.74 V (min = +1.00 V, max = +2.00 V) > +5V: +5.10 V (min = +4.50 V, max = +5.10 V) ALARM > +12V: +12.24 V (min = +10.70 V, max = +12.24 V) ALARM Weird. Unfortunately, I don't immediately see what may be wrong in the code. Please provide the output of sudo isadump 0x295 0x296 0 sudo isadump 0x295 0x296 1 after programming the limits. This way we can see what is actually programmed into the chip. It would also be helpful if you can also provide the output of "sensors" as well as the output from above commands after booting, prior to running "sensors -s". This way we'll be able to see the initial chip programming by the BIOS. Thanks, Guenter _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors