2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-28 21:07:55 +00:00

786 Commits

Author SHA1 Message Date
Jean Delvare
ba80846842 More coding style cleanups. This time, most of them are to make function
calls look like function calls, but there are also a couple whitespace
fixes and needless parentheses removed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5267 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-28 09:32:41 +00:00
Jean Delvare
337f390279 Cache the byte data reads. As we keep reading the same registers over
and over again in the detection functions, and SMBus can be slow,
caching results in a big performance boost. This closes ticket #2326.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5266 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-28 07:26:11 +00:00
Jean Delvare
0463566da7 Improve MAX6657, MAX6658, MAX6659 detection.
Adjust the confidence value of ADM1032, MAX6680/MAX6681 and TMP401.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5264 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-25 10:07:25 +00:00
Jean Delvare
bc735d6619 Coding style fixes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5262 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-24 06:56:33 +00:00
Jean Delvare
a00447d1ce Identify the lm85-compatible chips individually. The previous method was
vendor-based, so we couldn't tell the user what exact device they had,
and the broad device ID mask could lead to false positives.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5261 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-23 10:22:30 +00:00
Jean Delvare
18ed2e1022 Mass coding-style cleanups.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5260 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-22 12:01:33 +00:00
Jean Delvare
c2852cba57 Add Intel SCH (bus) support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5258 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-21 08:15:48 +00:00
Jean Delvare
47ed2c0ffd Add Dallas DS1631 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5249 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-11 20:56:25 +00:00
Jean Delvare
ed3571c03a Rework all device detection routines which use SMBus read word
transactions in address range 0x40-0x48. Some devices don't like word
transactions, so we now try to do as much of the detection as possible
using byte transactions, and only use word transactions when there is
a good chance that the detection will succeed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5246 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-11 17:12:29 +00:00
Jean Delvare
1bd1be771e Try to detect 1-register-only devices, which are designed to be
accessed with SMBus receive byte and SMBus send byte transactions
(i.e. short reads and short writes) and treat SMBus read byte as a
real write followed by a read. The device detection routines would
write random values to the chip with possibly very nasty results for
the hardware. So when we detect such a chip, we skip all probing for
this address.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5245 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-11 17:04:03 +00:00
Jean Delvare
c814dad141 Fix the parsing of I2C addresses not to scan.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5243 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-09 17:59:51 +00:00
Jean Delvare
a4c078b3df Don't probe I2C addresses 0x40-0x47. We only probed them for the MAX6633,
which is a rare chip, and hard to identify anyway. Given that some I2C chips
have been reported to live at 0x47 and to hang the bus when probed, the
benefit just isn't worth the risk.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5235 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-04 16:43:12 +00:00
Jean Delvare
d43847b5df We have a preliminary driver for the Asus F8000.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5232 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-03 13:19:16 +00:00
Jean Delvare
41034dc771 Add Intel ICH10 (bus) detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5229 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 12:22:08 +00:00
Jean Delvare
b94f8909cd Add Asus F8000 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5227 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 12:10:30 +00:00
Jean Delvare
6b2cba4a87 Drop I2C adapter entries for graphics adapters, and a few other misc
bus entries. I don't think we ever saw a sensor chip on these.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5223 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 12:03:48 +00:00
Jean Delvare
4ccadee893 Improve handling of special-case bus driver names:
* Drop support for temporarily disabling I2C bus drivers - we've not
used it for years.
* Handle the other special cases early, so that later code no longer
needs to care.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5222 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 11:57:37 +00:00
Jean Delvare
e6883cf237 We now always prefer ISA access over I2C/SMBus access, so we can
simplify the code a bit.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5221 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 11:57:03 +00:00
Jean Delvare
4e66e0f377 Add National Semiconductor LM64 detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5214 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-27 07:08:08 +00:00
Jean Delvare
7980b684e8 Add preliminary support for the Asus F8000. It is not yet known whether
this chip has hardware monitoring features or not (I guess not.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5211 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-27 06:42:30 +00:00
Jean Delvare
6364733ff5 Add SMSC SCH5127 detection. Patch from Juerg Haefliger.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5192 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-18 10:08:33 +00:00
Jean Delvare
ac0180cc78 Delete the FAQ. It is now maintained on the wiki:
http://www.lm-sensors.org/wiki/FAQ/


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5189 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-17 11:39:07 +00:00
Jean Delvare
f2e518511d Patch from Aurelien Jarno:
I have just noticed that the FSF address is the old one in all files
except COPYING. Please find a patch below to fix that.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5163 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-26 13:37:12 +00:00
Hans de Goede
d155421542 Modify initscript chkconfig comments to not make the service start by default, modify sensors-detect to enable the service on boot once configured and to start it at the end of sensors-detect
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5143 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-12 20:50:19 +00:00
Jean Delvare
70829b1594 New device ID for the SMSC SCH5317.
http://lists.lm-sensors.org/pipermail/lm-sensors/2008-February/022645.html


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5133 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-02 22:06:43 +00:00
Hans de Goede
f702bcf551 run chip_special_cases() earlier so that the special chips get added to the modules_supported list
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5131 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-26 13:50:33 +00:00
Jean Delvare
5464d9e26e Minor string edit.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5128 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-21 08:21:20 +00:00
Jean Delvare
7f58258a1d Move south bridge sensor detection to the right section.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5126 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-20 19:31:34 +00:00
Jean Delvare
1dc288af38 Do not access I/O ports on PPC.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5124 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-20 19:05:00 +00:00
Jean Delvare
10f1901765 Add SMSC SCH5027D detection. Patch from Juerg Haefliger.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5117 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-03 21:03:07 +00:00
Jean Delvare
134aa5bd3f Add Fintek F71858DG and F81216D detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5108 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-01-22 12:22:47 +00:00
Jean Delvare
81a7fbdb22 Lower the confidence value of the MAX6650/MAX6651 from 4 to 3.
These chips are easily misdetected.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5097 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-01-06 14:14:25 +00:00
Jean Delvare
89b2310ff3 Add detection of the SMSC SCH5514 Super-IO. The chip doesn't contain
HW monitoring features. Patch from Juerg Haefliger.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5094 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-01-05 16:55:11 +00:00
Jean Delvare
1cf9ea0c54 More system integration improvements:
* Call insserv on the lm_sensors service when present.
* No sleep before running sensors -s.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5084 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-19 22:36:13 +00:00
Jean Delvare
8f18d66447 Improve sysconfig and modprobe.d integration, based on suggestions by
Gary Funck:
* If we create /etc/sysconfig/lm_sensors, there's no point in printing
  the modprobe commands on the screen.
* Otherwise, suggest /etc/rc.d/rc.local as the init script where to put
  the commands.
* If /etc/modprobe.d exists, create a file there to store the module
  options, rather than printing them on the screen.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5080 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-18 13:04:03 +00:00
Jean Delvare
ce73cfb389 Fix typo. According to National's datasheet PC87317 has SID = 0xd0 and
PC97317 has SID = 0xdf. PC87371/PC97371 do not seem to exist.
Patch from Ulf Jordan.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5066 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-08 11:18:10 +00:00
Rudolf Marek
78f7214fbb Fix typo, model should be in hex.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5051 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-27 11:37:26 +00:00
Rudolf Marek
d147525434 Add Intel Celeron 4xx and Intel Core 2 CPUs on 45nm (Penryn) detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5048 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-27 11:13:49 +00:00
Jean Delvare
48035c2161 Drop detection of the Philips Semiconductors PCA9540. This is an I2C
multiplexer, it should be handled transparently at the kernel level.
On top of that, it can't be detected reliably, and the pca9540 driver
doesn't even exist in Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5045 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-26 13:01:30 +00:00
Jean Delvare
778c45136c Stop probing I2C addresses 0x20-0x27 for the LM78, LM79, W83781D and
W83782D chips. We've never seen any hardware monitoring chip at these
addresses. The correponding kernel drivers will be modified to no
longer probe these addresses either.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5016 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-11 21:20:16 +00:00
Jean Delvare
5c5da6df8b sensors-detect: Add SMSC LPC47B367-NC detection. We have no datasheet,
but this is a variant of the LPC47B357, and that one has no hardware
monitoring features, so for now we assume that the LPC47B367 has no
hardware monitoring features either.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5009 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-09 14:17:51 +00:00
Jean Delvare
6ece4889ce Mention the f75375s driver. Reported by Christian Emmerich.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5007 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-02 10:23:32 +00:00
Hans de Goede
ce23228bbd sensors-detect: Add Texas Instruments TMP401 detection
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5000 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-28 14:20:53 +00:00
Jean Delvare
4db0a3284c Recommend the fschmd driver for FSC Scylla chips even on old 2.6 kernels.
There's no fscscy driver for Linux 2.6, so users would have to either
upgrade to a newer 2.6 kernel (and use fschmd) or backport the fschmd
driver. In either case they will use the fschmd driver, not fscscy.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4968 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-20 08:47:54 +00:00
Jean Delvare
40706a7157 Rename fsc-specific chip arrays to something clearer.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4965 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-20 08:36:05 +00:00
Jean Delvare
eec91d37b3 Fix SMSC LPC47B357/M967 detection. Patch from Juerg Haefliger.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4962 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-19 21:41:44 +00:00
Hans de Goede
e73a2f5b72 Only use fschmd driver for kernels >= 2.6.24
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4961 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-19 13:29:56 +00:00
Hans de Goede
180ebb1d95 Update sensors-detect for new fschmd driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4958 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-19 09:43:31 +00:00
Jean Delvare
96647a6995 The ADM1024 will be supported by the lm87 driver in Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4930 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-09 11:32:39 +00:00
Rudolf Marek
f387f95bae Add detection of AMD K10 CPU sensor.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4925 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-07 18:31:16 +00:00