f7a2dd5c | 16-Jul-2019 |
Patrick Venture <venture@google.com> |
rename away from RPM
The SetPoint output from a thermal PID is likely RPM, and that value is then fed into a fan controller PID as the set-point (unit: RPM). This does not have to be RPM, however.
rename away from RPM
The SetPoint output from a thermal PID is likely RPM, and that value is then fed into a fan controller PID as the set-point (unit: RPM). This does not have to be RPM, however. Continue renaming variables and methods to remove the explicit unit-naming.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I570dee0c688338f9a458cac7123314717bee2b42
show more ...
|
9bbf333d | 16-Jul-2019 |
Patrick Venture <venture@google.com> |
rename RPMSetPoint to SetPoint
The PIDs were originally focused on collecting RPM set points from thermal PIDs and then having fan PIDs use the highest value collected, it doesn't need to be strictl
rename RPMSetPoint to SetPoint
The PIDs were originally focused on collecting RPM set points from thermal PIDs and then having fan PIDs use the highest value collected, it doesn't need to be strictly an RPM set point.
It does however need to be one type of value.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I1d589cf4b2688d7e86030c10496d737dc5bbdadf
show more ...
|
98b704e1 | 03-Jun-2019 |
James Feist <james.feist@linux.intel.com> |
Add Fan Redundancy Support
This adds fan redundancy support to passive sensors. If there are redundancy interfaces on dbus, we'll fail a sensor if the status is set to failed.
Tested: Set Redundanc
Add Fan Redundancy Support
This adds fan redundancy support to passive sensors. If there are redundancy interfaces on dbus, we'll fail a sensor if the status is set to failed.
Tested: Set Redundancy to Failed On Dbus, saw all fans in collection boost. Then restarted swampd, came up and still boosted. Set redundancy OK, and they all slowed down.
Change-Id: I8879bef1471bbc168435d6b22dd20006b9dca133 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
375f7098 | 29-Mar-2019 |
Hank Liou <Hank.Liou@quantatw.com> |
Add stepwise parser
The json parser cannot read stepwise setting from config. This change adds support to stepwise type of pid.
Change-Id: I650c5bd6a0040bf25630e33b3bd36abf388f0cd8 Signed-off-by: H
Add stepwise parser
The json parser cannot read stepwise setting from config. This change adds support to stepwise type of pid.
Change-Id: I650c5bd6a0040bf25630e33b3bd36abf388f0cd8 Signed-off-by: Hank Liou <Hank.Liou@quantatw.com>
show more ...
|
ded0ab56 | 15-May-2019 |
Will Liang <will.liang@quantatw.com> |
Check fans for failure
Add check the fan fail. If detect fan fail then into the fail safe mode.
Signed-off-by: Will Liang <will.liang@quantatw.com> Change-Id: I6ef9d42e131500c1b38a708e1c6fda15dc712
Check fans for failure
Add check the fan fail. If detect fan fail then into the fail safe mode.
Signed-off-by: Will Liang <will.liang@quantatw.com> Change-Id: I6ef9d42e131500c1b38a708e1c6fda15dc712f60
show more ...
|
1fe08952 | 07-May-2019 |
James Feist <james.feist@linux.intel.com> |
Make dbusconfiguration reloadable without reboot
Now that asio is being used instead of threads, we can reload the fan configuration without having to restart the application. This moves the ownersh
Make dbusconfiguration reloadable without reboot
Now that asio is being used instead of threads, we can reload the fan configuration without having to restart the application. This moves the ownership of the passive and host bus outside of the SensorManager so that it can be recreated each reload.
Tested: Watched logs and saw full fan config get reloaded after changing fan configuration
Tested: Ran on json configured system and it behaved as expected.
Change-Id: I00e6b27f75384fd41de2017b723f159c9691ae97 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
0c8223b5 | 08-May-2019 |
James Feist <james.feist@linux.intel.com> |
Consolidate all util.hpp
This deletes all lower level util.hpp and cats them into the top level util.hpp to avoid name conflicts.
Change-Id: Ia11e4a08053a3970b0aadf21d1156ab26def36bd Signed-off-by:
Consolidate all util.hpp
This deletes all lower level util.hpp and cats them into the top level util.hpp to avoid name conflicts.
Change-Id: Ia11e4a08053a3970b0aadf21d1156ab26def36bd Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
e3eeef45 | 26-Mar-2019 |
Patrick Venture <venture@google.com> |
bugfix: grab hystersis parameter from pid json
The code incorrectly attempts to read the hystersis parameters from the wrong scope of the json object. This fixes it to read from the pid configurati
bugfix: grab hystersis parameter from pid json
The code incorrectly attempts to read the hystersis parameters from the wrong scope of the json object. This fixes it to read from the pid configuration's scope.
Tested: Added a new unit-test to hit this case. Change-Id: I808bc907ec33a0b12d68a88fd316c3c9fae41516 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
90e9dbca | 19-Mar-2019 |
Patrick Venture <venture@google.com> |
autotools: Fix for autoconf-archive 2019.01.19
The code coverage macros from the archive changed in a backward incompatible way. This adds a workaround to autodetect either version and do the right
autotools: Fix for autoconf-archive 2019.01.19
The code coverage macros from the archive changed in a backward incompatible way. This adds a workaround to autodetect either version and do the right thing.
Change-Id: I63d1cdf6edb125d75872d6dae38f8602fc043431 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
94feffa5 | 06-Mar-2019 |
Patrick Venture <venture@google.com> |
build: enable code coverage
Enable code coverage for the project. Valgrind not enabled in this step.
Change-Id: I62891f6054e5e5315d7f150a1f3dcf619f2740db Signed-off-by: Patrick Venture <venture@go
build: enable code coverage
Enable code coverage for the project. Valgrind not enabled in this step.
Change-Id: I62891f6054e5e5315d7f150a1f3dcf619f2740db Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
90f9bb51 | 06-Mar-2019 |
Patrick Venture <venture@google.com> |
build: rework gtest checks
Rework gtest checks to be modeled after openbmc/gpioplus.
Change-Id: I54539c7031dbf87fea5d2c8ad56e415be8917f7a Signed-off-by: Patrick Venture <venture@google.com> |
c32e3fc5 | 28-Feb-2019 |
Patrick Venture <venture@google.com> |
add tuning enable variable
Add a variable that when set, enables tuning logging. This variable is set to false.
Tuning can be enabled via "-t" "--tuning" on the command line. With a parameter is t
add tuning enable variable
Add a variable that when set, enables tuning logging. This variable is set to false.
Tuning can be enabled via "-t" "--tuning" on the command line. With a parameter is the path where to write the logging information.
Change-Id: I6eb8035d56cc3301face21e9375c02fc9fcc5b31 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
f81f2886 | 26-Feb-2019 |
James Feist <james.feist@linux.intel.com> |
Expand conf namespace
Put rest of conf.hpp in the conf namespace. This is largely a sed replace, and wrapping from_json in conf namespace as it failed to build.
Change-Id: I9fe5c7b2fface44618c43af2
Expand conf namespace
Put rest of conf.hpp in the conf namespace. This is largely a sed replace, and wrapping from_json in conf namespace as it failed to build.
Change-Id: I9fe5c7b2fface44618c43af2367035afc39bcb64 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
3484beda | 25-Feb-2019 |
James Feist <james.feist@linux.intel.com> |
s/minThermalRPM/minThermalOutput
The minThermalRPM is only an RPM by the fact that that is the units of the PID. As the PID units can be anything, change this to minThermalOutput to allow for differ
s/minThermalRPM/minThermalOutput
The minThermalRPM is only an RPM by the fact that that is the units of the PID. As the PID units can be anything, change this to minThermalOutput to allow for different units (i.e. percent).
Change-Id: Ic53fef1159ade5a413e5d519d407947f3023d8e3 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
75eb769d | 25-Feb-2019 |
James Feist <james.feist@linux.intel.com> |
dbuspassive: allow scaling
For tachs it is beneficial to deal in percent so that multiple controllers can be used with different fan types without having to recalculate. This starts using the unused
dbuspassive: allow scaling
For tachs it is beneficial to deal in percent so that multiple controllers can be used with different fan types without having to recalculate. This starts using the unused min and max fields to be able to scale readings. Since max and min are commonly on the value interface, the special value of <int64_t>::lowest() allows these to be gathered from dbus instead of having to enter them manually.
Tested-by: Moved pid control to percent and printed outputs
Change-Id: I9496eb92a18b68a7cd7f034d41d40ef5175c6974 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
608304da | 25-Feb-2019 |
James Feist <james.feist@linux.intel.com> |
stepwise: Add ceiling type
Add a stepwise ceiling type, this is used as a upper clipping curve to limit the max output based on a temperature sensor. This is commonly used for quiet fan mode where C
stepwise: Add ceiling type
Add a stepwise ceiling type, this is used as a upper clipping curve to limit the max output based on a temperature sensor. This is commonly used for quiet fan mode where CPU throttling is allowed to preserve a max fan noise.
Change-Id: I181d5913c92e5498a34e6d3f67cf99b67471479c Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
903b0427 | 20-Feb-2019 |
Patrick Venture <venture@google.com> |
conf change: s/feedFwdOffOffsetCoeff/feedFwdOffsetCoeff/g
Fixup spelling mistake for configuration field name.
Change-Id: I92d0af06f4e15f4408dd10f0dd9cd71099b77f4f Signed-off-by: Patrick Venture <v
conf change: s/feedFwdOffOffsetCoeff/feedFwdOffsetCoeff/g
Fixup spelling mistake for configuration field name.
Change-Id: I92d0af06f4e15f4408dd10f0dd9cd71099b77f4f Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
dca2d484 | 15-Feb-2019 |
James Feist <james.feist@linux.intel.com> |
DBusConfiguration: Fix scaling
Revert the removal of the /100 because that caused 90% to be passed as 90 instead of .9. To counter-act this multiply the stepwise controller by 100 so that setting 50
DBusConfiguration: Fix scaling
Revert the removal of the /100 because that caused 90% to be passed as 90 instead of .9. To counter-act this multiply the stepwise controller by 100 so that setting 50 is 50%.
Tested-by: Used sensor override to make stepwise jump threshold and got desired pwm result.
Change-Id: I629bf0d4b0b3bc77660c09fccae82b1bdac4c578
show more ...
|
5426c349 | 11-Feb-2019 |
Patrick Venture <venture@google.com> |
add json verification for configurations
Add json verificiation for configurations. A configuration is lightly validated.
Change-Id: I42361daf6ad21d3480e92c3808f5fc8ab8318e0b Signed-off-by: Patric
add json verification for configurations
Add json verificiation for configurations. A configuration is lightly validated.
Change-Id: I42361daf6ad21d3480e92c3808f5fc8ab8318e0b Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
d1491724 | 08-Feb-2019 |
Patrick Venture <venture@google.com> |
add support to build zones and PIDs from json
Add support to build zones and PIDs from a json configuration file.
Change-Id: If8608dcd3e084cebabb71fc39851044df4d5d7c2 Signed-off-by: Patrick Venture
add support to build zones and PIDs from json
Add support to build zones and PIDs from a json configuration file.
Change-Id: If8608dcd3e084cebabb71fc39851044df4d5d7c2 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
7280e27e | 11-Feb-2019 |
Patrick Venture <venture@google.com> |
conf change: s/set-point/setpoint/
Remove the dash from set-point, such that it's one word: setpoint.
Change-Id: I4c3033f3c2432a53d850e8f5defbe2ac1510daf8 Signed-off-by: Patrick Venture <venture@go
conf change: s/set-point/setpoint/
Remove the dash from set-point, such that it's one word: setpoint.
Change-Id: I4c3033f3c2432a53d850e8f5defbe2ac1510daf8 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
69c51061 | 11-Feb-2019 |
Patrick Venture <venture@google.com> |
conf change: sensors: read and write path rename
Rename the readpath and writepath for camelcase styling to make all configuration variables consistent.
Change-Id: I33f475075c8f40cd2029a5c0bfda9508
conf change: sensors: read and write path rename
Rename the readpath and writepath for camelcase styling to make all configuration variables consistent.
Change-Id: I33f475075c8f40cd2029a5c0bfda950846cd5d44 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
eeeb867d | 08-Feb-2019 |
Patrick Venture <venture@google.com> |
add support to build sensors from json
Add support to build sensors from a json configuration file.
Change-Id: Ic5bcbcd01e085ab0d4efaed314af8dc7e82b0b9d Signed-off-by: Patrick Venture <venture@goog
add support to build sensors from json
Add support to build sensors from a json configuration file.
Change-Id: Ic5bcbcd01e085ab0d4efaed314af8dc7e82b0b9d Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
1f802f5e | 08-Feb-2019 |
James Feist <james.feist@linux.intel.com> |
Move all variant usage to std
This just a style change, remove variant_ns in favor of std.
Tested-by: it built
Change-Id: Id5a075e8b73a7724cbc5153fb7dfcf369e79c483 Signed-off-by: James Feist <jame
Move all variant usage to std
This just a style change, remove variant_ns in favor of std.
Tested-by: it built
Change-Id: Id5a075e8b73a7724cbc5153fb7dfcf369e79c483 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
572c43da | 31-Jan-2019 |
James Feist <james.feist@linux.intel.com> |
Add Hysteresis to pid controllers
Add hysteresis to pid controllers to lower pwm changes. It is defaulted to 0 so it should be transparent to any controller that choses not to implement it. This is
Add Hysteresis to pid controllers
Add hysteresis to pid controllers to lower pwm changes. It is defaulted to 0 so it should be transparent to any controller that choses not to implement it. This is the same pattern used by the stepwise controller.
Tested-by: Unit tests passed
Change-Id: Ib47114285b0017258b7f77eaf067d310f95a0c60 Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|