2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 05:48:07 +00:00

5221 Commits

Author SHA1 Message Date
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
Ondřej Lysoněk
84f773b3ec lm_sensors.lsm: Update the Maintained-by field
It's time to accept it.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 20:17:56 +01:00
Ondřej Lysoněk
7029800ddc Update version.h after the release
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 19:54:45 +01:00
Ondřej Lysoněk
e8afbda10f 3.5.0 release
soname was bumped due to commit dcf23676cc264927 which introduced an ABI
change.

Fixes #29

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
V3-5-0
2018-11-23 18:05:48 +01:00
Ondřej Lysoněk
f22b411652 Clarify how to update SENSORS_API_VERSION
My understanding is that SENSORS_API_VERSION should be the same
as $(LIBMAINVER)$(LIBMINORVER) in lib/Module.mk. This means that
the first digit of SENSORS_API_VERSION needs to be incremented whenever
API *or* ABI changes, because we have to increment LIBMAINVER even if
only ABI changes to avoid program breakage.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 17:23:56 +01:00
Ondřej Lysoněk
c56c90156d Update CHANGES
Update CHANGES with respect to commits d4cb932567407cc3 and 7e976f1325e55b5.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 12:19:08 +01:00
Ondřej Lysoněk
7e976f1325 libsensors: Treat devices without a known ancestor bus as virtual
Currently only hwmon devices that don't have a parent device are treated
as virtual. Let's extend the concept to hwmon devices, that don't have
a *recognized ancestor* device (hwmon devices that according to the kernel
don't reside on a bus that we recognize). This change is meant to address
cases where a hwmon device has a thermal class device for a parent, but
the thermal class device doesn't have a parent device.

These kind of hwmon devices started appearing in the 4.19 kernel
due to commit f6b6b52ef7a54160c0. It was not reported as a kernel
regression and fixed in the kernel, because according to
Documentation/admin-guide/sysfs-rules.rst, the change was OK to make
(it says "Position of devices along device chain can change").

Fixes #139

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 12:17:01 +01:00
Ondřej Lysoněk
d4cb932567 libsensors: Consider all ancestor devices when determining bus type
Go through all ancestor devices of a hwmon device until we find a device
that resides on a bus that we recognize. This change is meant to address
hwmon devices that don't reside directly on a bus, but have another
device in the middle of the hiearchy. For example:
ACPI device -> thermal device -> hwmon device

These kind of hwmon devices started appearing in the 4.19 kernel
due to commit f6b6b52ef7a54160c0. It was not reported as a kernel
regression and fixed in the kernel, because according to
Documentation/admin-guide/sysfs-rules.rst, the change was OK to make
(it says "Position of devices along device chain can change").

Fixes #133

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 12:16:52 +01:00
Ondřej Lysoněk
567e6a3b36 libsensors: Pass a resolved device path to sensors_read_one_sysfs_chip
According to Documentation/admin-guide/sysfs-rules.rst, the "device"
link "must never appear in any path as an element". This patch makes
lm_sensors respect that.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 11:33:05 +01:00
Ondřej Lysoněk
6ac43308b5 libsensors: Rename a local variable
Rename a local variable to make it consistent with other parts of the
code. The variable is called (more descriptively) "dev_name"
in sensors_read_one_sysfs_chip(), so let's rename it to that.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 11:33:05 +01:00
Ondřej Lysoněk
0fbfc3b6e0 libsensors: Refactor bus type identification into a separate function
Refactor bus type identification into a separate function in order to
make the code more readable and easier to maintain.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 11:33:05 +01:00
Ondřej Lysoněk
0cb449735f libsensors: Refactor device classification into a separate function
Refactor device classification into a separate function in order to
make the code more readable and easier to maintain.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-23 11:33:05 +01:00
Ondřej Lysoněk
874ab9548d
Merge pull request #143 from doctor64/asus_p8z68-v_lx
configs: Add ASUS P8Z68-V LX board
2018-11-19 18:03:23 +01:00
Alex Cherkayev
e9e108316a configs: Add ASUS P8Z68-V LX board 2018-11-18 22:21:40 +02:00
Ondřej Lysoněk
e4ff9c375e Update CHANGES
Add missing entries to the CHANGES file. Here's the list of relevant
commits:
* musl C library support: 8fb3922219d3
* F71868A hardwired inputs: dfa4518962c81
* fancontrol: save original pwm values: 34627e46663f
* vt1211_pwm: use bash instead of sh: 06a57f6d546ab8
* coverity scan fixes: 3b548b74aeaef, 40aa494c026c67, fb595f55d1a6d,
  e0c146763b3e2a
* support for power min, lcrit, min_alarm, lcrit_alarm: dcf23676cc264
* NCT6796D hardwired inputs: 64e13d599871b
* Add the find-driver script: c755805cef0c6b

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-07 18:51:23 +01:00
Ondřej Lysoněk
012d76b978 README: Link to the lm_sensors website on hwmon wiki
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-11-07 18:03:23 +01:00
Ondřej Lysoněk
1f1f8c8a81
Merge pull request #140 from Camille019/patch-1
sensors: Fix power_common_sensors[] list
2018-11-05 10:31:48 +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
35d2443488
Merge pull request #131 from maciejsszmigiero/two-new-mbs
add Gigabyte GA-F2A88XM-HD3 and MSI MS-7A34 (B350 TOMAHAWK) config
2018-10-02 09:16:01 +02:00
Maciej S. Szmigiero
f35936bf94
configs: Add MSI MS-7A34 (B350 TOMAHAWK)
Input routing and scaling for this board was read from schematic of a
similar MSI MS-7B00 (B350 Gaming Pro Carbon) board.

temp5 on the MS-7B00 schematic is a thermistor under the B350 chip itself.
However, on my MS-7A34 board the reading is stuck at 23°C.
Judging from MS-7A34 board sensor readings that other people had posted
online the sensor seems to work properly for them, so I have left it
enabled.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
2018-10-02 01:09:20 +02:00
Maciej S. Szmigiero
520e467b67
configs: Add Gigabyte GA-F2A88XM-HD3
Input routing and scaling for this board was read from its schematic,
verified on a real specimen.

This config is likely also valid for other members of GA-F2A88XM-x family,
as differences between them seem pretty minor.
It might also be valid for GA-F2A85XM-HD3 board considering that
GA-F2A88XM-HD3 schematic has the former board name as title in many places.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
2018-10-02 01:08:41 +02:00
Ondřej Lysoněk
255804953e Update links to the git repo
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-29 13:02:21 +02:00
Ondřej Lysoněk
807f9b1529 README: Update with info about the mailing list archives
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-23 11:02:29 +02:00
Ondřej Lysoněk
38220cc2e9 pwmconfig: Fix a sed expression
This fixes commit 3daae37d58cd.
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
bcc5c67eff
Merge pull request #120 from pudh4418/nct6796d
sensors.conf.default: Add hardwired NCT6796D inputs
2018-09-20 19:30:32 +02:00
Ondřej Lysoněk
03477cc9dc
Merge pull request #119 from rigred/master
MSI P35 Neo 3 & ASRock X370 Gaming K4 sample configs
2018-09-11 09:10:56 +02:00
rigred
310ce4e95c
ASRock X370 Gaming K4
Values as per nuvoton nct6779D datasheetSection 8.5 Analog Inputs (Page 54,55).

Is based on nct6779 which uses a 2.048V input range, all inputs above that are scaled using a voltage divider.
Specific inputs like the ADC, AVCC, VBAT, 3VSB and 3VCC utilize an integrated voltage divider.

Signed-off-by: Rigo Reddig <rigo.reddig@gmail.com>
2018-09-10 21:11:41 +02:00
rigred
eb2a435de1
MSI P35-Neo3 MS-7395
Values pulled from: https://www.alldatasheet.com/datasheet-pdf/pdf/257913/FINTEK/F71882FG.html
See "Application circuit section page 122"

Signed-off-by: Rigo Reddig <rigo.reddig@gmail.com>
2018-09-10 21:00:29 +02:00
Ondřej Lysoněk
c52ce346d4 Update README to say all configs are now imported from lm-sensors.org
The import has been done in commit 1398ef020.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-01 19:45:02 +02:00
Ondřej Lysoněk
8f54fe85e8 Update lm_sensors.lsm to reflect the new home of lm_sensors
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-01 19:45:24 +02:00
Ondřej Lysoněk
17d62bd318 Update release_checklist to reflect the new home of lm_sensors
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-01 19:45:02 +02:00
Ondřej Lysoněk
be3679ae06 Mention the new mailing list in README
Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-09-01 19:39:03 +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
Roy Zhang
64e13d5998 sensors.conf.default: Add hardwired NCT6796D inputs
It seems Nuvoton NCT6796D also has the same hardwired inputs.

This was determined experimentally on an ASUS PRIME B360M-A board.

Signed-off-by: Roy Zhang <pudh4418@gmail.com>
2018-08-22 16:44:04 +08:00
Ondřej Lysoněk
2ddf3e5ad5 Revert "README: Add removal notice"
This reverts commit 3dc5358dcb9ae3b04e3a01173db34443f38dfe3a.

Guenter Roeck's repo got migrated to
https://github.com/lm-sensors/lm-sensors

I am the new maintainer.

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
2018-08-20 19:16:45 +02:00
Guenter Roeck
09a60b9065 libsensors: Add support for SENSORS_BUS_TYPE_SCSI
Upcoming kernel drivers may add SCSI bus based sensors.
Add support for it to libsensors.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-08-11 11:59:14 -07:00
Guenter Roeck
fde815c4fb README: Add 'TROUBLESHOOTING' section
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-08-07 14:09:12 -07:00
Hannes Haberl
e77fe8c59e Fix voltage limits, correct motherboard name 2018-08-07 10:08:39 -07:00
Hannes Haberl
71005a00a2 configs: Add Gigabyte GA-AX370-DS3H Motherboard 2018-08-07 10:08:39 -07:00
Guenter Roeck
3dc5358dcb README: Add removal notice
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-08-07 09:13:17 -07: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
Elliott Johnson
70f7e08484 Adding documentation of the chip_name to bus_id relationship. 2018-05-24 14:55:27 -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