All of lore.kernel.org
 help / color / mirror / Atom feed
* News about PC87366
@ 2005-05-19  6:24 Jean Delvare
  2005-05-19  6:24 ` Jean Delvare
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

Hi Sandeep,

Here are the latest news about my pc87360 driver. I've also found some
information about your motherboard.

I couldn't find anything relevant about your exact motherboard reference
(P4B-LA). However, searching the web pointed me to two alternate
references that are probably almost similar: P4U-LA and P4B-MX.

http://h10025.www1.hp.com/ewfrf/wc/genericDocument?lc=en&cc=us&docname=bph07293

http://usa.asus.com/prog/spec.asp?m=P4B-MX

Does any of these motherboard layouts match yours?

There is a BIOS setup screenshot in the P4B-MX manual, presenting two
temperatures, three fan speeds and six voltages. This is a first hint of
what we can expect to obtain from your chip (especially for the
voltages, for which we still don't know the order and conversions).

Do you have any idea of what the VCore voltage should be for your
system? This is the one to start with since it doesn't need any
conversion.

I have been fixing a few incorrectnesses in the driver, updating the
default sensors.conf file, and adding two new features to the driver:

* The "init" module parameter lets you have the driver forcibly enable
more or less monitoring channels of the chip.

* The dynamic fan clock divisor allows the driver to select the best fan
clock divisor for the fan speed and min limit. You don't have to set the
divisor by yourself. At the moment, I've left that second possibility
(the fan_div file is still there and writable) for testing purposes, but
it will be gone before I release the driver.

I would like you to get the latest CVS version and do the following
things:

1* Copy etc/sensors.conf.eg to /etc/sensors.conf. It is important that
you have an up-to-date configuration file with no ignore lines for the
following tests.

2* Compile the driver with DEBUG enabled.

3* Get my dumper script from
http://jdelvare.net1.nerim.net/sensors/pc87366/dump-pc87366.sh
and run it from an empty directory. It'll dump the contents of your chip
and build a tarball with the results.

4* Load the driver with "modprobe pc87360". Run sensors -s && sensors,
save the output somewhere.

5* Unload the driver, reload with "modprobe pc87360 init=3". This will
forcibly enable all temperature and voltage channels. Run sensors again.

6* Run the dumper script again, in a different empty directory so that
it doesn't overwrite the previous files.

And of course send me all the generated files.

As for the auto fan clock divider selection, you should observe the
following phenomenons:

1* Dividers auto adjust. If you write dividers with "echo X Y Z >
fan_div", running sensors will shift them if needed, one step each time,
until the driver likes what it gets.

2* Setting a fan min that does not fit with the current divisor will
increase the divisor as needed. For example, if you try "echo 800 >
fan2", the divisor should become 4, automatically. And it should stay
that way until you change to a higher min limit.

In any case, min fan settings should be preserved (unless you are
writing a new one, of course).

Don't bother trying PWM, I have not changed anything there. I think
there's something weird on your board that I cannot fix by the mean of
software :( PWM seems to be working as intended for my other tester.

I think that's all. Thanks a lot for testing!

-- 
Jean Delvare
http://khali.linux-fr.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* News about PC87366
  2005-05-19  6:24 News about PC87366 Jean Delvare
  2005-05-19  6:24 ` Jean Delvare
@ 2005-05-19  6:24 ` Jean Delvare
  2005-05-19  6:25 ` Jean Delvare
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

Hi Sandeep,

The driver now support thermistors! Feel free to give it a try. Don't
forget to update /etc/sensors.conf from the provided default, or
thermistor temperatures won't work at all.

Please let me know how it works for you.

Thanks.

-- 
Jean Delvare
http://khali.linux-fr.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* News about PC87366
  2005-05-19  6:24 News about PC87366 Jean Delvare
@ 2005-05-19  6:24 ` Jean Delvare
  2005-05-19  6:24 ` Jean Delvare
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

Hi Sandeep,

Here is an experimental configuration file that should match your
motherboard settings quite well. Please test with the latest version of
the driver from CVS and let me know how it works!

Thanks.

-- 
Jean Delvare
http://khali.linux-fr.org/
-------------- next part --------------
chip "pc87366-*"

