Commit Graph
1958 Commits
Author SHA1 Message Date
Ondřej Lysoněk 5066426c33 Merge pull request #205 from chris-est/master
sensors-detect: add support for FSC Teutates Chip
2019-10-30 09:24:18 +01:00
chris-est d5365edf20 sensors-detect: add support for FTS Teutates Chip
This patch adds support for the FTS Teutates Chip,
used on Fujitsu Mainboards for Intel Skylake and later Chipsets.
It is based on a patch from Fujitsu and was tested on a D-3446-S Mainboard.

The corresponding kernel module can be found here [1].

This is a revised version of an earlier pull request [2].

[1]: https://github.com/torvalds/linux/blob/master/drivers/hwmon/ftsteutates.c#L711
[2]: https://github.com/lm-sensors/lm-sensors/pull/9
2019-10-29 19:32:04 +01:00
Ondřej Lysoněk 6ac7554d69 sensors-detect: Document the --stat option in the man page 2019-10-25 12:16:05 +02:00
Ondřej Lysoněk c31efbbbab Append the "+git" post-release marker to LM_VERSION 2019-10-18 10:14:11 +02:00
Ondřej Lysoněk 1667b850a1 Update LM_VERSION for the 3.6.0 release 2019-10-17 17:43:18 +02:00
Ondřej Lysoněk f1e1a7607c Rename LM_SENSORS_VER to LM_VERSION
Rename LM_SENSORS_VER to LM_VERSION to match the version constant in
version.h. Also, use the "+git" suffix in the version as we are
between releases.
2019-10-17 16:18:23 +02:00
Ondřej Lysoněk 5c900c7e85 Replace svn keywords with LM_SENSORS_VER constant
The keywords Revision, Date and Id were being expanded by Subversion
way back when the project was being maintained in Subversion. Now when
the project is maintained in git, the keywords are no longer expanded
and appear e.g. in the output of sensors-detect literally.

Drop the keywords, or replace them with LM_SENSORS_VER where
applicable.

The value of the constant will have to be updated manually every time
a new release is made.

Inspired by a similar change in i2c-tools (commit daa430031ffd;
thanks, Jean).
2019-10-17 15:29:58 +02:00
Ondřej Lysoněk c28d20d19d sensors-detect: Fix printing CPU info on ppc and arm
The format of /proc/cpuinfo on other arches is different from the
format on x86. Modify the print_cpu_info function to handle arm and
ppc.

This change also eliminates Perl warnings caused by non-existent
elements in the %cpu hash:
Use of uninitialized value in concatenation (.) or string at
./prog/detect/sensors-detect line 3124.

Based on a patch from Changqing Li <changqing.li@windriver.com>,
GitHub PR: https://github.com/lm-sensors/lm-sensors/pull/168
2019-10-17 10:07:21 +02:00
Samuel FORESTIER ab69812631 Fixes missing Fahrenheit conversion with raw output enabled 2019-10-07 19:30:11 +02:00
Samuel FORESTIER 10c4f2afdf Fixes Fahrenheit missing conversion when data are JSON-formatted 2019-08-21 19:20:46 +02:00
Luca Stefani 819786cb8d Add support for Nuvoton NCT6112D/NCT6114D/NCT6116D Super IO Sensors
* See https://patchwork.kernel.org/patch/11044521/#22774197 for reference
2019-07-30 11:35:58 +02:00
Ondřej Lysoněk d20ecfd4e8 Fix coding style
Let's use the kernel coding style in lm_sensors.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-07-29 10:38:22 +02:00
Ondřej Lysoněk 6e1cff65fb Merge pull request #180 from michalsimek/master
sensors: Scale voltage and current values
2019-07-29 10:32:34 +02:00
Ondřej Lysoněk eba5bf0714 sensors-detect: Reorder Nuvoton chips to match the kernel ordering
Reorder Nuvoton chips in the superio_ids_winbond array to match the
order in the kernel to make lookup easier. No functional change.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-07-29 09:57:28 +02:00
Ondřej Lysoněk 6ead226a2c sensors-detect: Update devid_mask for devices supported by nct6775
Since mainline commit 0599682b826ff7bbf, the nct6775 driver uses a
0xfff8 mask when scanning for devices. Update our detection to match
the kernel.

Fixes #188

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-07-29 09:42:40 +02:00
Luca Stefani 079064472f Add support for Nuvoton NCT6798D Super IO Sensors 2019-07-26 14:56:12 +02:00
Luca Stefani ed56004740 Add support for Nuvoton NCT6797D Super IO Sensors 2019-07-25 23:52:47 +02:00
Ondřej Lysoněk 00e7d37b35 sensors-detect: Add detection of AMD family 17h, model 70h
k10temp support was added in groeck/hwmon-next commit
22cac1016a4831922d2.

