2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00
Commit Graph

5221 Commits

Author SHA1 Message Date
Jean Delvare
af447db31a fancontrol: Fix shell error when FCFANS is not set
The bug was introduced when I added support for multiple fans
controlled by the same PWM output, in r6000. lm-sensors versions
affected: 3.3.2 to 3.3.5.

This fixes SUSE bug #903520:
https://bugzilla.suse.com/show_bug.cgi?id=903520
2014-11-05 07:28:35 +00:00
Jean Delvare
2b9a6ee146 Print the kernel version and the processor information, to make user
support easier.
2014-09-10 19:18:25 +00:00
Guenter Roeck
a5f0ead1ae sensors-detect: Add detection of NCT7802Y 2014-06-26 14:37:22 +00:00
Guenter Roeck
778c8486c8 sensors-detect: Add detection of various TI chips
Detect TMP441, TMP442, LM95233, LM95234, LM95235.
Strengthen detection of TMP421/TMP422/TMP423.
2014-06-26 13:31:14 +00:00
Jean Delvare
caa118e4a7 I2C address 0x2c is already probed for dozens of chips so there's no
reason to not probe it for SMSC EMC1072, EMC1073 and EMC1074.
2014-05-12 07:14:50 +00:00
Jean Delvare
e0abfe8c5d Add libsensors.map to the list of dependencies for libsensors.so. 2014-05-09 05:53:10 +00:00
Jean Delvare
da5b14dc0c sensors.conf.5: Enhance the hysteresis documentation
Mention all supported temperature hysteresis attributes. Recommend
setting each limit before its hysteresis.
2014-04-23 15:17:24 +00:00
Jean Delvare
69b3b10fa6 sensors: Add support for temp[1-*]_min_hyst and temp[1-*]_lcrit_hyst 2014-04-22 08:09:29 +00:00
Jean Delvare
f09b1c6483 libsensors: Add support for temp[1-*]_min_hyst and temp[1-*]_lcrit_hyst
Add support for sysfs attributes temp[1-*]_min_hyst (already
implemented by drivers adt7x10, lm77 and lm92) and
temp[1-*]_lcrit_hyst (no known users yet.)
2014-04-22 08:05:14 +00:00
Jean Delvare
eb5cf8b2ec Update my e-mail address and copyright years 2014-03-20 10:23:35 +00:00
Jean Delvare
5a159bc648 Add detection of ITE IT8623E 2014-03-18 09:42:22 +00:00
Jean Delvare
9a91bf414b Add detection of ITE IT8620E 2014-03-16 09:48:49 +00:00
Jean Delvare
d70aec7eac Add detection of AMD family 16h Kabini and Mullins CPU sensors 2014-03-12 09:19:08 +00:00
Jean Delvare
fce1cdf36e sensors.conf.default: Add support for NCT6779 and NCT6791 2014-02-21 08:07:42 +00:00
Jean Delvare
c29be769f1 libsensors: Avoid insane memory allocations
While there is no longer a hard limit to the number of sensor of a
given type per chip, I feel a little uncomfortable having no limit at
all on the amount of memory we may try to allocate. Add an arbitrary
safety limit so that a design error or a bug in a hwmon driver can't
result into an insane memory allocation.
2014-01-30 12:45:23 +00:00
Jean Delvare
b9361dc088 libsensors: Adjust memory pre-allocation steps
Make memory pre-allocation steps depend on the sensor type. Things like
voltages, temperatures or fans are typically plenty, however vid and
chassis intrusion are typically only a few, and there can only be one
beep_enable by design. This saves a small amount of temporary memory
for cheap.
2014-01-29 14:39:34 +00:00
Jean Delvare
0159202226 libsensors: Get rid of FEATURE_SIZE
max_subfeatures is computed the first time it is needed, we can do
exactly the same with FEATURE_SIZE. Introduce feature_size as a static
variable so that we don't have to recompute it again and again.
2014-01-29 14:11:12 +00:00
Jean Delvare
8b4299252b Bumb libsensors version, part 2 2014-01-29 09:28:08 +00:00
Jean Delvare
ff7e16dafa Bump libsensors version 2014-01-29 09:27:23 +00:00
Jean Delvare
883f4e49a3 libsensors: Get rid of arbitrary limit on per-type sensor count
When gathering the attributes of each hwmon chip, libsensors uses a
temporary structure in memory to order and group all the attributes
into features. This temporary structure used to be a single array with
room for every possible attribute/subfeature. While simple, this
approach required to predefine a maximum number of per-type sensor
that could be handled.