# Voltage inputs

   ignore in0
   label in1   "+5V"
   label in2   "Vcore"
   ignore in3
   ignore in4
   label in5   "+12V"
   label in6   "5VSB"
   label in7   "Vsb"
   label in8   "Vdd"
   label in9   "Vbat"
   label in10  "AVdd"

   compute in1   @*(28/10+1), @/(28/10+1)
   compute in5   @*(210/28+1), @/(210/28+1)
   compute in6   @*(28/10+1), @/(28/10+1)
   compute in7   @*2, @/2
   compute in8   @*2, @/2
   compute in10  @*2, @/2

   set in1_min    5 * 0.90
   set in1_max    5 * 1.10
   set in5_min   12 * 0.90
   set in5_max   12 * 1.10
   set in6_min    5 * 0.90
   set in6_max    5 * 1.10
# These are the operating conditions as recommended by National
# Semiconductor
   set in7_min   3.0
   set in7_max   3.6
   set in8_min   3.0
   set in8_max   3.6
   set in9_min   2.4
   set in9_max   3.6
   set in10_min  3.0
   set in10_max  3.6

# Temperature inputs

   label temp1       "CPU0 Temp"
   label temp1_crit  "CPU0 Crit"
   label temp2       "CPU1 Temp"
   label temp2_crit  "CPU1 Crit"
   label temp3       "S-IO Temp"
   label temp3_crit  "S-IO Crit"

#   set temp1_min    0
#   set temp1_max   70
#   set temp1_crit  85
#   set temp2_min    0
#   set temp2_max   70
#   set temp2_crit  85
   set temp3_min    5
   set temp3_max   60
   set temp3_crit  70

# Thermistors
# On some systems, thermistors are used instead of thermal diodes.
# Note that these are the same pins used differently, so you really
# can't have them all on a given system.
   ignore temp1
   ignore temp2
#   ignore temp4
#   ignore temp5
#   ignore temp6

