brintos

brintos / linux-shallow public Read only

0
0
Text · 5.4 KiB · 38e30fb Raw
193 lines · plain
1Kernel driver f71882fg2======================3 4Supported chips:5 6  * Fintek F71808E7 8    Prefix: 'f71808e'9 10    Addresses scanned: none, address read from Super I/O config space11 12    Datasheet: Not public13 14  * Fintek F71808A15 16    Prefix: 'f71808a'17 18    Addresses scanned: none, address read from Super I/O config space19 20    Datasheet: Not public21 22  * Fintek F71858FG23 24    Prefix: 'f71858fg'25 26    Addresses scanned: none, address read from Super I/O config space27 28    Datasheet: Available from the Fintek website29 30  * Fintek F71862FG and F71863FG31 32    Prefix: 'f71862fg'33 34    Addresses scanned: none, address read from Super I/O config space35 36    Datasheet: Available from the Fintek website37 38  * Fintek F71869F and F71869E39 40    Prefix: 'f71869'41 42    Addresses scanned: none, address read from Super I/O config space43 44    Datasheet: Available from the Fintek website45 46  * Fintek F71869A47 48    Prefix: 'f71869a'49 50    Addresses scanned: none, address read from Super I/O config space51 52    Datasheet: Not public53 54  * Fintek F71882FG and F71883FG55 56    Prefix: 'f71882fg'57 58    Addresses scanned: none, address read from Super I/O config space59 60    Datasheet: Available from the Fintek website61 62  * Fintek F71889FG63 64    Prefix: 'f71889fg'65 66    Addresses scanned: none, address read from Super I/O config space67 68    Datasheet: Available from the Fintek website69 70  * Fintek F71889ED71 72    Prefix: 'f71889ed'73 74    Addresses scanned: none, address read from Super I/O config space75 76    Datasheet: Should become available on the Fintek website soon77 78  * Fintek F71889A79 80    Prefix: 'f71889a'81 82    Addresses scanned: none, address read from Super I/O config space83 84    Datasheet: Should become available on the Fintek website soon85 86  * Fintek F800087 88    Prefix: 'f8000'89 90    Addresses scanned: none, address read from Super I/O config space91 92    Datasheet: Not public93 94  * Fintek F81801U95 96    Prefix: 'f71889fg'97 98    Addresses scanned: none, address read from Super I/O config space99 100    Datasheet: Not public101 102    Note:103	  This is the 64-pin variant of the F71889FG, they have the104	  same device ID and are fully compatible as far as hardware105	  monitoring is concerned.106 107  * Fintek F81865F108 109    Prefix: 'f81865f'110 111    Addresses scanned: none, address read from Super I/O config space112 113    Datasheet: Available from the Fintek website114 115Author: Hans de Goede <hdegoede@redhat.com>116 117 118Description119-----------120 121Fintek F718xx/F8000 Super I/O chips include complete hardware monitoring122capabilities. They can monitor up to 9 voltages, 4 fans and 3 temperature123sensors.124 125These chips also have fan controlling features, using either DC or PWM, in126three different modes (one manual, two automatic).127 128The driver assumes that no more than one chip is present, which seems129reasonable.130 131 132Monitoring133----------134 135The Voltage, Fan and Temperature Monitoring uses the standard sysfs136interface as documented in sysfs-interface, without any exceptions.137 138 139Fan Control140-----------141 142Both PWM (pulse-width modulation) and DC fan speed control methods are143supported. The right one to use depends on external circuitry on the144motherboard, so the driver assumes that the BIOS set the method145properly.146 147Note that the lowest numbered temperature zone trip point corresponds to148the border between the highest and one but highest temperature zones, and149vica versa. So the temperature zone trip points 1-4 (or 1-2) go from high temp150to low temp! This is how things are implemented in the IC, and the driver151mimics this.152 153There are 2 modes to specify the speed of the fan, PWM duty cycle (or DC154voltage) mode, where 0-100% duty cycle (0-100% of 12V) is specified. And RPM155mode where the actual RPM of the fan (as measured) is controlled and the speed156gets specified as 0-100% of the fan#_full_speed file.157 158Since both modes work in a 0-100% (mapped to 0-255) scale, there isn't a159whole lot of a difference when modifying fan control settings. The only160important difference is that in RPM mode the 0-100% controls the fan speed161between 0-100% of fan#_full_speed. It is assumed that if the BIOS programs162RPM mode, it will also set fan#_full_speed properly, if it does not then163fan control will not work properly, unless you set a sane fan#_full_speed164value yourself.165 166Switching between these modes requires re-initializing a whole bunch of167registers, so the mode which the BIOS has set is kept. The mode is168printed when loading the driver.169 170Three different fan control modes are supported; the mode number is written171to the pwm#_enable file. Note that not all modes are supported on all172chips, and some modes may only be available in RPM / PWM mode.173Writing an unsupported mode will result in an invalid parameter error.174 175* 1: Manual mode176  You ask for a specific PWM duty cycle / DC voltage or a specific % of177  fan#_full_speed by writing to the pwm# file. This mode is only178  available on the F71858FG / F8000 if the fan channel is in RPM mode.179 180* 2: Normal auto mode181  You can define a number of temperature/fan speed trip points, which % the182  fan should run at at this temp and which temp a fan should follow using the183  standard sysfs interface. The number and type of trip points is chip184  depended, see which files are available in sysfs.185  Fan/PWM channel 3 of the F8000 is always in this mode!186 187* 3: Thermostat mode (Only available on the F8000 when in duty cycle mode)188  The fan speed is regulated to keep the temp the fan is mapped to between189  temp#_auto_point2_temp and temp#_auto_point3_temp.190 191All of the automatic modes require that pwm1 corresponds to fan1, pwm2 to192fan2 and pwm3 to fan3.193