summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/sensors
AgeCommit message (Collapse)AuthorFilesLines
2018-09-05phosphor-hwmon: srcrev bump 043d32306e..c9c818ed85Andrew Geissler1-1/+1
Patrick Venture (1): hwmon: revert alignment change and fix-up (From meta-phosphor rev: 06f257cb0a8ff30de01dfaf640b7424c44372440) Change-Id: I68f8a2196a21d32192aa93c34ab30c0ec88c8474 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-04phosphor-hwmon: srcrev bump 901f117733..043d32306eAndrew Geissler1-1/+1
Patrick Venture (1): add .clang-format (From meta-phosphor rev: 91825c03eb7151ad917e9aec3266ba9fcaaef947) Change-Id: Ia4b07602ebe5ea6e4c06c33ab77f0b257f63ea26 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-06-28phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I229006e3cd9d5b433efa952434da188d157d541e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-06-21phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Iefb4027801182eaeafb73caa2319ed2699dd6463 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-06-14phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I90c9b6c422717a8ab3baa8c1ba108c0c177bcfea Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-06-11phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I243856480b54b11ec3f8ff4e6c85ce1ba4a36561 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-06-05phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: If76e35ad5fa3683f65f9a33b522fc3759fd350ea Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-06-02phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Ic7c2ae2cc6ced499c9a53863c45fe104526b9388 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-30phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Id628868a12b9bf229cbd5003fa7eab06128b4d2c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-22phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Iaa930e411fa24815c58aee63659e08bea5effd6e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-16phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Ie044fca52ad3014f0e1353bf237c1e7c8ad08f51 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-08phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I48a1943666c640ff8835b0ec0d780ddb581c43c7 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-03phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Idd4d78b6b8e2d5fc67fb6e47efa0d0d90f2f3529 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-03phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I6eca819ad97ddb1e1a31da8308d686b7a752e68f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-26phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Ide8bf43f40fbd9491f0b9bd141034f04f478b365 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-25phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I30b3dee829f1812a678447b92c215c48d154c613 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-24phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I08ac717512df12591509db280055032a32338434 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-24phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I6b07c5f7891e62589aa33127d7538332c188faba Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-19phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I4f51c32df2f0e3ebb751e8a6a43ee625ffd39cca Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-16phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Ifb321963694f0313129006fdfe6c8359d64b33d0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-10phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I7d3e5cc65ffa5846b091194ef23c23d648360214 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-30phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Ic91f2d2455d08e398406a05dea27ed47b562473f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-23kernel: Move to 4.13 kernelJoel Stanley5-4/+32
We have 236 commits, 127 files changed, 17766 insertions(+), 2128 deletions(-). Some of these are backports from upstream. This list does not include patches from the 4.13 stable releases, but we do include those in the dev-4.13 branch. 1 Alexey Khoroshilov 34 Andrew Jeffery 1 Arnd Bergmann 1 Benjamin Herrenschmidt 1 Bhumika Goyal 1 Brad Bishop 1 Brendan Higgins 11 Christopher Bostic 1 Cyril Bur 14 Cédric Le Goater 49 Edward A. James 3 Gavin Shan 1 Guenter Roeck 8 Ivan Mikhaylov 1 Jacek Anaszewski 1 James Feist 7 Jeremy Kerr 72 Joel Stanley 2 Julia Lawall 1 Ken Chen 6 Lei YU 3 Milton Miller 1 Mykola Kostenok 1 Patrick Venture 2 Philipp Zabel 1 Rick Altherr 11 Samuel Mendoza-Jonas 2 Wei Yongjun 1 Xo Wang 1 Yong Li Note that the 4.13 branch is EOL'd by the Linux community, and as such should not be used for any products beyond development. React to removal of occ hwmon instances from device trees with a new startup/shutdown mechanism for phosphor-hwmon. To fix this, a helper script will be used to start the service that will pass the service the device tree name if it is present, or the udev device path if it isn't. This script will still run from the udev rule as before, but it will stop and start the service itself without using the SYSTEMD_WANTS attribute. As the path to the hwmon environment file matches the service template argument, the paths for the OCC .conf files need to change to match the device path instead of the previous device tree path. Note that the pure device path would have the hwmon instance number in it, but since that can't be known ahead of time it is stripped off by the script that starts the service. In addition, the pure device path for the OCCs contain several ':'s, meaning the associated environment files would also need to. However, Yocto/Bitbake cannot handle a ':' in a file path, so they are converted to '--'s by the script that starts the service and phosphor-hwmon will convert them back internally when it starts. The service file also needed some changes now that the service lifetime is no longer controlled by systemd via SYSTEMD_WANTS. This script will be called by a udev rule to start and stop phosphor-hwmon when the hwmon device driver is started and stopped. It is passed both the device path and the OF_FULLNAME device tree attribute. If OF_FULLNAME is present, it will start the service with that as its template argument, otherwise it will use the device path. This is to handle devices that aren't in the device tree so they won't have OF_FULLNAME. If a '/hwmon/hwmonN' is in the path it is removed, as this path is also used as a path to an environment file and so must be known ahead of time, which the hwmon instance N is not. If there is a ':' in the path name, it is converted to a '--'. Yocto/Bitbake cannot handle a ':' in file paths. Resolves openbmc/openbmc#2953 Change-Id: I815be4d6d9e1cbea8428bb1bb8c332776ee71ece Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Matt Spinler <spinler@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-23phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Id8cde0845f720c153531e0792aba3d8ca0a52e54 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-14phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I2c8c832a43d3c072f0497d8f483a77ea8f84e76e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-27phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I304f7476ea3a1428f0cfc59df4b83acb84950f7b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-23Use default priority for sensor serviceAndrew Geissler1-2/+0
The sensor manager service is used by the host to read certain sensors (PowerSupplyRedundancy, PowerSupplyDerating). The end goal is to move these to their own DBUS services (or into phosphor-settingsd) but until that is done, this service needs to get the default priority that all other services get. Change-Id: I8d965be385cf9ee2542a62956aeec3dcb9b686f8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-22phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I48d0158861ecef1a76e1fbbe5f597a5672f08744 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-13Add "after" PowerSupplyRedundancy mapper objectGunnar Mills1-0/+2
The org.openbmc.Sensors.service reads the value of /xyz/openbmc_project/control/power_supply_redundancy when starting to determine the value of /xyz/openbmc_project/sensors/chassis/PowerSupplyRedundancy. This happens in sensors.py. Change-Id: If594a4986ebffd0811a8a76002739bd0022ca767 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2018-02-08Run legacy services with lowest priorityAndrew Geissler1-0/+2
The early boot of the BMC sees a lot of processes start at the same time (right after mapper completes). The loading of these legacy python services contributes a lot of un-needed workload to the CPU during this time. The eventual goal is to simply remove these services but until that is done, ensure they run with the lowest priority. Resolves openbmc/openbmc#2825 Change-Id: I71e14b02ec943ebe3f64e1818c4fbd7699e690bf Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-02phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I66bcfb218853449973d6238a521e9e28a37c85cc Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-02phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I09fe3dafbbc1e9f216e77b2e2369b0ec6831e6df Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-01-30Use variables for MRW XML filename and pathMatt Spinler1-1/+2
Create an mrw-xml bbclass that has variables for the MRW XML filename and path to it. Then, changes all users of the MRW XML to inherit that class and use those variables. The filename will default to ${MACHINE}.xml if it hasn't already been set to something else, such as in a .conf file. This is done so that the file can be something other than ${MACHINE}.xml. Change-Id: Ia7021e5a5d5e7946829e58688250aa64250cb00e Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2018-01-17phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I881d1ae851e90a78cfeaa2a0fd67aa20199c9032 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-15phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I5aeb6fdce3492f97076761231bd672759813c453 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-12phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I94fafc526ccc741f1e4839695b0f84b22980f3cf Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-17phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Iae1733b1fd7230f1148ce5694a2703c495e1897d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-07phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I4a25de9e9a6f47f360b8760025a6ff7c401678d5 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-01phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I3525896cb397d5f47590d8f46f8bda706c0e1d78 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-10-25phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I986a5043a3b0aa931a7faab7ede3e4ff29d7440e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-10-24phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: Ib62429290cd301cb59d3c0ee7d5e73d9218aebc7 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-10-10phosphor-hwmon.bb: bump versionAndrew Geissler1-1/+1
Change-Id: I20502f6d2dc14f8ba25e4be97f0bad5fbba47985 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-09-18phosphor-hwmon.bb: bump versionPatrick Williams1-1/+1
Change-Id: Ib482e5c3ae4e579180add8670656329114db676f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-09-11phosphor-hwmon.bb: bump versionPatrick Williams1-1/+1
Change-Id: I9b199ff692aaee3c9305d686da9cda90f03789b9 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-09-06phosphor-hwmon.bb: bump versionPatrick Williams1-1/+1
Change-Id: I7c34905be7fc42a634c3b86f5641892d6c773e07 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-25Enable BMC patching from the /usr/local pathMichael Tritz3-3/+6
This commit enables patches from the /usr/local path by replacing absolute paths to /usr/sbin or /usr/bin in every service file with "/usr/bin/env ". Additionally, SyslogIdentifier is added to each file to ensure that journal entries are still distinct. In two cases, service files also had to change due to references to ${{PATH}}, which doesn't work with /usr/bin/env. These references - and the corresponding definitions - were changed to ${{DEVPATH}}. Resolves openbmc/openbmc#2149 Change-Id: I12c5c6e5101eef6820b985a563313836250ff2c7 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
2017-08-24sensors: Add max31785 MSL checking packageBrad Bishop2-0/+17
The phosphor-hwmon project recently added a script for setting the MSL (Minimum Ship Level) on an inventory item given specific MAX31785 firmware revision criteria. Add a package for this script. The package is not installed by default - machine implementations must pick it up themselves and configure when it runs and the script parameters (inventory items, i2c address, revision...) accordingly. Change-Id: I71aa589ad86b913d5a0637955817046b9d8de15f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2017-08-14phosphor-hwmon.bb: bump versionPatrick Williams1-1/+1
Change-Id: Ia70750f526399037782b03cc13562a8788d63ebb Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-08-04phosphor-hwmon.bb: bump versionPatrick Williams1-1/+1
Change-Id: I3d0c4d33570d8a765e9aa665020e5dc130d4b696 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-07-28phosphor-hwmon.bb: bump versionPatrick Williams1-1/+1
Change-Id: Id7a32c89e6aab10edfe2ebd55f7cf88cedbd9b55 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>