2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-28 12:57:51 +00:00

729 Commits

Author SHA1 Message Date
Jean Delvare
2ed59ceadc Handle the case where DMI data isn't available.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5522 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-05 09:44:17 +00:00
Jean Delvare
c63401998c Move IPMI interface detection to its own section. IPMI is really different
from legacy ISA monitoring chips.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5521 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-05 09:36:13 +00:00
Jean Delvare
2d31705bec Always probe the SMBus on Asus and Tyan boards. Both vendors are well
known for making boards with more than one hardware monitoring chip.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5520 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-04 21:23:14 +00:00
Jean Delvare
69c9707ab7 Gather DMI data and print it at start-up. We may use this data for
various purposes later.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5519 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-04 20:50:42 +00:00
Jean Delvare
a9f2ab6cae Add IT8710F (no sensors).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5517 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-04 16:54:12 +00:00
Jean Delvare
974ace4d73 Properly handle ISA probe skip for Super I/O those registers are accessed
on the SMBus.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5516 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-04 10:16:32 +00:00
Jean Delvare
2496da8bbd Minor coding style fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5514 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-03 13:48:59 +00:00
Jean Delvare
495275e1e3 Merge sensors-detect-stat.pl functionality into sensors-detect. This
will be more reliable that way, and easier to maintain.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5512 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-03 13:44:26 +00:00
Jean Delvare
17dea03489 Skip SMBus probing by default if a Super I/O was found. The user can
still ask for SMBus probing, but in general, if there's a Super I/O
with enabled hardware monitoring features, there won't be an additional
hardware monitoring chip on the SMBus. Might need to be refined as some
vendors (Asus, Tyan) are known to actually do that.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5511 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-03 12:40:13 +00:00
Jean Delvare
9374cd9482 Have scan_superio return a list of features instead of a boolean value.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5507 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-03 09:47:57 +00:00
Jean Delvare
3c4bcad753 List the features of each Super I/O chip, for later use.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5506 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-03 09:39:43 +00:00
Jean Delvare
1b15b90fca Clean-up scan_superio.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5505 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 22:11:31 +00:00
Jean Delvare
697dd4f4ec Do not scan I2C adapters on multimedia cards by default. I've never
seen a hardware monitoring chip on such boards, and probing them can
cause problems.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5504 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 22:08:45 +00:00
Jean Delvare
e89e2a8c78 Skip ISA detection by default if a Super I/O was found. In general,
systems have a Super-I/O chip or an ISA chip, not both.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5503 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 21:42:35 +00:00
Jean Delvare
3ef49590d1 Add an option to skip ISA probes except IPMI. The idea is that only
old systems have ISA hardware monitoring chips, while IPMI can be
present on recent systems. Additionally, IPMI probing is read-only,
so it's safer than other ISA probes.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5502 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 20:56:45 +00:00
Jean Delvare
761caf78c2 Minor fixes to the previous commit.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5501 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 17:56:33 +00:00
Jean Delvare
dc22cce727 Move some code from main() to scan_i2c_adapter() as it makes more sense
that way.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5500 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 17:54:20 +00:00
Jean Delvare
b8309aa3bd Drop redundant comments in PCI / CPU detection section.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5499 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 17:39:32 +00:00
Jean Delvare
9ee2412404 Probe chip types from safest to more risky. Start with sensors embedded
in CPU and south bridges, then Super I/O, then ISA and last I2C/SMBus.
In the future we may decide to skip probing ISA and I2C/SMBus if we
already have found a supported south bridge or Super I/O.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5498 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 17:36:08 +00:00
Jean Delvare
05978f13d8 Turn chips_detected into a hash. This is more appropriate to the data
we store than the array we were using so far.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5497 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 13:53:43 +00:00
Jean Delvare
443f019e65 Move alias detection after all chip detections. This is slightly less
efficient, but this makes it possible to later change the probing order.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5496 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-02 11:13:38 +00:00
Jean Delvare
6bc19ec723 Fix calling convention comment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5495 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 20:13:16 +00:00
Jean Delvare
22cc12173a Drop alias detection for Super-I/O chips. It never actually worked,
because the code compares the chip names first and we never cared of
using the exact same name string for I2C and Super-I/O entries of
a given chip. Anyway, we do not have any Super-I/O driver also
doing I2C access so detecting aliases wouldn't be that usesul. And
as I've said before, alias detection is better handled at the kernel
level anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5494 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 17:02:47 +00:00
Jean Delvare
e834cebc0c Change the order of parameters of add_isa_to_chips_detected(). It
makes more sense to have the optional parameter last.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5493 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 16:52:52 +00:00
Jean Delvare
c2c0478857 Delete extra spaces and blank lines.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5492 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 15:52:59 +00:00
Jean Delvare
165fe5ce9c Simplify the generation of module options.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5491 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 15:35:10 +00:00
Jean Delvare
55abb4ac8f Shorten the header comment of /etc/sysconfig/lm_sensors. We don't really
need a copyright and license notice on a generated, 3-line configuration
file, do we?


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5490 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 15:00:15 +00:00
Jean Delvare
b7c5847b62 Remaining spaces-to-tab conversions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5489 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 14:47:27 +00:00
Jean Delvare
c6d1e1f71d Reindent the rest of the code. At last! :)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5488 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 14:44:26 +00:00
Jean Delvare
afde5c3eff Refactor code in andigilog_detect.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5487 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 13:44:12 +00:00
Jean Delvare
2b7b632121 Refactor code in adt7467_detect and adt7473_detect.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5486 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 13:19:17 +00:00
Jean Delvare
7c427dddf7 Strip trailing whitespace.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5485 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 13:14:27 +00:00
Jean Delvare
5aa16fd61b More consistency in lm90_detect.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5484 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 13:13:36 +00:00
Jean Delvare
0735c78d57 Reindent all chip detection functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5483 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 13:07:40 +00:00
Jean Delvare
f6bb77e523 Simplify LM77 detection. The extra detection steps were broken and nobody
complained. And it's not like the LM77 is an immensely popular chip.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5482 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-12-01 08:16:53 +00:00
Jean Delvare
3dc7d6b2e9 Minimum kernel version is 2.6.5, not 2.6.0.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5481 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 20:42:41 +00:00
Jean Delvare
7a1b881a13 Drop special handling of SiS south bridge. Since kernel 2.6.5, the quirk
is handled in the kernel directly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5480 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 20:41:44 +00:00
Jean Delvare
03eac07cd9 Simplify the "detect_data" type: no need to store the i2c adapter name
and driver, we can look these up as needed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5479 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 18:27:59 +00:00
Jean Delvare
0455ac9e1b Minor comment fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5478 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 17:14:50 +00:00
Jean Delvare
565eaf5307 Split scan_i2c_adapter into subfunctions to make it easier to read.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5477 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 17:14:08 +00:00
Jean Delvare
401472ff09 Reindent more functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5476 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 15:24:53 +00:00
Jean Delvare
15e40f9e18 Reindent Super-I/O and CPU core detection functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5475 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 14:31:03 +00:00
Jean Delvare
e955d2cd6e Minor clean-up in i2c_probe.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5472 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 13:10:09 +00:00
Jean Delvare
e0e74f7033 Reindent I2C access functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5471 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 13:05:38 +00:00
Jean Delvare
791b27fbe4 Rework adapter_pci_detection to require fewer levels of indentation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5470 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 12:53:18 +00:00
Jean Delvare
ead02dff68 Simplify adapter_pci_detection_sis_96x.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5469 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 12:42:41 +00:00
Jean Delvare
b899891b11 Reindent adapter detection functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5468 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 12:34:48 +00:00
Jean Delvare
bf809dca15 Reindent auxiliary functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5467 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 12:24:42 +00:00
Jean Delvare
66fe01e8a8 Drop unused function swap_bytes().
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5466 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 10:29:22 +00:00
Jean Delvare
1664a9eb0f One less level of indirection for cpu_ids detection functions.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5465 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-11-30 10:25:11 +00:00