| 9 | | Within each LM78 directory, you can find the following files: |
| 10 | | * alarms (LM78_SYSCTL_ALARMS) |
| 11 | | A number which indicates which alarms are on. An alarm gets triggered when |
| 12 | | some limit has been crossed. Even if the cause of the alarm is over, it |
| 13 | | stays triggered until it has been read at least once. Because the LM78 |
| 14 | | values are updated at most once every 1.5 seconds, this means the alarm |
| 15 | | can be read several times before it is erased. |
| 16 | | This file can not be written to. |
| 17 | | The number is the logical OR of the following components: |
| 18 | | - LM78_ALARM_IN[0-6] |
| 19 | | Gets triggered when the corresponding in value is higher or lower than |
| 20 | | its limits |
| 21 | | - LM78_ALARM_FAN[1-3] |
| 22 | | Gets triggered when the corresponding fan value is lower than its limit |
| 23 | | - LM78_ALARM_TEMP |
| 24 | | Gets triggered when the temp value has crossed its limits. See the |
| 25 | | description under temp. |
| 26 | | - LM78_ALARM_BTI |
| 27 | | Gets triggered if some other chip which is connected to it has crossed |
| 28 | | its limits. Usually, it is connected to all LM75 chips; if at least one |
| 29 | | crosses its limits, this bit gets set. |
| 30 | | - LM78_ALARM_CHAS |
| 31 | | Gets triggered if someone opens your computer case (if connected at all). |
| 32 | | - LM78_ALARM_FIFO |
| 33 | | Gets triggered if something is very wrong with our LM78 driver. Ignore. |
| 34 | | - LM78_ALARM_SMI_IN |
| 35 | | Gets triggered if some other chip has triggered a SMI interrupt. Can be |
| 36 | | ignored. |
| 37 | | If accessed through sysctl, this value is a long. |
| 38 | | * fan[1-3] (LM78_SYSCTL_FAN[1-3]) |
| 39 | | A list of two numbers. The first is the minimum fan rotation limit; the |
| 40 | | second is the current fan rotation speed. Both are in RPM (rotation per |
| 41 | | minute). An alarm is triggered if the rotation speed drops below the |
| 42 | | limit. The first value can be changed. Not all RPM values can accurately |
| 43 | | be represented, so some rounding is done. |
| 44 | | If accessed through sysctl, this is a list of longs. |
| 45 | | * fan_div (LM78_SYSCTL_FAN_DIV) |
| 46 | | A list of three numbers, one for each fan. Each number can be either 1, 2, |
| 47 | | 4 or 8. It is the internal scaling factor used for the FAN rotations. If |
| 48 | | you change this number, the FAN readings get more or less detailed, but |
| 49 | | the range in which they can be read too. Higher numbers give better |
| 50 | | resolution, but less range. The first two numbers can be changed, the |
| 51 | | third not. |
| 52 | | If accessed through sysctl, this is a list of longs. |
| 53 | | * in[0-6] (LM78_SYSCTL_IN[0-6]) |
| 54 | | A list of three numbers. The first is the minimum limit, the second is the |
| 55 | | maximum limit, and the third is the current value. If you have a weird |
| 56 | | mainboard, all values may be off because some other scaling factor has |
| 57 | | to be used; user-space programs should compensate for this. Note that |
| 58 | | minimum means 'closest to zero'; so if the normal value equals -10, a |
| 59 | | minimum could equal -9, and a maximum -11. IN0 and IN1 reflect core |
| 60 | | voltages; they are by default set from the vid values, or set to 2.80V |
| 61 | | if the vid lines seem to be unconnected. IN2 should equal +3.30V, |
| 62 | | IN3 +5.00V, IN4 +12.00V, IN5 -12.00V and IN6 -5V. Not all voltage values |
| 63 | | can be accurately represented, so some rounding is done. |
| 64 | | The first two numbers can be changed, the third not. |
| 65 | | If accessed through sysctl, this is a list of longs, each being the voltage |
| 66 | | times 100. |
| 67 | | * temp |
| 68 | | A list of three numbers. The first number is the Overtemperature Shutdown |
| 69 | | value; the second is the Hysteris value and the third number is the |
| 70 | | current value. The first two values can be modified. All values are in |
| 71 | | degrees Celcius. An alarm is issued when the temperature first gets above |
| 72 | | the Overtemperature Shutdown value; no more alarms are issued until the |
| 73 | | temperature gets below the Hysteris value, at which moment another alarm |
| 74 | | is issued, and the state is reset. A more useful behaviour can be found |
| 75 | | by setting the Hysteris value to +127 degrees Celcius; in this case, |
| 76 | | alarms are issued during all the time when the actual temperature is |
| 77 | | above the Overtemperature Shutdown value. |
| 78 | | The first two numbers can be changed, the third not. |
| 79 | | If accessed through sysctl, this is a list of longs, each being the |
| 80 | | temperature in degrees Celcius times 10. |
| 81 | | * vid |
| 82 | | The core voltage value (the voltage level your processor should work with), |
| 83 | | in volts. This is the value IN0 and IN1 are initialized to. If unconnected, |
| 84 | | it usually reads 3.50V. |
| 85 | | This number can not be changed. |
| 86 | | If accessed through sysctl, this is a long, being the voltage times 100. |
| | 7 | This driver implements support for the National Semiconductor LM78, LM78-J |
| | 8 | and LM79. They are described as `Microprocessor System Hardware Monitors'. |
| 88 | | The data for each LM78 is updated each 1.5 seconds, but only if it is actually |
| 89 | | read. |
| | 10 | There is almost no difference between these three chips. Functionally, the |
| | 11 | LM78 and LM78-J are exactly identical. The LM79 has one more VID line, |
| | 12 | which is used to report the lower voltages newer Pentium processors use. |
| | 13 | From now on, LM7* means either of these three types. |
| | 14 | |
| | 15 | The LM7* implements one temperatur sensor, three FAN rotation speed sensors, |
| | 16 | seven voltage sensors, VID lines, alarms, and some miscellaneous stuff. |
| | 17 | |
| | 18 | Temperatures are measured in degrees Celcius. An alarm is triggered once |
| | 19 | when the Overtemperature Shutdown limit is crossed; it is triggered again |
| | 20 | as soon as it drops below the Hysteris value. A more useful behaviour |
| | 21 | can be found by setting the Hysteris value to +127 degrees Celcius; in |
| | 22 | this case, alarms are issued during all the time when the actual temperature \ |
| | 23 | is above the Overtemperature Shutdown value. |
| | 24 | |
| | 25 | FAN rotation speeds are reported in RPM (rotations per minute). An alarm is |
| | 26 | triggered if the rotation speed has dropped below a programmable limit. FAN |
| | 27 | readings can be divided by a programmable divider (1, 2, 4 or 8) to give |
| | 28 | the readings more range or accuracy. This is imporatant because some FANs |
| | 29 | report only one 'tick' each rotation, while others report two - making |
| | 30 | all readings twice as high. Not all RPM values can accurately be represented, |
| | 31 | so some rounding is done. |
| | 32 | |
| | 33 | Voltage sensors (also known as IN sensors) report their values in volts. |
| | 34 | An alarm is triggered if the voltage has crossed a programmable minimum |
| | 35 | or maximum limit. Note that minimum in this case always means 'closest to |
| | 36 | zero'; this is important for negative voltage measurements. |
| | 37 | |
| | 38 | The VID lines encode the core voltage value: the voltage level your processor |
| | 39 | should work with. This is hardcoded by the mainboard and/or processor itself. |
| | 40 | It is a value in volts. |
| | 41 | |
| | 42 | In addition to the alarms described above, there are a couple of additional |
| | 43 | ones. There is a BTI alarm, which gets triggered when an external chip has |
| | 44 | crossed its limits. Usually, this is connected to all LM75 chips; if at |
| | 45 | least one crosses its limits, this bit gets set. The CHAS alarm triggers |
| | 46 | if your computer case is open. The FIFO alarms should never trigger; it |
| | 47 | indicates an internal error. The SMI_IN alarm indicates some other chip |
| | 48 | has triggered an SMI interrupt. As we do not use SMI interrupts at all, |
| | 49 | this condition usually indicates there is a problem with some other |
| | 50 | device. |
| | 51 | |
| | 52 | If an alarm triggers, it will remain triggered until the hardware register |
| | 53 | is read at least once. This means that the cause for the alarm may |
| | 54 | already have disappeared! Note that in the current implementation, all |
| | 55 | hardware registers are read whenever any data is read (unless it is less |
| | 56 | than 1.5 seconds since the last update). This means that you can easily |
| | 57 | miss once-only alarms. |
| | 58 | |
| | 59 | The LM7* only updates its values each 1.5 seconds; reading it more often |
| | 60 | will do no harm, but will return 'old' values. |
| | 61 | |
| | 62 | |
| | 63 | /proc and sysctl interface files: |
| | 64 | * alarms (LM78_SYSCTL_ALARMS) |
| | 65 | A single number (R,0) which indicates which alarms are currently |
| | 66 | triggered. It is a logical OR of the following bit values: |
| | 67 | LM78_ALARM_BTI, LM78_ALARM_CHAS, LM78_ALARM_FIFO, LM78_ALARM_SMI_IN, |
| | 68 | LM78_ALARMS_IN[0-6], LM78_ALARM_FAN[1-3], LM78_ALARM_TEMP |
| | 69 | * fan[1-3] (LM78_SYSCTL_FAN[1-3]) |
| | 70 | The Fan Low Limit (RW,0) and Current Fan Reading (R,0). |
| | 71 | * fan_div (LM78_SYSCTL_FAN_DIV) |
| | 72 | The FAN1 Scaling Factor (RW,0), FAN2 Scaling Factor (RW,0) and FAN3 Scaling |
| | 73 | Factor (RW,0). |
| | 74 | * in[0-6] (LM78_SYSCTL_IN[0-6]) |
| | 75 | The Voltage Low Limit (RW,2), Voltage High Limit (RW,2) and Current |
| | 76 | Voltage Reading (R,2). |
| | 77 | * temp |
| | 78 | The Overtemperature Shutdown Value (RW,1), Hysteris Value (RW,1) and |
| | 79 | Current Temperature (R,1). |
| | 80 | * vid |
| | 81 | The Core Voltage Value (R,2). |
| | 82 | |
| | 83 | |
| | 84 | configuration file features: |
| | 85 | |
| | 86 | NAME LABEL CLASS COMPUTE CLASS RW |
| | 87 | alarms: R |
| | 88 | fan1: R |
| | 89 | fan1_div: fan1 RW |
| | 90 | fan1_min: fan1 RW |
| | 91 | fan2: R |
| | 92 | fan2_div: fan2 RW |
| | 93 | fan2_min: fan2 RW |
| | 94 | fan3: R |
| | 95 | fan3_div: fan3 R |
| | 96 | fan3_min: fan3 RW |
| | 97 | in0: R |
| | 98 | in0_max: in0 in0 RW |
| | 99 | in0_min: in0 in0 RW |
| | 100 | in1: R |
| | 101 | in1_max: in1 in1 RW |
| | 102 | in1_min: in1 in1 RW |
| | 103 | in2: R |
| | 104 | in2_max: in2 in2 RW |
| | 105 | in2_min: in2 in2 RW |
| | 106 | in3: R |
| | 107 | in3_max: in3 in3 RW |
| | 108 | in3_min: in3 in3 RW |
| | 109 | in4: R |
| | 110 | in4_max: in4 in4 RW |
| | 111 | in4_min: in4 in4 RW |
| | 112 | in5: R |
| | 113 | in5_max: in5 in5 RW |
| | 114 | in5_min: in5 in5 RW |
| | 115 | in6: R |
| | 116 | in6_max: in6 in6 RW |
| | 117 | in6_min: in6 in6 RW |
| | 118 | temp: R |
| | 119 | temp_hyst: temp temp RW |
| | 120 | temp_over: temp temp RW |
| | 121 | vid: R |