In order to get rid of this arbitrary limit, which we hit and had to
raise three times already, I changed the temporary structure to an
array of dynamically allocated per-type subattribute arrays. This lets
us not allocate any memory for types which aren't implemented by a
given chip, and more importantly, this lets us reallocate room for
more attributes of a given type as needed.

I decided to allocate chunks of 8 attributes at a time, as this seemed
a good compromise between two frequent reallocations and
over-provisioning. It could be tweaked if needed.

Icing on the cake, I benchmarked this change on two different systems
and it results in performance gains. The total heap usage as reported
by valgrind is down by 50% on average, with peak memory consumption
(as reported by valgrind's massif) also down by 43% on average. The
total instructions count (as reported by valgrind's callgrind) is down
by 11% on average, with measured execution time also down by a few
percents. Valgrind rocks, BTW.

I have some ideas to optimize the memory allocations further, but I do
not expect such a huge gain from them. They may not even improve peak
memory consumption as massif shows the peak is somewhere else now at
least in some cases.
2014-01-29 09:25:31 +00:00
Jean Delvare
18853526ec libsensors: rename function sensors_compute_max
The new function name, sensors_compute_max_sf, better reflects what
the function is actually doing.
2014-01-28 21:47:41 +00:00
Jean Delvare
0c0e29f297 fancontrol: Deal with moving hwmon attributes
Several kernel drivers have already moved their attributes from the
hardware device to the hwmon class device, and others will follow.
Teach fancontrol about this possibility and let it adjust the attribute
paths transparently.
2014-01-28 21:40:55 +00:00
Guenter Roeck
e84b4863be sensors-detect: Add detection of TI ADC128D818 2014-01-26 21:52:57 +00:00
Jean Delvare
3b04ee5cba Post-release version update. 2014-01-22 08:27:30 +00:00
Jean Delvare
f8cdcc35bf Prepare for release. 2014-01-22 08:11:15 +00:00
Jean Delvare
db290fb999 Do not order services after syslog.target
With recent (>202) systemd release, syslog.target is no longer provided:
services are ensured they are started after logging socket is setup, so
journal will capture all syslog messages and will store them and forward
them to syslog implementation (if running).

Patch from Ville Skyttä.
2014-01-19 16:57:33 +00:00
Jean Delvare
da18d98522 Spelling fixes from Ville Skyttä 2014-01-19 15:59:11 +00:00
Jean Delvare
f5d3e6a256 Add another PCI ID for new family 15h AMD processors.
Patch from Phil Pokorny.
2014-01-14 21:51:58 +00:00
Jean Delvare
2252b49e2b libsensors: Increase MAX_SENSORS_PER_TYPE to 33
This is needed to properly support all temperatures reported by the
coretemp driver on recent hardware.
2014-01-14 14:49:04 +00:00
Jean Delvare
72b72f40fc Map the IT8603E to the it87 driver. 2013-11-22 12:43:52 +00:00
Jean Delvare
cb00a51d89 Add detection of SMSC EMC2104. 2013-11-22 12:38:12 +00:00
Rudolf Marek
cd345e7bef Add detection of IT8603E. 2013-11-12 13:29:25 +00:00
Jean Delvare
3a10e75529 Add detection of Texas Instruments TMP451 2013-10-09 15:58:33 +00:00
Jean Delvare
19a38a226d sensors-conf-convert: Add a manual page
Contributed by Jaromir Capik.
2013-09-11 12:18:59 +00:00
Jean Delvare
fbfbb9c9a8 sensors-detect: Fix use of uninitialized value 'vendor_id' on ppc64
Based on a report and an original patch from Jaromir Capik:

There's no vendor_id entry in the /proc/cpuinfo file in case of PPC64
systems and consequently the script returns 3 screens full of the
following errors:

Use of uninitialized value in string eq at /usr/sbin/sensors-detect
line 6444
Use of uninitialized value in string eq at /usr/sbin/sensors-detect
line 6459
Use of uninitialized value in string eq at /usr/sbin/sensors-detect
line 6473
2013-09-11 12:07:25 +00:00
Jean Delvare
a3f215218f Extend the documentation of sensors_init() and
sensors_get_adapter_name(). Paul Crawford asked questions about these
as he found the original documentation unclear. I'm including my
answers to his questions here, reformatted, so that other developers
can benefit from them too.
2013-09-11 11:56:08 +00:00
Jean Delvare
ec4160f771 sensors-detect: Rework option handling
Rework the way command line options are handled. If we ever need more
than this, we should consider moving to some GetOpt perl module.
2013-09-11 11:51:57 +00:00
Jean Delvare
5b6f3f26e0 sensors-detect: Detect incorrect non-interactive runs
It is better to use option --auto for non-interactive runs of the
sensors-detect script than faking an input to get the default answers
to all questions.
2013-09-11 11:46:48 +00:00
Jean Delvare
feb19f45c6 sensors-detect: Introduce automatic mode
Add option --auto to sensors-detect, for non-interactive use. Default
answer is assumed to every question.
2013-09-11 11:22:37 +00:00
Jean Delvare
993f8cb621 Add PCI ID for new family 15h AMD processors. 2013-08-31 13:18:15 +00:00
Jean Delvare
b67af39649 sensors-detect: Add detection of F71868A 2013-07-16 15:07:19 +00:00
Guenter Roeck
01f4f2b275 sensors-detect: Add detection of NCT6681D, NCT6682D, and NCT6683D
NCT6683D is found on recent Intel mainboards (eg DH87MC, DH87RL).
NCT6681D is mentioned on the Nuvoton web site. NCT6682D is similar
to NCT6681D with added support for current monitoring.
2013-07-03 16:15:54 +00:00
Guenter Roeck
1dbb3af4ab sensors-detect: Add detection of NCT6791D
New superio chip, found on recent ASUS boards.
2013-07-03 16:14:23 +00:00
Jean Delvare
f8248e8c21 sensors-detect: Handle built-in modules properly
We now have everything we need to handle built-in modules properly, so
do it. It should work fine since kernel 2.6.33.
2013-06-10 13:03:44 +00:00
Jean Delvare
256811bc9e sensors-detect: Use modules.builtin instead of /sys/module
/sys/module doesn't actually contain all built-in modules, only the
ones which have a version or at least one parameter. Better use file
modules.builtin which is generated since kernel 2.6.33, it is complete
and this will let us handle built-in modules properly.
2013-06-10 13:02:47 +00:00
Guenter Roeck
b0e1a6333e smbus_company_id: Add manufacturer IDs for JC 42.4 compliant temperature sensors 2013-06-07 20:18:02 +00:00
Guenter Roeck
e8af0c718c lm-sensors: Drop comment that additional checks for MAX1617 and LM84
are not done in adm1021 driver, as this is no longer correct.
2013-06-07 18:48:08 +00:00
Jean Delvare
2dec06a2a9 Fix EnvironmentFile in service files
* EnvironmentFile is mandatory for sensord.
* fancontrol needs no EnvironmentFile.
2013-06-03 12:36:47 +00:00
Jean Delvare
a276f56993 sensors-detect: Report built-in drivers as such 2013-05-28 11:51:36 +00:00
Jean Delvare
91fa8d0694 Reorder post-release items in the order I actually do them. 2013-05-28 08:36:56 +00:00