commit | efacf57694c48454a2c9785d328cf255f7ea606c | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Fri Jan 19 10:02:25 2018 -0600 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Wed Jan 31 18:23:13 2018 +0000 |
tree | 289eb451e08941fc62a5952b7636d55693473d12 | |
parent | 1c078754244c4cf1bceaa33b5b01dc61827bc7e4 [diff] |
Add args to Witherspoon power supply monitor These arguments are needed to allow the application to collect the input power history and put it on D-Bus. The new arguments include: * The number of average and maximum power records to keep in D-Bus. * GPIO information for the GPIO used to send the sync command to the power supplies to have them restart their history recording. Change-Id: Id25cf1daa6ba070b773b49308a54ba51c0839980 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/obmc/power-supply-monitor/power-supply-monitor-0.conf b/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/obmc/power-supply-monitor/power-supply-monitor-0.conf index d1b3af6..8640e62 100644 --- a/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/obmc/power-supply-monitor/power-supply-monitor-0.conf +++ b/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/obmc/power-supply-monitor/power-supply-monitor-0.conf
@@ -1,4 +1,6 @@ DEVPATH=/sys/bus/i2c/devices/3-0069 INSTANCE=0 INVENTORY=/system/chassis/powersupply0 - +NUM_HISTORY_RECORDS=120 +SYNC_GPIO_PATH=/dev/gpiochip0 +SYNC_GPIO_NUM=105 \ No newline at end of file
diff --git a/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/obmc/power-supply-monitor/power-supply-monitor-1.conf b/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/obmc/power-supply-monitor/power-supply-monitor-1.conf index 11c8a64..b481ef2 100644 --- a/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/obmc/power-supply-monitor/power-supply-monitor-1.conf +++ b/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/obmc/power-supply-monitor/power-supply-monitor-1.conf
@@ -1,4 +1,6 @@ DEVPATH=/sys/bus/i2c/devices/3-0068 INSTANCE=1 INVENTORY=/system/chassis/powersupply1 - +NUM_HISTORY_RECORDS=120 +SYNC_GPIO_PATH=/dev/gpiochip0 +SYNC_GPIO_NUM=105 \ No newline at end of file
diff --git a/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-power-supply-monitor@.service b/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-power-supply-monitor@.service index 5de65df..a4f17e9 100644 --- a/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-power-supply-monitor@.service +++ b/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-power-supply-monitor@.service
@@ -8,7 +8,7 @@ [Service] EnvironmentFile={envfiledir}/obmc/power-supply-monitor/power-supply-monitor-%i.conf -ExecStart=/usr/bin/env witherspoon-psu-monitor --path=${{DEVPATH}} --instance=${{INSTANCE}} --inventory=${{INVENTORY}} +ExecStart=/usr/bin/env witherspoon-psu-monitor --path=${{DEVPATH}} --instance=${{INSTANCE}} --inventory=${{INVENTORY}} --num-history-records=${{NUM_HISTORY_RECORDS}} --sync-gpio-path=${{SYNC_GPIO_PATH}} --sync-gpio-num=${{SYNC_GPIO_NUM}} SyslogIdentifier=witherspoon-psu-monitor [Install]