Skip to contentSkip to conversation

Ticket 1834 Update

DISCUSSION Frank Hellmann 3 participants 11 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi!

The chip on the MSI KT8 Neo is actually a Winbond w83697hf and is not detected correctly during sensors-detect.

I loaded the module with modprobe w83781d force_w83697hf , but this
didn't change the PWM problem.

pwmconfig can't detect a usable a correlation:

Testing pwm control 1-0290/fan1_pwm ...
1-0290/fan1_input ... speed was 3229 now 0
It appears that fan 1-0290/fan1_input
is controlled by pwm 1-0290/fan1_pwm
Would you like to generate a detailed correlation (y)?

    PWM 255 FAN 3229
    PWM 240 FAN 3214
    PWM 225 FAN 3214
    PWM 210 FAN 3229
    PWM 195 FAN 3229
    PWM 180 FAN 3229
    PWM 165 FAN 3229
    PWM 150 FAN 3229
    PWM 135 FAN 3229
    PWM 120 FAN 3229
    PWM 105 FAN 3214
    PWM 90 FAN 3214
    PWM 75 FAN 3229
    PWM 60 FAN 3214
    PWM 45 FAN 3214
    PWM 30 FAN 3214
    PWM 15 FAN 3169
    PWM 0 FAN 0
    Fan Stopped at PWM = 0


    Thanks,
                   Frank...
#1 lore raw
Quoted 2 lines

The chip on the MSI KT8 Neo is actually a Winbond w83697hf and is not detected correctly during sensors-detect.

What was sensors-detect detecting? Please attach the complete log.

Quoted 18 lines

pwmconfig can't detect a usable a correlation:

Testing pwm control 1-0290/fan1_pwm ...
1-0290/fan1_input ... speed was 3229 now 0
It appears that fan 1-0290/fan1_input
is controlled by pwm 1-0290/fan1_pwm
Would you like to generate a detailed correlation (y)?

    PWM 255 FAN 3229
    PWM 240 FAN 3214
    PWM 225 FAN 3214
    PWM 210 FAN 3229
    PWM 195 FAN 3229
    PWM 180 FAN 3229
    PWM 165 FAN 3229
    PWM 150 FAN 3229
    PWM 135 FAN 3229
    PWM 120 FAN 3229
    PWM 105 FAN 3214
Quoted 8 lines
    PWM 90 FAN 3214
    PWM 75 FAN 3229
    PWM 60 FAN 3214
    PWM 45 FAN 3214
    PWM 30 FAN 3214
    PWM 15 FAN 3169
    PWM 0 FAN 0
    Fan Stopped at PWM = 0

This is admittedly a strange behavior, I can't remember of a similar report. Maybe you need to adjust the PWM clock. This is done by register 0 of the chip (which you can write to by running "isaset 0x295 0x296 0 <value>" as root). Default value is 1 and results in a 125kHz clock. You can increase the value up to 127, resulting frequency being 125kHz/value. If you set the MSB to 1, the base clock changes from 125kHz to 1MHz (and again you can divide it by changing the 7 other bits). I'd suggest you try this

I doubt it'll really help, but if you have some spare time and really want it to work, you may want to give it a try.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#2 lore raw
In reply to Frank Hellmann
Quoted 10 lines
Quoted 4 lines
Quoted 2 lines

The chip on the MSI KT8 Neo is actually a Winbond w83697hf and is not detected correctly during sensors-detect.

What was sensors-detect detecting? Please attach the complete log.

