summaryrefslogtreecommitdiffstats
path: root/pychassisctl
Commit message (Collapse)AuthorAgeFilesLines
* python: add vim modelinesBrad Bishop2016-09-231-0/+2
| | | | | Change-Id: Ic13d79892e3efe6f7bad357ad747e6fd25299d02 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Use super to construct dbus.service.ObjectBrad Bishop2016-09-121-4/+3
| | | | | Change-Id: I830decfc523d435c6b9ecdc9ffffec7956c3b85d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* chassis: pep8 fixesBrad Bishop2016-09-121-11/+7
| | | | | Change-Id: I6dc52616ce30660f2e6992f6e1a52d44dfec1cd7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* chassis_control: remove unused modulesBrad Bishop2016-09-061-3/+1
| | | | | Change-Id: I65d56a5597c5e79d4ac48d90b5d7437f50cc8023 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* chassis_control: remove execute permissionsBrad Bishop2016-09-061-0/+0
| | | | | Change-Id: I6ba0bfe7463cf8647d07218174d578f2c96e076a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* chassis: Use systemd for chassis on/offBrad Bishop2016-08-311-16/+11
| | | | | | | Start a systemd target for chassis state changes. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I3f02360aeec35ff451d4da8a087c1aeb1e7709e0
* Start host watchdog after magic sequenceAdriana Kobylak2016-08-191-16/+0
| | | | | | | | | | | | The magic sequence triggers the host to boot, so start the host watchdog timer (which monitors for the host hanging) right after that. There's no need to port the check for debug flag because it's checked as part of the magic sequence. Resolves openbmc/skeleton#127 Change-Id: Ibad7b73c795c6cc8971bb99b755c8fce2c859f97 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Power button power off behaviorAdriana Kobylak2016-08-171-5/+6
| | | | | | | | | | | Change the power button behavior to mirror the current behavior on Power and x86 systems: On short press: soft power off On long press: hard power off Resolves openbmc/openbmc#485 Change-Id: I436c364f6ed072474f942f80d98428df11b4c666 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* chassis_control: Log an event when emergency shutdown hostYi Li2016-08-081-1/+16
| | | | | | | | | | | According to BMC Firmware Specification, on occasion the BMC will be required to shut down the host due to high ambient or fan fails. A SEL must be present in this case. Fixes openbmc/skeleton#64 Change-Id: I3d779fc597961821a7a7f1b0f147314072ae8802 Signed-off-by: Yi Li <adamliyi@msn.com>
* Remove unnecessary InterfacesAdded signalsBrad Bishop2016-07-101-1/+0
| | | | | | | | | | Remove ObjectManager signals emitted before a bus name is owned. This isn't necessary now that the system_manager can detect objects via NameOwnerChanged. Change-Id: Ia2b626a926392b50d20c26474e6c9a9fdb3ca2f0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Export objects prior to bus name grabBrad Bishop2016-07-101-0/+2
| | | | | | | | | The default behavior in pyphosphor changed such that ObjectManager and Properties signals are not emitted by default. Enable signals just prior to bus name grab. Change-Id: I27a2de4b60482dd843702396f33c7cdccaf17277 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Defer busname ownership until init completeBrad Bishop2016-07-101-1/+1
| | | | | | | | | Avoid race conditions where applications expecting an object to be present upon recipt of NameOwnerChanged find that the object hasn't been created yet. Change-Id: I4236a3898055a84b00e1eaf37f32e0192b683a0f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Disable watchdog timer if debug_mode is setAndrew Geissler2016-07-011-5/+21
| | | | | | | | | | | | | | | | | resolves openbmc/openbmc#246 debug_mode is used when the host is not going to be started. In this case, we do not want the watchdog timer to be started because there is no one to keep it from resetting. This code change prevents the watchdog from being started during poweron. Potential side affects could be if we do start the host in this code path. The watchdog is un-tested when it's not started but software comes in and tries to reset it. The code in control_host_obj.c currently enforces the no-host-power-on when debug_mode is set.
* Reformat pychassisctl/chassis_control.py with pep8 standardsAndrew Geissler2016-06-301-192/+200
| | | | This commit is formatting only, no functional changes.
* Reorganize directory structureBrad Bishop2016-06-104-0/+232
Moving to directory per-application layout. This facilitates building single applications which is useful in the Yocto build environment since different applications satisfy different OpenBMC build requirements. A number of issues are also addressed: - All applications were pulling in libsystemd and the gdbus libs irrespective of whether or not they were needed. - gpio.o duplicated in every application - moved to libopenbmc_intf - Added install target Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud