Commit Graph
5093 Commits
Author SHA1 Message Date
Jean Delvare b457bc7c63 sensors-detect: Skip addresses 0x37 and 0x4f on DDC channels
We already skip EDID addresses (0x50-0x57) by default on graphics card
I2C/DDC buses. Also skip 0x37 (DDC/CI) and 0x4f which was recently
reported as corrupting a laptop's display when probed.

This closes ticket #2392.
http://www.lm-sensors.org/ticket/2392
2015-05-31 11:58:16 +00:00
Jean Delvare 332c6fe2b9 sensors-detect: Detect graphics card in all cases
On recent kernels, the i2c bus may not be an immediate child of the
graphics device, instead there can be a drm class device in between.
Treat all drm class devices as graphics devices so that probing the
i2c bus is disabled by default as intended.
2015-05-31 11:53:30 +00:00
Jean Delvare 15cafdf597 Don't probe address 0x37 for TMP435, this address is known to be
problematic.
2015-05-28 06:01:18 +00:00
Jean Delvare b200f794b3 libsensors: Fix sparse warnings
Sparse wants forward declarations of static functions to be static as
well. For sensors_eval_expr, do that. For the error callbacks,
rearrange the code so that the forward declarations are no longer
needed.
2015-05-15 11:24:28 +00:00
Guenter Roeck aaf34b0de8 Add detection of ITE8790E.
Reflect that IT8620E will soon be supported by the it87 driver.
2015-03-30 06:43:30 +00:00
Guenter Roeck da60f83fa2 sensors-detect: Nuvoton chip updates
Document driver support for NCT7802Y.
Add detection of NCT7904D.
2015-03-03 16:48:20 +00:00
Jean Delvare 64629dc2f2 healthd.sh: Drop PATH manipulations
Altering PATH shouldn't be needed, everything that is required should
be already available.
2015-03-03 09:14:15 +00:00
Jean Delvare f86fd47838 healthd.sh: Revert to regular sleep
The read trick did not work when the daemon is started by systemd.
So we call sleep again, but we try to use the builtin flavor when
available.
2015-03-03 09:02:31 +00:00
Jean Delvare 1f5ef824c8 healthd.sh: Bump version 2015-02-28 10:15:00 +00:00
Jean Delvare 53d852c9b5 healthd.sh: Decrease the resource consumption by replacing the
external commands with the built-in bash commands. Contributed by
vbooh.
2015-02-28 09:11:05 +00:00
Guenter Roeck 266a45579c sensors-detect: Detect additional IDT temperature sensors
Loosen detection rules for TS3000/TSE2002 to detect additional
chip revisions. Add detection of TSE2004 and TS3001.
2015-02-25 16:38:20 +00:00
Jean Delvare f18f5531b2 Map the IT8786E to the it87 driver 2015-02-24 10:42:36 +00:00
Jean Delvare d992ea2039 Map the IT8781F to the it87 driver 2015-02-24 08:43:33 +00:00
Jean Delvare 5ef0b34a86 Add detection of Intel 5500/5520/X58 2015-01-26 09:27:46 +00:00
Guenter Roeck 5765cdf944 Add detection of IT8731F and IT8732F 2015-01-23 15:59:14 +00:00
Guenter Roeck 54ec3485d3 Add detection of IT8780F 2015-01-23 15:58:47 +00:00
Guenter Roeck b0d6963810 Add detection of IT8786E 2015-01-23 15:58:21 +00:00
Guenter Roeck 241441edaa sensors-detect: Add code to detect TMP400 and TMP435
Also strengthen chip detection for other TMP4xx chips,
and update driver support status for TMP431 and TMP432.

Write new function for various TMP4xx chips and separate
from lm90 detection.
2014-12-12 14:25:20 +00:00
Jean Delvare 76c0970e3b Update the note about libsensors license. libsensors is released
under the LGPL now, thanks Guenter for pointing out the overlook.
2014-11-27 10:35:06 +00:00
Guenter Roeck fba335f4aa sensors-detect: EMC14xx chip updates
Document support for EMC1402, EMC1404, and EMC1424
Detect new revisions of EMC14xx
Add detection of EMC1422
2014-11-20 19:13:44 +00:00
Guenter Roeck e541f5a86f Add reference to nct6683 driver.
Show that nct6775 driver supports NCT6792D.
Show that NCT6102D/6104D/6106D are supported by nct6775 driver.
NCT5573D is compatible to NCT6776F and has the same chip ID.
2014-11-20 19:12:37 +00:00
Jean Delvare bf885a77c5 Add detection of Nuvoton NCT6792D 2014-11-17 08:21:25 +00:00
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