Log is attached...
(...)
Probing for `Winbond W83697HF Super IO Sensors'
Success... found at address 0x0290
(...)

Well it looks like a correct detection to me.

Also, you seem to have an unrecognized I2C/SMBus device at address 0x2f. Could you please provide a dump of it (i2cdump 0 0x2f or i2cdump 1 0x2f after loading i2c-viapro, depending on the bus number your SMBus received)?

Quoted 23 lines
Quoted 1 line

(...) Maybe you need to adjust the PWM clock. (...)

Actually this works great! I have set it to 25 and it scales good now.

isaset 0x295 0x296 0 25

Here the pwmconfig output:

Testing pwm control 1-0290/fan1_pwm ...
1-0290/fan1_input ... speed was 2777 now 0
It appears that fan 1-0290/fan1_input
is controlled by pwm 1-0290/fan1_pwm
Would you like to generate a detailed correlation (y)?

    PWM 255 FAN 3245
    PWM 240 FAN 3245
    PWM 225 FAN 3214
    PWM 210 FAN 3199
    PWM 195 FAN 3183
    PWM 180 FAN 3154
    PWM 165 FAN 3139
    PWM 150 FAN 3110
    PWM 135 FAN 3082
    PWM 120 FAN 3082
Quoted 8 lines
    PWM 105 FAN 3040
    PWM 90 FAN 3013
    PWM 75 FAN 2960
    PWM 60 FAN 2922
    PWM 45 FAN 2824
    PWM 30 FAN 2755
    PWM 15 FAN 0
    Fan Stopped at PWM = 15

Wow. Glad it work, I didn't really expected it to. Are you using some unconventional fan? You might want to try different clock values, since the speed curve is still not perfect.

Quoted 7 lines

What would be the "nicest" way of setting these values? I would suggest putting it into /etc/modules.conf:

post-install w83627hf /usr/sbin/isaset -y 0x295 0x296 0 25 > /dev/null

             2> /dev/null

Ok? Or is there a better/safer way?

The driver doesn't need to be loaded for it to work (and actually it would probably be better to run isaset before it is) so I would do a pre-install. Alternatively you can run the command from any init script, it doesn't really matter.

In cas you need it, the register for PWM 2 is 0x02 and works exactly the same.

I'll update and close ticket #1384 now.

Quoted 1 line

Thanks a lot. Cheers,

You're welcome :)

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

Hi Jean!

Quoted 9 lines · Jean Delvare
Quoted 4 lines

The chip on the MSI KT8 Neo is actually a Winbond w83697hf and is not detected correctly during sensors-detect.

What was sensors-detect detecting? Please attach the complete log.

Log is attached...

Quoted 38 lines
Quoted 18 lines

pwmconfig can't detect a usable a correlation:

Testing pwm control 1-0290/fan1_pwm ...
1-0290/fan1_input ... speed was 3229 now 0
It appears that fan 1-0290/fan1_input
is controlled by pwm 1-0290/fan1_pwm
Would you like to generate a detailed correlation (y)?
PWM 255 FAN 3229
PWM 240 FAN 3214
PWM 225 FAN 3214
PWM 210 FAN 3229
PWM 195 FAN 3229
PWM 180 FAN 3229
PWM 165 FAN 3229
PWM 150 FAN 3229
PWM 135 FAN 3229
PWM 120 FAN 3229
PWM 105 FAN 3214

Quoted 10 lines

PWM 90 FAN 3214
PWM 75 FAN 3229
PWM 60 FAN 3214
PWM 45 FAN 3214
PWM 30 FAN 3214
PWM 15 FAN 3169
PWM 0 FAN 0
Fan Stopped at PWM = 0

This is admittedly a strange behavior, I can't remember of a similar report. Maybe you need to adjust the PWM clock. This is done by register 0 of the chip (which you can write to by running "isaset 0x295 0x296 0 <value>" as root). Default value is 1 and results in a 125kHz clock. You can increase the value up to 127, resulting frequency being 125kHz/value. If you set the MSB to 1, the base clock changes from 125kHz to 1MHz (and again you can divide it by changing the 7 other bits). I'd suggest you try this

Quoted 5 lines

I doubt it'll really help, but if you have some spare time and really want it to work, you may want to give it a try.

Actually this works great! I have set it to 25 and it scales good now.

isaset 0x295 0x296 0 25

Here the pwmconfig output:

Testing pwm control 1-0290/fan1_pwm ...
1-0290/fan1_input ... speed was 2777 now 0
It appears that fan 1-0290/fan1_input
is controlled by pwm 1-0290/fan1_pwm
Would you like to generate a detailed correlation (y)?

    PWM 255 FAN 3245
    PWM 240 FAN 3245
    PWM 225 FAN 3214
    PWM 210 FAN 3199
    PWM 195 FAN 3183
    PWM 180 FAN 3154
    PWM 165 FAN 3139
    PWM 150 FAN 3110
    PWM 135 FAN 3082
    PWM 120 FAN 3082
    PWM 105 FAN 3040
    PWM 90 FAN 3013
    PWM 75 FAN 2960
    PWM 60 FAN 2922
    PWM 45 FAN 2824
    PWM 30 FAN 2755
    PWM 15 FAN 0
    Fan Stopped at PWM = 15

What would be the "nicest" way of setting these values? I would suggest putting it into /etc/modules.conf:

post-install w83627hf /usr/sbin/isaset -y 0x295 0x296 0 25 > /dev/null 2> /dev/null

Ok? Or is there a better/safer way?

Thanks a lot. Cheers,

                Frank...

-------------- next part --------------

sandman:/home/frank# sensors-detect

This program will help you determine which I2C/SMBus modules you need to load to use lm_sensors most effectively. You need to have i2c and lm_sensors installed before running this program.
Also, you need to be `root', or at least have access to the /dev/i2c-* files, for most things.
If you have patched your kernel and have some drivers built in, you can safely answer NO if asked to load some modules. In this case, things may seem a bit confusing, but they will still work.