# 3435 is the thermistor beta.
# This assumes that the thermistor forms a resistor divider with a resistor
# equal to its nominal value at 25 degres Celcius. If not, change the values.
# We also assume that you have a working in10 (which is forcibly enabled by
# default). If not, use 3.3 instead, but you lose accuracy.

   compute temp4  3435 / (` (1 / (1 - @ / in10) - 1) + 3435 / 298.15) - 273.15, \
                  in10 * (1 - 1 / (1 + (^ (3435 / (273.15 + @) - 3435 / 298.15))))
   compute temp5  3435 / (` (1 / (1 - @ / in10) - 1) + 3435 / 298.15) - 273.15, \
                  in10 * (1 - 1 / (1 + (^ (3435 / (273.15 + @) - 3435 / 298.15))))
   compute temp6  3435 / (` (1 / (1 - @ / in10) - 1) + 3435 / 298.15) - 273.15, \
                  in10 * (1 - 1 / (1 + (^ (3435 / (273.15 + @) - 3435 / 298.15))))

   set temp4_min    0
   set temp4_max   70
   set temp5_min    0
   set temp5_max   70
   set temp6_min    0
   set temp6_max   70

# Fan inputs

# Ignore fans you don't have
#   ignore fan2
   ignore fan3

   set fan1_min 3000
   set fan2_min 2000
#   set fan3_min 2000

^ permalink raw reply	[flat|nested] 11+ messages in thread

* News about PC87366
  2005-05-19  6:24 News about PC87366 Jean Delvare
                   ` (3 preceding siblings ...)
  2005-05-19  6:25 ` Sandeep Mehta
@ 2005-05-19  6:25 ` Sandeep Mehta
  2005-05-19  6:25 ` Jean Delvare
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Sandeep Mehta @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Well, it's been a while. I've been busy with schoolwork for the past
weeks, sorry for not stating that earlier. I have been following your
e-mails to me, and I would like to thank you for not only continuing
driver development, but continuing to do specific work on my
motherboard. That is just awesome. I will definitely have more time now 
that school is out.

First of all, the P4U-LA most closely resembles the appearance of my 
board and the layout is probably exactly the same as mine. Thanks for 
looking into this. I have looked into the P4B-MX before, and I know I 
found something wrong with it when comparing it to mine. Right now, I 
can say it is very similar to my board, but the layout is slightly 
different. Do these boards have computation differences with the sensor 
chip?

lm_sensors cvs 05/25/04 @ 6:10 pm EST

*note: I am using the sensors.conf modification you sent me through 
e-mail for all of this.

It is awesome to see thermistor support and it appears to be functioning 
well. Temps 4, 5, and 6 all hover around 40, and my bios reports a 
single cpu temperature of 40 degrees (but it keeps rising steadily, 
while sensors doesn't seem to reflect this). I left my bios showing for 
a while, and it hit around 45 degrees celsius, but I have not seen such 
a temperature reported in sensors. I will experiment with changing the 
environment temperature this weekend and e-mail the results.

By the way, what are all these new temperature values reporting?

Oddity: When I try to set limits in the new temp proc entries, the 
changes are not reflected in sensors, or a number that is completely 
different is shown, and I am guessing this is due to the computations in 
the sensors.conf file.
For example: cat temp4 gives me 3.02 3.02 3.02 1.34 when I echo 34 63 23 
-128 to temp4; sensors then reports
temp4:       +36 C  (low  =   -24 C, high =   -24 C)   ALARM
temp4_crit:
             -24 C
If I then echo 22 55 77 99 to temp 5, cat temp 5 shows 3.02 3.02 3.02 
1.22, and sensors reports -25 for low, high, and crit temperatures for 
both temps 4 and 5. Echoing 22 55 77 99 to temp6 produces the same 
output when cat'ed, and then the values for all the highs, lows, and 
crits change to -24.

Different combinations of echoed values also produce different outputs:
echoed 0 70 to temp4 and cat'ing shows 0.00 3.02 3.02 1.31 and sensors 
reports
temp4:       +37 C  (low  =   -25 C, high =  -273 C)
temp4_crit:
             -25 C


I can work with temp3 perfectly, but now the first value echoed is the 
high temp and the second is the low temp. It used to be the other way 
around, so I'm not sure if this was intended (though it probably 
shouldn't make any difference).
cat temp3 shows 66 0 100 54 and sensors shows
S-IO Temp:   +53 C  (low  =    +0 C, high =   +66 C)
S-IO Crit:  +100 C

I have noticed a similar oddity with echoing settings for the voltages. 
cat in1 originally showed 1.18 1.44 0.90, then I echoed 10 20 30 to in1, 
and cat'ing it again gives 3.02 3.02 0.90. Sensors reports
+5V:       +3.42 V  (min = +11.48 V, max =  11.48 V)       ALARM

Hmm, okay just noticed something. With the voltages, if I echo a value 
that is close to the original values, then the new values do get updated 
in the file. So now I'm not sure if this is a bug, or just the fact I 
was echoing unnecessarily large numbers, and I'm guessing the latter....

As for the fans, pwm no longer functions (understandable, since my 
motherboard isn't doing things conventionally anyway), but the speeds 
still appear correctly (as if pwm was set to 255). The pwm files show 0 
1, and echoing any new value has no effect. Of course, pwmconfig chokes, 
but produces odd (and probably meaningless) results:
Found the following fan sensors:
   pc87366-isa-ecc0/fan1     current speed: 3779 RPM
   pc87366-isa-ecc0/fan2     current speed: 2105 RPM
   pc87366-isa-ecc0/fan3     current speed: 0 ... skipping!

Warning!!! This program will stop your fans, one at a time,
for approximately 5 seconds each!!!
This may cause your processor temperature to rise!!!
If you do not want to do this hit control-C now!!!
Hit return to continue:

Testing pwm control pc87366-isa-ecc0/pwm1 ...
  pc87366-isa-ecc0/fan1 ... speed was 3779 now 0
    It appears that fan pc87366-isa-ecc0/fan1
    is controlled by pwm pc87366-isa-ecc0/pwm1
Would you like to generate a detailed correlation (y)?
Would you like to generate a graphical plot using gnuplot (y)? n
    PWM 255 FAN 3478
    PWM 240 FAN 3503
    PWM 225 FAN 2580
    PWM 210 FAN 0
    Fan Stopped at PWM = 210

  pc87366-isa-ecc0/fan2 ... speed was 2105 now 882
    It appears that fan pc87366-isa-ecc0/fan2
    is controlled by pwm pc87366-isa-ecc0/pwm1
Would you like to generate a detailed correlation (y)?
Would you like to generate a graphical plot using gnuplot (y)? n
    PWM 255 FAN 2123
    PWM 240 FAN 1061
    PWM 225 FAN 888
    PWM 210 FAN 2142
    PWM 195 FAN 2123
    PWM 180 FAN 2105
    PWM 165 FAN 1818
    PWM 150 FAN 1702
    PWM 135 FAN 1528
    PWM 120 FAN 1860
    PWM 105 FAN 1935
    PWM 90 FAN 1578
    PWM 75 FAN 1702
    PWM 60 FAN 2123
    PWM 45 FAN 2123
    PWM 30 FAN 1052
    PWM 15 FAN 2105
    PWM 0 FAN 2105


Testing pwm control pc87366-isa-ecc0/pwm2 ...
  pc87366-isa-ecc0/fan1 ... speed was 3779 now 0
    It appears that fan pc87366-isa-ecc0/fan1
    is controlled by pwm pc87366-isa-ecc0/pwm2
Would you like to generate a detailed correlation (y)?
Would you like to generate a graphical plot using gnuplot (y)? n
    PWM 255 FAN 3503
    PWM 240 FAN 0
    Fan Stopped at PWM = 240

  pc87366-isa-ecc0/fan2 ... speed was 2105 now 1764
    no correlation

Testing pwm control pc87366-isa-ecc0/pwm3 ...
  pc87366-isa-ecc0/fan1 ... speed was 3779 now 1538
    It appears that fan pc87366-isa-ecc0/fan1
    is controlled by pwm pc87366-isa-ecc0/pwm3
    Fan pc87366-isa-ecc0/fan1 has not returned to speed, please investigate!
  pc87366-isa-ecc0/fan2 ... speed was 2105 now 1846
    no correlation

Testing is complete.
Please verify that all fans have returned to their normal speed.

And that's all I've seen so far. I should be more prompt now in replying 
to e-mails, so if you need anything specific, I'd be glad to do it. I 
know that my in8 and in9 dumps from a while back were incorrect, so if 
you need me to do that again, I'll do so.

Thanks again!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* News about PC87366
  2005-05-19  6:24 News about PC87366 Jean Delvare
                   ` (7 preceding siblings ...)
  2005-05-19  6:25 ` Sandeep Mehta
@ 2005-05-19  6:25 ` Sandeep Mehta
  2005-05-19  6:25 ` Jean Delvare
  9 siblings, 0 replies; 11+ messages in thread
From: Sandeep Mehta @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Forgot to add the full sensors output, here it is:

+5V:       +3.38 V  (min = +11.48 V, max =  11.48 V)       ALARM
Vcore:     +0.78 V  (min =  +3.02 V, max =   3.02 V)       ALARM
+12V:      +6.04 V  (min = +17.00 V, max =  17.00 V)       ALARM
5VSB:      +2.47 V  (min =  +4.48 V, max =   5.47 V)       ALARM
Vsb:       +3.36 V  (min =  +3.00 V, max =   3.60 V)
Vdd:       +3.34 V  (min =  +3.00 V, max =   3.60 V)
Vbat:      +0.00 V  (min =  +2.40 V, max =   3.02 V)
AVdd:      +3.34 V  (min =  +3.00 V, max =   3.60 V)
fan1:     3503 RPM  (min = 3000 RPM, div = 1)
fan2:     2123 RPM  (min = 2000 RPM, div = 2)
S-IO Temp:   +54 C  (low  =    +0 C, high =   +66 C)
S-IO Crit:  +100 C
temp4:       +37 C  (low  =   -24 C, high =   -24 C)   ALARM
temp4_crit:
             -24 C
temp5:       +40 C  (low  =   -24 C, high =   -24 C)   ALARM
temp5_crit:
             -24 C
temp6:       +38 C  (low  =   -24 C, high =   -24 C)   ALARM
temp6_crit:
             -24 C

and sensors -u
pc87366-isa-ecc0
Adapter: ISA adapter
alarms_in: 0.00 (alarms_in)
alarms_temp: 0.00 (alarms_temp)
fan1: 3779.00 (fan1)
  fan1_min: 3000.00 (fan1_min)
  fan1_div: 1.00 (fan1_div)
  fan1_status: 1.00 (fan1_status)
fan2: 2123.00 (fan2)
  fan2_min: 2000.00 (fan2_min)
  fan2_div: 2.00 (fan2_div)
  fan2_status: 1.00 (fan2_status)
+5V: 3.38 (in1)
  in1_min: 11.48 (in1_min)
  in1_max: 11.48 (in1_max)
  in1_status: 131.00 (in1_status)
Vcore: 0.78 (in2)
  in2_min: 3.02 (in2_min)
  in2_max: 3.02 (in2_max)
  in2_status: 131.00 (in2_status)
+12V: 6.04 (in5)
  in5_min: 17.00 (in5_min)
  in5_max: 17.00 (in5_max)
  in5_status: 131.00 (in5_status)
5VSB: 2.47 (in6)
  in6_min: 4.48 (in6_min)
  in6_max: 5.47 (in6_max)
  in6_status: 131.00 (in6_status)
Vsb: 3.34 (in7)
  in7_min: 3.00 (in7_min)
  in7_max: 3.60 (in7_max)
  in7_status: 129.00 (in7_status)
Vdd: 3.34 (in8)
  in8_min: 3.00 (in8_min)
  in8_max: 3.60 (in8_max)
  in8_status: 129.00 (in8_status)
Vbat: 0.00 (in9)
  in9_min: 2.40 (in9_min)
  in9_max: 3.02 (in9_max)
  in9_status: 0.00 (in9_status)
AVdd: 3.32 (in10)
  in10_min: 3.00 (in10_min)
  in10_max: 3.60 (in10_max)
  in10_status: 129.00 (in10_status)
S-IO Temp: 54.00 (temp3)
  temp3_min: 0.00 (temp3_min)
  temp3_max: 66.00 (temp3_max)
  S-IO Crit: 100.00 (temp3_crit)
  temp3_status: 129.00 (temp3_status)
temp4: 36.51 (temp4)
  temp4_min: -24.78 (temp4_min)
  temp4_max: -24.78 (temp4_max)
  temp4_crit: -24.78 (temp4_crit)
  temp4_status: 131.00 (temp4_status)
temp5: 39.75 (temp5)
  temp5_min: -24.78 (temp5_min)
  temp5_max: -24.78 (temp5_max)
  temp5_crit: -24.78 (temp5_crit)
  temp5_status: 131.00 (temp5_status)
temp6: 37.93 (temp6)
  temp6_min: -24.78 (temp6_min)
  temp6_max: -24.78 (temp6_max)
  temp6_crit: -24.78 (temp6_crit)
  temp6_status: 131.00 (temp6_status)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* News about PC87366
  2005-05-19  6:24 News about PC87366 Jean Delvare
                   ` (8 preceding siblings ...)
  2005-05-19  6:25 ` Sandeep Mehta
@ 2005-05-19  6:25 ` Jean Delvare
  9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

> +5V:       +3.38 V  (min = +11.48 V, max =  11.48 V)       ALARM
> Vcore:     +0.78 V  (min =  +3.02 V, max =   3.02 V)       ALARM
> +12V:      +6.04 V  (min = +17.00 V, max =  17.00 V)       ALARM
> 5VSB:      +2.47 V  (min =  +4.48 V, max =   5.47 V)       ALARM

I'm really disappointed by this. The configuration file I sent to you
was supposed to make these readings correct. They don't...

I suspect that your strange PWM behavior is having negative side effects
on the rest of the chip. Could you please do some basic checks and
confirm, or infirm, this theory. I'd hope that if you set all PWM to 0
again (which is the default value for you, don't ask why) the voltage
readings would be better.

If you can get better readings (and even if you can't, BTW) I'd
appreciate a new dump from the whole chip as performed by my script:
http://jdelvare.net1.nerim.net/sensors/pc87366/dump-pc87366.sh

Thanks.

-- 
Jean Delvare
http://khali.linux-fr.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* News about PC87366
  2005-05-19  6:24 News about PC87366 Jean Delvare
                   ` (4 preceding siblings ...)
  2005-05-19  6:25 ` Sandeep Mehta
@ 2005-05-19  6:25 ` Jean Delvare
  2005-05-19  6:25 ` Jean Delvare
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

> Well, it's been a while. I've been busy with schoolwork for the past
> weeks, sorry for not stating that earlier. I have been following your
> e-mails to me, and I would like to thank you for not only continuing
> driver development, but continuing to do specific work on my
> motherboard. That is just awesome. I will definitely have more time
> now that school is out.

No problem.

> First of all, the P4U-LA most closely resembles the appearance of my 
> board and the layout is probably exactly the same as mine. Thanks for 
> looking into this. I have looked into the P4B-MX before, and I know I 
> found something wrong with it when comparing it to mine. Right now, I 
> can say it is very similar to my board, but the layout is slightly 
> different. Do these boards have computation differences with the
> sensor chip?

They do. Rudolf Marek could extract information from the P4B-MX BIOS.
The thermistor computations are probably similar to yours, but the
voltage computations seem to differ (although the pin order would be the
same).

> It is awesome to see thermistor support and it appears to be
> functioning well. Temps 4, 5, and 6 all hover around 40, and my bios
> reports a single cpu temperature of 40 degrees (but it keeps rising
> steadily, while sensors doesn't seem to reflect this). I left my bios
> showing for a while, and it hit around 45 degrees celsius, but I have
> not seen such a temperature reported in sensors. I will experiment
> with changing the environment temperature this weekend and e-mail the
> results.

I'm not surprised. BIOSes usually have very poor idling loops (not
really idling if you see what I mean), while Linux (or any decent OS)
does actually idle. If you give some work to your CPU, you should see at
least one of the temperatures raise to 45 degrees C or more.

> By the way, what are all these new temperature values reporting?

I can't say. Most likely, one of the thermistors is located in the CPU
socket so it's a rough approximation of the CPU temp. The two others are
probably located as random locations on your motherboard.

If you have a hair dryer you may try to (reasonably) heat various
locations and see how the thermistor values change.

> Oddity: When I try to set limits in the new temp proc entries, the 
> changes are not reflected in sensors, or a number that is completely 
> different is shown, and I am guessing this is due to the computations
> in the sensors.conf file.
> For example: cat temp4 gives me 3.02 3.02 3.02 1.34 when I echo 34 63
> 23 -128 to temp4; sensors then reports
> temp4:       +36 C  (low  =   -24 C, high =   -24 C)   ALARM
> temp4_crit:
>              -24 C
> If I then echo 22 55 77 99 to temp 5, cat temp 5 shows 3.02 3.02 3.02 
> 1.22, and sensors reports -25 for low, high, and crit temperatures for
> both temps 4 and 5. Echoing 22 55 77 99 to temp6 produces the same 
> output when cat'ed, and then the values for all the highs, lows, and 
> crits change to -24.

Aha. You're doing the completely wrong thing here. Thermistor-based
temperatures are completely different from diode-based temperatures.
Thermistor-base temperatures are reported by the driver as a voltage.
The library converts it to an equivalent temperature. This is what the
forumlas in sensors.conf are for.

So if you want to specify a limit, set it in sensors.conf and use
sensors -s. BTW, I suggest that you don't try critical limits for
thermistor, they cannot work for the moment (and I suspect a design bug
that will make them definitively useless, actually).

The big values you were trying to write wouldn't make sense. You were
asking for "the temperature those voltage equivalent is 34V" while the
max voltage is 3.02V. So the driver does its best and picks 3.02V, which
in turns converts to -24 (or -25) degrees C.

The higher the temperature, the lower the voltage.

> I can work with temp3 perfectly, but now the first value echoed is
> the high temp and the second is the low temp. It used to be the other
> way around, so I'm not sure if this was intended (though it probably 
> shouldn't make any difference).

This is how it was meant to be, and I didn't remember it was wrong in
the first place. But certainly you have a better memory than me (nothing
to be proud of ;)).

> Hmm, okay just noticed something. With the voltages, if I echo a value
> that is close to the original values, then the new values do get
> updated in the file. So now I'm not sure if this is a bug, or just the
> fact I was echoing unnecessarily large numbers, and I'm guessing the
> latter....

Correct. See explanation above.

> As for the fans, pwm no longer functions (understandable, since my 
> motherboard isn't doing things conventionally anyway), but the speeds 
> still appear correctly (as if pwm was set to 255). The pwm files show
> 0 1, and echoing any new value has no effect.

I suspect side effects however, as said in my other reply. Would be nice
if you could investigate. I really suspect that your PWM outputs are not
properly wired and that activating them brings trouble all other the
place. Strange because your chip configuration would suggest that the
pins (1, 3 and 5) are really used for PWM. We didn't forcibly enable PWM
on your chip, did we? Again, I can't remember... :/

Thanks.

-- 
Jean Delvare
http://khali.linux-fr.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* News about PC87366
  2005-05-19  6:24 News about PC87366 Jean Delvare
                   ` (6 preceding siblings ...)
  2005-05-19  6:25 ` Jean Delvare
@ 2005-05-19  6:25 ` Sandeep Mehta
  2005-05-19  6:25 ` Sandeep Mehta
  2005-05-19  6:25 ` Jean Delvare
  9 siblings, 0 replies; 11+ messages in thread
From: Sandeep Mehta @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Unfortunately, I was unable to note any differences in the voltages 
after setting all pwm values back to 0. I also played around with it 
some more, but nothing changed in the output of sensors.

Strangely, all of a sudden, echoing new pwm values (0 means full speed 
and 255 is lowest) will change my fan speeds again and sensors will 
report overflows like it had been doing before. I have no clue what 
could have caused this sudden change, since I have not 
compiled/installed anything new or done anything different while booting 
my computer.
Also, I don't recall anytime when pwm might have been forceably enabled.

I played with changing min and max values in sensors.conf and all that 
works well.

sensors output (all pwm is 0, everything at default)
pc87366-isa-ecc0
Adapter: ISA adapter
+5V:       +3.46 V  (min =  +4.48 V, max =   5.47 V)       ALARM
Vcore:     +0.77 V  (min =  +3.02 V, max =   3.02 V)       ALARM
+12V:      +6.04 V  (min = +10.79 V, max =  13.18 V)       ALARM
5VSB:      +2.47 V  (min =  +4.48 V, max =   5.47 V)       ALARM
Vsb:       +3.36 V  (min =  +3.00 V, max =   3.60 V)
Vdd:       +3.32 V  (min =  +3.00 V, max =   3.60 V)
Vbat:      +0.00 V  (min =  +2.40 V, max =   3.02 V)
AVdd:      +3.32 V  (min =  +3.00 V, max =   3.60 V)
fan1:     3503 RPM  (min = 3000 RPM, div = 1)
fan2:     2162 RPM  (min = 2000 RPM, div = 2)
S-IO Temp:   +53 C  (low  =    +5 C, high =   +60 C)
S-IO Crit:   +70 C
temp4:       +36 C  (low  =    +0 C, high =   +70 C)
temp4_crit:
             -25 C
temp5:       +40 C  (low  =    +0 C, high =   +70 C)
temp5_crit:
             -25 C
temp6:       +36 C  (low  =    +0 C, high =   +70 C)
temp6_crit:
             -25 C

The chip dump is also attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pc87366-dump.tar.gz
Type: application/x-gzip
Size: 919 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040528/dc240574/pc87366-dump.tar.gz

^ permalink raw reply	[flat|nested] 11+ messages in thread

* News about PC87366
  2005-05-19  6:24 News about PC87366 Jean Delvare
                   ` (5 preceding siblings ...)
  2005-05-19  6:25 ` Jean Delvare
@ 2005-05-19  6:25 ` Jean Delvare
  2005-05-19  6:25 ` Sandeep Mehta
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

> Unfortunately, I was unable to note any differences in the voltages 
> after setting all pwm values back to 0. I also played around with it 
> some more, but nothing changed in the output of sensors.
> (...)
> The chip dump is also attached.

I read the dumps and actually the values are completely different from
what they were. Something changed in your chip, I don't know what... The
configuration registers didn't change.

If rebooting this box is an option, I'd suggest that you:
* (preferably cold) reboot
* dump
* load driver
* dump
* do sensors -s
* dump

And send all three dump sets. Maybe any of these steps will revert to
the old value or break readings again.

BTW, did you find out which of temp4-6 was the CPU temp? temp5 is higher
that the others in your latest output, this is an interesting hint.

Thanks.

-- 
Jean Delvare
http://khali.linux-fr.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* News about PC87366
  2005-05-19  6:24 News about PC87366 Jean Delvare
                   ` (2 preceding siblings ...)
  2005-05-19  6:25 ` Jean Delvare
@ 2005-05-19  6:25 ` Sandeep Mehta
  2005-05-19  6:25 ` Sandeep Mehta
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Sandeep Mehta @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Dumps of the chip are attached, as stated in the previous e-mail.

I believe that temp6 is my cpu temp; I ran a blow-drier at my cpu and 
temp5 and 6 showed changes... I then compiled Mplayer to give the cpu 
some work and temp6 changed from 39 to 48 degrees, and oddly, temp4 did 
the same. Temp 5 continued to hover between 40 and 43 degrees.

Also, I re-installed a clean slackware 9.1, and compiled a 2.4.26 kernel 
with the same config file as used in my last install. I rebooted, and 
the first thing I did was install i2c cvs and lm_sensors2 (snapshots I 
downloaded yesterday, June 2). When I put in the custom sensors.conf 
changes, the voltage values did fall in the range specified! And this 
worked all during that session. Stupidly though, I didn't do any dumps 
or even copy the output.... rebooted and now the sensors output are no 
different than before.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pc87366-dump1.tar.gz
Type: application/x-gzip
Size: 897 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040603/3f06bf5a/pc87366-dump1.tar.gz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pc87366-dump2.tar.gz
Type: application/x-gzip
Size: 897 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040603/3f06bf5a/pc87366-dump2.tar.gz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pc87366-dump3.tar.gz
Type: application/x-gzip
Size: 896 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040603/3f06bf5a/pc87366-dump3.tar.gz

^ permalink raw reply	[flat|nested] 11+ messages in thread

* News about PC87366
  2005-05-19  6:24 News about PC87366 Jean Delvare
  2005-05-19  6:24 ` Jean Delvare
  2005-05-19  6:24 ` Jean Delvare
@ 2005-05-19  6:25 ` Jean Delvare
  2005-05-19  6:25 ` Sandeep Mehta
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

> Dumps of the chip are attached, as stated in the previous e-mail.

In1, in5 and in6 are OK at steps 1 and 2 (after reboot and driver load,
respectively) and go off at step 3 (after sensors -s). For some reason,
in7, in8 and in10 are not affected. I'm not too sure about in2, it never
seemed to work.

So I am now very suspicious about sensors -s. One or more "set" lines of
the configuration file would be causing the trouble. What is even more
strange is that "sensors -s" didn't seem to have any other effect than
breaking these readings. I guess that this means that the limit setting
were preserved through the reboot process (didn't you do a _cold_
reboot?).

> I believe that temp6 is my cpu temp; I ran a blow-drier at my cpu and 
> temp5 and 6 showed changes... I then compiled Mplayer to give the cpu 
> some work and temp6 changed from 39 to 48 degrees, and oddly, temp4
> did the same. Temp 5 continued to hover between 40 and 43 degrees.

You analysis makes sense, temp6 would be the CPU temp then. The changes
on temp4 and temp5 strongly depend on where these thermistors are
located. maybe temp5 is located near the cpu socket so it was affected
by the first test, while temp4 is on a device that heats much when
compiling (the CPU is not the only part used when compiling, of course).
You may try using your blow-drier on random locations of your
motherboard and see if temp4 reacts, this may provide additional hints.

> Also, I re-installed a clean slackware 9.1, and compiled a 2.4.26
> kernel with the same config file as used in my last install. I
> rebooted, and the first thing I did was install i2c cvs and
> lm_sensors2 (snapshots I downloaded yesterday, June 2). When I put in
> the custom sensors.conf changes, the voltage values did fall in the
> range specified! And this worked all during that session. Stupidly
> though, I didn't do any dumps or even copy the output.... rebooted and
> now the sensors output are no different than before.

According to what I saw in the dumps, I'd guess that either the end of
the first session or the beginning of the second one included a "sensors
-s".

If I'm correct and "sensors -s" is really causing the problem, I'd be
very interested in you trying to locate which line precisely is doing
it. Start from a working system, comment out all set lines, then
uncomment then one after the other and run "sensors -s && sensors" each
time. I'd hope (sort of) that at some point the readings will go down
and we'll now which line breaks it all. I know it's a long process but I
have no other idea at the moment... Note that lines concerning
temp4-temp6 are good candidates since this is the last thing I added and
I don't think there was any problem before that.

Any additional data you could provide about what would cause the
readings to suddenly break is welcome, of course.

Thanks.

-- 
Jean Delvare
http://khali.linux-fr.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-05-19  6:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:24 News about PC87366 Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Sandeep Mehta
2005-05-19  6:25 ` Sandeep Mehta
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Sandeep Mehta
2005-05-19  6:25 ` Sandeep Mehta
2005-05-19  6:25 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.