Fixes #187

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-07-23 11:54:22 +02:00
Prism Tutaj d03b3e3156 Add driver for Fintek F75387SG/RG to sensors-detect
Support for the Fintek F75387SG/RG was added to driver f75375s back in 2013.
2019-06-24 01:19:25 -05:00
Michal Simek 1b8b1bce9e sensors: Scale voltage and current values
scale_value is generic function for scaling values. There is a lower
resolution then json format provides for voltage and current.
The patch is calling scale_value() and showing values with higher
resolution.
For example on Xilinx ZynqMP platform:
ina226-i2c-3-41
Adapter: i2c-0-mux (chan_id 0)
in0:           2.00 mV
in1:         848.00 mV
power1:      287.50 mW
curr1:       330.00 mA

Signed-off-by: Michal Simek <monstr@monstr.eu>
2019-06-20 13:31:52 +02:00
Ondřej Lysoněk 2c8cca3d6c sensors: json: Do not print a stray comma
Previously, if an error happened when reading the value of a subfeature,
subCnt would get incremented and a stray comma would get printed in the
following iteration, even though nothing was printed in the previous
iteration. This would produce a syntactically incorrect JSON.

This is based on a patch from the su8 user on GitHub.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-05-05 11:43:44 +02:00
Ondřej Lysoněk 50f227dafe sensors: json: Skip printing an unnecessary newline
Don't print a newline if no features were printed.

This is based on a patch from the su8 user on GitHub.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-05-05 11:43:44 +02:00
hygonsoc 19fb506ef0 Add Hygon SoC driver detect support to use k10temp driver
Signed-off-by: hygonsoc <hygonsoc@gmail.com>
2019-04-08 11:39:11 +08:00
Karol Szklarski b2039f04e1 Adding AVERAGE option to fancontrol 2019-01-26 22:12:15 +01:00
Ondřej Lysoněk a60d30785e sensors-detect: Add detection of AMD Family 16h Model 30h power sensors
Support in fam15h_power was added in mainline commit 0bd52941586b3.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-01-23 11:04:04 +01:00
Ondřej Lysoněk 6a585cf1e1 sensors-detect: Update AMD Family 15h power sensors detection
Bring Family 15h power sensors detection up to date with the mainline
fam15h_power driver.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-01-23 11:04:04 +01:00
Ondřej Lysoněk 782a2124b6 sensors-detect: Add detection of AMD Family 17h model 30h
Kernel support was added in mainline commit 210ba1201ff95.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2019-01-10 15:09:24 +01:00
Ondřej Lysoněk 097432dd01 Merge pull request #124 from lucasrangit/sensord-oneline
sensord: add oneline sensor log output option
2018-12-30 14:59:29 +01:00
Camille019 c3dc727f5f sensors: Fix power_common_sensors[] list 2018-11-04 01:24:24 +01:00
Ondřej Lysoněk c755805cef Add the find-driver script
The script is meant to identify the driver and kernel module responsible
for exporting a given hardware monitoring chip.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-10-05 17:59:30 +02:00
Ondřej Lysoněk 38220cc2e9 pwmconfig: Fix a sed expression
This fixes commit 3daae37d58.
The escaping inside backticks is really kinda crazy.

Fixes #126

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-20 21:19:11 +02:00
Ondřej Lysoněk 6413b80847 Fix stale links
Fixes #8

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-01 19:38:55 +02:00
Lucas Magasweran c7c6e66328 sensord: add oneline sensor log output option
Add an option `-1`/`--oneline` that logs the updates sensor value with
the chip and adapter on the same line.

This makes it easier to parse and uniquely identify sensors without
labels, such as `temp1` in the example below.

Without `--oneline`:

```
Chip: iwlwifi-virtual-0
Adapter: Virtual device
  temp1: 35.0 C
Chip: coretemp-isa-0000
Adapter: ISA adapter
  Package id 0: 46.0 C
  Core 0: 43.0 C
  Core 1: 43.0 C
  Core 2: 39.0 C
  Core 3: 41.0 C
Chip: acpitz-virtual-0
Adapter: Virtual device
  temp1: 25.0 C
Chip: dell_smm-virtual-0
Adapter: Virtual device
  Processor Fan: 2512 RPM
  Video Fan: 2498 RPM
  CPU: 46.0 C
  Ambient: 54.0 C
  Ambient: 47.0 C
  Other: 40.0 C
Chip: pch_skylake-virtual-0
Adapter: Virtual device
  temp1: 66.0 C
```

With `--oneline`:

```
Chip: iwlwifi-virtual-0 Adapter: Virtual device  temp1: 34.0 C
Chip: coretemp-isa-0000 Adapter: ISA adapter  Package id 0: 47.0 C
Chip: coretemp-isa-0000 Adapter: ISA adapter  Core 0: 42.0 C
Chip: coretemp-isa-0000 Adapter: ISA adapter  Core 1: 43.0 C
Chip: coretemp-isa-0000 Adapter: ISA adapter  Core 2: 39.0 C
Chip: coretemp-isa-0000 Adapter: ISA adapter  Core 3: 41.0 C
Chip: acpitz-virtual-0 Adapter: Virtual device  temp1: 25.0 C
Chip: dell_smm-virtual-0 Adapter: Virtual device  Processor Fan: 2512 RPM
Chip: dell_smm-virtual-0 Adapter: Virtual device  Video Fan: 2501 RPM
Chip: dell_smm-virtual-0 Adapter: Virtual device  CPU: 46.0 C
Chip: dell_smm-virtual-0 Adapter: Virtual device  Ambient: 54.0 C
Chip: dell_smm-virtual-0 Adapter: Virtual device  Ambient: 48.0 C
Chip: dell_smm-virtual-0 Adapter: Virtual device  Other: 40.0 C
Chip: pch_skylake-virtual-0 Adapter: Virtual device  temp1: 66.0 C
```

Signed-off-by: Lucas Magasweran <lucas.magasweran@ieee.org>
2018-08-24 14:36:54 +02:00
Andrew Lunn dcf23676cc sensors: Add support for power min, lcrit, min_alarm, lcrit_alarm
SFP modules measure the transmit power of the lazer. The sensor has
expected minimum values, and alarms when these minimams are reached.
Add support to sensors to print these.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
2018-06-29 12:29:46 -07:00
Ondřej Lysoněk e0c146763b pwmconfig: Declare TMP1 and TMP2 on a separate line
Declare TMP1 and TMP2 on a separate line to make Coverity Scan happy.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-05-14 08:49:01 -07:00
Ondřej Lysoněk fb595f55d1 fancontrol: Do command substitution in double quotes
Do command substitution in double quotes to prevent word splitting.
The issue was reported by Coverity Scan.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-05-14 08:49:01 -07:00
Ondřej Lysoněk 40aa494c02 Remove superfluous call to get_input_value()
It is already called in the line above.
Discovered thanks to a Coverity Scan warning.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-05-14 08:49:01 -07:00
Ondřej Lysoněk 3b548b74ae Fix a use after free()
The issue was reported by Coverity Scan.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-05-14 08:49:01 -07:00
Guenter Roeck b4923f19eb sensors-detect: 0x15b3 is a Family 15h chip, not 17h
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-05-10 07:52:25 -07:00
Guenter Roeck e0a0238d90 sensors-detect: Add detection of AMD Ryzen Zen+ series chips
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-05-08 06:40:55 -07:00
Ondřej Lysoněk c874e11639 Add detection of AMD Ryzen w/ Vega graphics
Kernel support was added in commit
https://github.com/torvalds/linux/commit/877d8948d0aa402fb
2018-05-03 06:15:09 -07:00
jschwender 06a57f6d54 Update vt1211_pwm
the script uses bashisms that work only if sh is bash. if not this will fail. Consequently shebang should be bash, not sh.
2018-03-14 21:08:37 -07:00
jschwender 0e255d895f pwmconfig: fix missing "
introduced in #3daae37

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-03-13 09:18:55 -07:00
jschwender 2d236fbb96 Update vt1211_pwm
replaced deprecated sub shell syntax

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-03-11 09:45:03 -07:00
jschwender 3daae37d58 Update pwmconfig
replaced deprecated sub shell syntax

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-03-11 09:45:03 -07:00
jschwender 33463a1c77 Update fancontrol
replaced deprecated sub shell syntax and replaced deprecated egrep by grep -E

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-03-11 09:45:03 -07:00
jschwender 6842a129c8 Update fancontrol.8
fix incorrect alg description

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-03-11 09:45:03 -07:00
Jakub Wilk 8c2a6ebc22 Fix typos in documentation
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-03-02 11:07:26 -08:00
Guenter Roeck df96b0bb4d sensors-detect: Support detection of NCT6796D
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-02-21 13:04:55 -08:00
Roland Ramthun 34627e4666 Update fancontrol to save original pwm values
Update fancontrol script to save the values of pwmN_enable and pwmN
when it starts and restore the values, when it exits.
Closes groeck/lm-sensors#47.

Signed-off-by: Roland Ramthun <bts@roland-ramthun.de>
[groeck: Split description into multiple lines]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-02-04 08:56:58 -08:00