It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing.

IF THIS IS AN IBM THINKPAD, PRESS CTRL-C NOW!
IBM Thinkpads have a severely broken i2c/SMBus implementation, just scanning the bus will break your Thinkpad forever!
If this is a non-Thinkpad IBM, we still suggest you press CTRL+C. We have had users reporting system breakage on other IBM systems as well.

We can start with probing for (PCI) I2C or SMBus adapters.
You do not need any special privileges for this.
Do you want to probe now? (YES/no):
Probing for PCI bus adapters...
Use driver `i2c-viapro' for device 00:11.0: VIA Technologies VT8237 South BridgeProbe succesfully concluded.

We will now try to load each adapter module in turn. Module `i2c-viapro' already loaded.
If you have undetectable or unsupported adapters, you can have them scanned by manually loading the modules before running this script.

To continue, we need module `i2c-dev' to be loaded. If it is built-in into your kernel, you can safely skip this. i2c-dev is not loaded. Do you want to load it now? (YES/no):
Module loaded succesfully.

We are now going to do the adapter probings. Some adapters may hang halfway through; we can't really help that. Also, some chips will be double detected; we choose the one with the highest confidence value in that case. If you found that the adapter hung after probing a certain address, you can specify that address to remain unprobed. That often
includes address 0x69 (clock chip).

Next adapter: SMBus Via Pro adapter at 0400
Do you want to scan it? (YES/no/selectively):
Client found at address 0x2f
Probing for `National Semiconductor LM78'... Failed!
Probing for `National Semiconductor LM78-J'... Failed!
Probing for `National Semiconductor LM79'... Failed!
Probing for `National Semiconductor LM80'... Failed!
Probing for `Winbond W83781D'... Failed!
Probing for `Winbond W83782D'... Failed!
Probing for `Winbond W83791D'... Failed!
Probing for `Winbond W83792D'... Failed!
Probing for `Winbond W83627HF'... Failed!
Probing for `Asus AS99127F (rev.1)'... Failed!
Probing for `Asus AS99127F (rev.2)'... Failed!
Probing for `Asus ASB100 Bach'... Failed!
Probing for `Analog Devices ADM9240'... Failed!
Probing for `Dallas Semiconductor DS1780'... Failed!
Probing for `National Semiconductor LM81'... Failed!
Probing for `Analog Devices ADM1029'... Failed!
Probing for `ITE IT8705F / IT8712F / SiS 950'... Failed!
Client at address 0x50 can not be probed - unload all client drivers first! Client at address 0x51 can not be probed - unload all client drivers first! Client found at address 0x69
Client found at address 0x6a

Some chips are also accessible through the ISA bus. ISA probes are typically a bit more dangerous, as we have to write to I/O ports to do this. This is usually safe though.

Do you want to scan the ISA bus? (YES/no):
Probing for `National Semiconductor LM78'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM78-J'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM79'
Trying address 0x0290... Failed!
Probing for `Winbond W83781D'
Trying address 0x0290... Failed!
Probing for `Winbond W83782D'
Trying address 0x0290... Failed!
Probing for `Winbond W83627HF'
Trying address 0x0290... Failed!
Probing for `Winbond W83697HF'
Trying address 0x0290... Success!

    (confidence 8, driver `w83781d')

Probing for `Silicon Integrated Systems SIS5595'
Trying general detect... Failed!
Probing for `VIA Technologies VT82C686 Integrated Sensors'
Trying general detect... Failed!
Probing for `VIA Technologies VT8231 Integrated Sensors'
Trying general detect... Failed!
Probing for `ITE IT8705F / IT8712F / SiS 950'
Trying address 0x0290... Failed!
Probing for `IPMI BMC KCS'
Trying address 0x0ca0... Failed!
Probing for `IPMI BMC SMIC'
Trying address 0x0ca8... Failed!

Some Super I/O chips may also contain sensors. Super I/O probes are typically a bit more dangerous, as we have to write to I/O ports to do this. This is usually safe though.

Do you want to scan for Super I/O sensors? (YES/no):
Probing for `ITE 8702F Super IO Sensors'
Failed! (skipping family)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (skipping family)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (skipping family)
Probing for `VT1211 Super IO Sensors'
Failed! (0x60)
Probing for `Winbond W83627HF Super IO Sensors'
Failed! (0x60)
Probing for `Winbond W83627THF Super IO Sensors'
Failed! (0x60)
Probing for `Winbond W83637HF Super IO Sensors'
Failed! (0x60)
Probing for `Winbond W83697HF Super IO Sensors'
Success... found at address 0x0290
Probing for `Winbond W83697SF/UF Super IO PWM'
Failed! (0x60)
Probing for `Winbond W83L517D Super IO'
Failed! (0x60)

Do you want to scan for secondary Super I/O sensors? (YES/no):
Probing for `ITE 8702F Super IO Sensors'
Failed! (skipping family)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (skipping family)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (skipping family)
Probing for `VT1211 Super IO Sensors'
Failed! (skipping family)

Now follows a summary of the probes I have just done. Just press ENTER to continue:

Driver `w83781d' (may not be inserted):
Misdetects:
* ISA bus address 0x0290 (Busdriver `i2c-isa')

    Chip `Winbond W83697HF' (confidence: 8)

Driver `w83627hf' (should be inserted):
Detects correctly:
* ISA bus address 0x0290 (Busdriver i2c-isa') Chip Winbond W83697HF Super IO Sensors' (confidence: 9)

I will now generate the commands needed to load the I2C modules. Sometimes, a chip is available both through the ISA bus and an I2C bus. ISA bus access is faster, but you need to load an additional driver module for it. If you have the choice, do you want to use the ISA bus or the I2C/SMBus (ISA/smbus)?

To make the sensors modules behave correctly, add these lines to /etc/modules:

#----cut here----
# I2C adapter drivers
i2c-isa
# I2C chip drivers
w83627hf
#----cut here----

Do you wan't to add these lines to /etc/modules automatically? (yes/NO)

#4 lore raw
In reply to Frank Hellmann
Quoted 2 lines

But 125 kHz is a bad default (and my math and datasheet show a default of 24 MHz / 256 = 93.75 kHz... Khali where did you get 125 kHz?)

From the datasheet !

Power on default [7:0] = 0000,0001 b
Bit Name Read/Write Description
7 PWM_CLK_SEL2 Read/Write PWM 2 Input Clock Select. This bit select Fan 2 input

                                            clock to pre-scale divider.
                                            0: 1 MHz
                                            1: 125 KHz

6-0 PRE_SCALE2[6:0] Read/Write Fan 2 Input Clock Pre-Scale. The divider of input
clock is the number defined by pre-scale. Thus, writing 0 transfers the input clock directly to counter. The maximum divider is 128 (7Fh).
01h : divider is 1
02h : divider is 2
03h : divider is 3

PWM frequency = (Input Clock / Pre-scale) / 256

Now it seems that I read it wrong, the default would be 1MHz not 125kHz.

Where do YOU get your 93.75 kHz from? :)

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

I'm quite surprised that changing the PWM clock worked, at least sortof... (it only slowed the fan down 15% max even after the fix)

But 125 kHz is a bad default (and my math and datasheet show a default of 24 MHz / 256 = 93.75 kHz... Khali where did you get 125 kHz?)
A typical PWM requirement for a fan is 20 - 50 kHz.
It may be worth enhancing the driver to set the speed lower if the BIOS doesn't.

Quoted 57 lines · Jean Delvare
Quoted 17 lines

Here the pwmconfig output:

Testing pwm control 1-0290/fan1_pwm ...
1-0290/fan1_input ... speed was 2777 now 0
It appears that fan 1-0290/fan1_input
is controlled by pwm 1-0290/fan1_pwm
Would you like to generate a detailed correlation (y)?
PWM 255 FAN 3245
PWM 240 FAN 3245
PWM 225 FAN 3214
PWM 210 FAN 3199
PWM 195 FAN 3183
PWM 180 FAN 3154
PWM 165 FAN 3139
PWM 150 FAN 3110
PWM 135 FAN 3082
PWM 120 FAN 3082

Quoted 8 lines

PWM 105 FAN 3040
PWM 90 FAN 3013
PWM 75 FAN 2960
PWM 60 FAN 2922
PWM 45 FAN 2824
PWM 30 FAN 2755
PWM 15 FAN 0
Fan Stopped at PWM = 15

Wow. Glad it work, I didn't really expected it to. Are you using some unconventional fan? You might want to try different clock values, since the speed curve is still not perfect.

Quoted 7 lines

What would be the "nicest" way of setting these values? I would suggest putting it into /etc/modules.conf:

post-install w83627hf /usr/sbin/isaset -y 0x295 0x296 0 25 > /dev/null

            2> /dev/null

Ok? Or is there a better/safer way?

The driver doesn't need to be loaded for it to work (and actually it would probably be better to run isaset before it is) so I would do a pre-install. Alternatively you can run the command from any init script, it doesn't really matter.

In cas you need it, the register for PWM 2 is 0x02 and works exactly the same.

I'll update and close ticket #1384 now.

Quoted 1 line

Thanks a lot. Cheers,

You're welcome :)

#6 lore raw
In reply to Frank Hellmann

Hi Mark!

Just a quick update. I am currently using the w83627hf module and append the force_w83697hf option.
After setting the PWM clock to 64 I get these pwmconfig correlation:

It appears that fan 1-0290/fan1_input
is controlled by pwm 1-0290/fan1_pwm
Would you like to generate a detailed correlation (y)? y

    PWM 255 FAN 4470
    PWM 240 FAN 4440
    PWM 225 FAN 4470
    PWM 210 FAN 4383
    PWM 195 FAN 4354
    PWM 180 FAN 4245
    PWM 165 FAN 4166
    PWM 150 FAN 4090
    PWM 135 FAN 4017
    PWM 120 FAN 4017
    PWM 105 FAN 3970
    PWM 90 FAN 3970
    PWM 75 FAN 3879
    PWM 60 FAN 3750
    PWM 45 FAN 3515
    PWM 30 FAN 3358
    PWM 15 FAN 3040
    PWM 0 FAN 0
    Fan Stopped at PWM = 0

It seems that this setting gives a much better (and quieter) result. Setting the fan1_pwm to 12 gets it down to ~2650RPM.

Also there seems to be an unknown i2c device on this board (MSI KT8 NEO
- AMD64bit in pure 64bit mode). There are two additional fan connectors (four in all) on this board and I guess it could be a controller for these fans. Here the i2cdump:

sandman:/home/frank# i2cdump 0 0x2f
No size specified (using byte-data access)
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0, address 0x2f, mode byte
Continue? [Y/n]
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: 12 0f 10 01 07 00 ff ff ff ff ff ff ff ff ff ff    ?????...........
10: ff ff ff ff 14 62 02 00 ff ff ff ff ff ff ff ff    ....?b?.........
20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
          Cheers,
                         Frank...
Quoted 78 lines · Mark Studebaker

I'm quite surprised that changing the PWM clock worked, at least sortof...
(it only slowed the fan down 15% max even after the fix)

But 125 kHz is a bad default (and my math and datasheet show a default of 24 MHz / 256 = 93.75 kHz...
Khali where did you get 125 kHz?)
A typical PWM requirement for a fan is 20 - 50 kHz.
It may be worth enhancing the driver to set the speed lower if the BIOS doesn't.

Quoted 60 lines · Jean Delvare
Quoted 17 lines

Here the pwmconfig output:

Testing pwm control 1-0290/fan1_pwm ...
1-0290/fan1_input ... speed was 2777 now 0
It appears that fan 1-0290/fan1_input
is controlled by pwm 1-0290/fan1_pwm
Would you like to generate a detailed correlation (y)?
PWM 255 FAN 3245
PWM 240 FAN 3245
PWM 225 FAN 3214
PWM 210 FAN 3199
PWM 195 FAN 3183
PWM 180 FAN 3154
PWM 165 FAN 3139
PWM 150 FAN 3110
PWM 135 FAN 3082
PWM 120 FAN 3082

Quoted 8 lines

PWM 105 FAN 3040
PWM 90 FAN 3013
PWM 75 FAN 2960
PWM 60 FAN 2922
PWM 45 FAN 2824
PWM 30 FAN 2755
PWM 15 FAN 0
Fan Stopped at PWM = 15

Wow. Glad it work, I didn't really expected it to. Are you using some unconventional fan? You might want to try different clock values, since the speed curve is still not perfect.

Quoted 7 lines

What would be the "nicest" way of setting these values? I would suggest putting it into /etc/modules.conf:

post-install w83627hf /usr/sbin/isaset -y 0x295 0x296 0 25 > /dev/null

            2> /dev/null

Ok? Or is there a better/safer way?

The driver doesn't need to be loaded for it to work (and actually it would probably be better to run isaset before it is) so I would do a pre-install. Alternatively you can run the command from any init script, it doesn't really matter.

In cas you need it, the register for PWM 2 is 0x02 and works exactly the same.

I'll update and close ticket #1384 now.

Quoted 1 line

Thanks a lot. Cheers,

You're welcome :)

#7 lore raw
In reply to Frank Hellmann

For fan 1,
my version of the datasheet shows 24 MHz for bit7 = 0. (24 MHz / 1) / 256 = 93.75 kHz

fan 2 matches what you have below.
go figure...

Quoted 27 lines · Jean Delvare
Quoted 5 lines

But 125 kHz is a bad default (and my math and datasheet show a default of 24 MHz / 256 = 93.75 kHz... Khali where did you get 125 kHz?)

From the datasheet !

Power on default [7:0] = 0000,0001 b
Bit Name Read/Write Description
7 PWM_CLK_SEL2 Read/Write PWM 2 Input Clock Select. This bit select Fan 2 input

                                            clock to pre-scale divider.
                                            0: 1 MHz
                                            1: 125 KHz

6-0 PRE_SCALE2[6:0] Read/Write Fan 2 Input Clock Pre-Scale. The divider of input
clock is the number defined by pre-scale. Thus, writing 0 transfers the input clock directly to counter. The maximum divider is 128 (7Fh).
01h : divider is 1
02h : divider is 2
03h : divider is 3

PWM frequency = (Input Clock / Pre-scale) / 256

Now it seems that I read it wrong, the default would be 1MHz not 125kHz.

Where do YOU get your 93.75 kHz from? :)

#8 lore raw
In reply to Frank Hellmann

I don't know what the chip at 2f could be; if sensors-detect doesn't identify it then you may be able to look at your board and search for likely candidates with google.

Quoted 35 lines · Frank Hellmann

Hi Mark!

Also there seems to be an unknown i2c device on this board (MSI KT8 NEO
- AMD64bit in pure 64bit mode). There are two additional fan connectors (four in all) on this board and I guess it could be a controller for these fans. Here the i2cdump:

sandman:/home/frank# i2cdump 0 0x2f
No size specified (using byte-data access)
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0, address 0x2f, mode byte
Continue? [Y/n]
    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: 12 0f 10 01 07 00 ff ff ff ff ff ff ff ff ff ff    ?????...........
10: ff ff ff ff 14 62 02 00 ff ff ff ff ff ff ff ff    ....?b?.........
20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
         Cheers,
                        Frank...
#9 lore raw
In reply to Frank Hellmann
Quoted 4 lines

I don't know what the chip at 2f could be; if sensors-detect doesn't identify it then you may be able to look at your board and search for likely candidates with google.

No idea either. All I can say is that it doesn't look like a recent hardware monitoring device (no identification register). It also doesn't have enough registers to be a full-featured hardware monitoring chip, but too many to be a simple I2C multiplexer or I/O expander.

You might dump it again from times to times and see if any value changes. If this is a hardware monitoring chip then some values have to slightly change between dumps.

--
Jean Delvare

#10 lore raw
In reply to Frank Hellmann

Hi Mark,

Quoted 6 lines

For fan 1,
my version of the datasheet shows 24 MHz for bit7 = 0. (24 MHz / 1) / 256 = 93.75 kHz

fan 2 matches what you have below.
go figure...

Correct. I had forgotten to divide by 256 anyway so my value wasn't correct.

24MHz|180kHz makes much more sense since 24Mhz/127 (max pre-scale) is 188kHz i.e. right above 180kHz. 1Mhz|125kHz doesn't look as intreresting since both clocks cover almost the same range of frequencies. I'd say that 24Mhz|180kHz is more likely to be correct, Winbond must have corrected the values in the datasheet for PWM1 and forgotten to do the same for PWM2.

Just a guess though.

Thanks,
Jean