summaryrefslogtreecommitdiffstats
path: root/chassishandler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix space and newline for boot policy printGeorge Keishing2017-06-161-1/+1
| | | | | | | Resolves openbmc/openbmc#1777 Change-Id: I78df77abeca8f37cc1cdb6ae8e1e2d4b3690dc52 Signed-off-by: George Keishing <gkeishin@in.ibm.com>
* Call softoff dbus interface directlyAndrew Geissler2017-06-081-10/+17
| | | | | | | | | | | | | | | | | | | The host response can be extremely fast when requesting a soft power off. So fast in fact, that it may respond before the obmc mapper has registered the softoff dbus object and interface. When this happens, ipmid does not see softoff running so it goes down a different (and incorrect) shutdown path. This code change has the host response go directly to the softoff dbus interface (instead of using mapper). Once mapper is refactored in openbmc/openbmc#1661, this software can go back to using it. Resolves openbmc/openbmc#1743 Change-Id: I08df84783adef80c4eb91277d8d7aa6dc264730d Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Create file to indicate host requested off/rebootAndrew Geissler2017-06-061-8/+55
| | | | | | | | | | Create a file to ensure the soft power off service is not run when the host is requesting a power off or reboot. There's no need to notify the host (i.e. soft power off) when they are initiating it. Change-Id: Ic9f8e7110d30f477ceae38bba9d684559d9503d3 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Remove tabs and fix indents in chassishandler.cppAndrew Geissler2017-06-011-185/+205
| | | | | | | Formatting only change Change-Id: Ide817b09af864adc20c090311e4b6083e3044212 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* IPMI: Update the dbus object for soft power off with underscoresVishwanatha Subbanna2017-04-041-5/+4
| | | | | | | Fixes openbmc/phosphor-host-ipmid#102 Change-Id: I3e7456401b7265a51578f9aa08bef2ae3f326849 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Make IPMI changes to stop timer that is started by SoftPowerOffVishwanatha Subbanna2017-03-241-0/+50
| | | | | | | | | As part of Soft Power Off, there may be a timer that would be running. This patch will stop the timer when IPMI daemon receives response from host for SoftPowerOff sequence of commands. Change-Id: Idacbff36444629623f8754de3d81d292ca19bb85 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Update chassis command handler to use state manager servicesVishwanatha Subbanna2017-03-071-30/+44
| | | | | | | | | | | Until now, IPMI chassis command handler was utilising services from chassis_control script and this patch makes a transition to use the services from the latest State Manager daemon. Fixes openbmc/openbmc#1238 Change-Id: Ic075971bbda44829a3ebe9c0c1de3053a8e97cfa Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add support for IPMI Chassis Power Cycle commandVishwanatha Subbanna2017-03-061-0/+4
| | | | | | | Fixes openbmc/openbmc#1159 Change-Id: Ieaddee28ec53d8c343eeee472de231aa09cbcd43 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* IPMI: Add support for chassis power on commandVishwanatha Subbanna2017-03-021-0/+3
| | | | | | | Fixes openbmc/openbmc#1236 Change-Id: I6a3478c11e9111145284ca028034355ebe085b5a Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Correct compilation errorsMatthew Barth2017-01-251-2/+1
| | | | | | | | | | Fix compilation errors found with later gcc version during integration unit tests. Resolves openbmc/phosphor-host-ipmid#101 Change-Id: I35c5433f03521a877fd09748b8262d6172d21535 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Add privilege level for each IPMI commandTom2017-01-171-6/+18
| | | | | Change-Id: I07f160c6ea83dc91f46e21f263c4cf994aff081d Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add support for IPMI GetChassisStatus commandNan Li2016-10-311-0/+183
| | | | | | | | | | | | * Factor response to explicitly commented fields * Add GetChassisStatus command to whilelist Note: some fields need furture work. Resolves openbmc/openbmc#439 Change-Id: I7a8d6bfe384f2621c157db379680921db4756fcc Signed-off-by: Nan Li <william.bjlinan@hotmail.com>
* Print failing object path after failed bus lookupBrad Bishop2016-10-061-3/+6
| | | | | Change-Id: I599d8297b4d2fd45831443685ea5b7d53f1515b6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add IPMI Get-Chassis-Capabilities commandNan Li2016-10-061-0/+59
| | | | | | | | | | | | * Implement response to separately commented fields. * Add to the whitelist. Note: some hardcoded fields need future work. Resolve openbmc/openbmc#438. Change-Id: Ica9a55a14987ddc6b9984c7d3dcb143416ee7e37 Signed-off-by: Nan Li <william.bjlinan@hotmail.com>
* Ensure all tools are building with -Wall and -WerrorMatthew Barth2016-09-211-1/+1
| | | | | | | | Corrected resulting compiler errors from correctly adding -Wall & -Werror within configure.ac. Change-Id: Ia7aaafa83103322ad4b50171d62144624dd71e42 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Modify respond of un-supported IPMI commandNan Li2016-09-091-1/+1
| | | | | | | | | | | A number of callbacks are registered for 'WILDCARD' types, which currently do nothing except respond with CC_OK(00h). Change complete codes to CC_INVALID(C1h). Resolves openbmc/openbmc#469. Change-Id: I91ea5ee1a23284a4159ff1c1867342e89c6fa444 Signed-off-by: Nan Li <william.bjlinan@hotmail.com>
* Allow out-of-tree buildsPatrick Williams2016-09-061-1/+1
| | | | | Change-Id: If4b97e65f63c3abbf23140dd97b9febe00b3be0d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Implement Network Settings OverrideRatan Gupta2016-09-021-20/+377
| | | | | | | | | | | | | | | | | | | | | | We want to implement the network settings override functionality. This is an OEM boot parameter selector, using parameter ID 0x61. The first byte of the parameter data is the same as parameter ID 5 (ie, the valid flag in the top bit). Persistency doesn't matter here, as petitboot will not clear out this setting. The rest of the parameter data is a host network settings description. For other BMC firmware, the BMC just treats this as opaque (the BMC will just return the same data (including that data1 byte), in response to a Get System Boot Option). For OpenBMC, we may want the BMC to know how to construct that data; the spec for that is at: http://ozlabs.org/~sam/ipmi-network-format Closes openbmc/openbmc#267 Change-Id: I2af8776718deda97acf90d10504783085ccf7323 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Hard-coded service name replaced with call to ObjectMapperSergey Solomin2016-08-251-8/+14
| | | | | | | | | | | | | In the openbmc code, the dbus service name is hardcoded. The ObjectMapper provides a way to find out the service name by issuing a GetObject method call to the ObjectMapper. That functionality is implemented in mapper.c The output of the call to the mapper is a service name. Resolves openbmc/openbmc#319. Change-Id: I724a31ede6bdf3ae4b361e730857b1f2696a8966 Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
* Switch C++ source files to .cpp extensionMatthew Barth2016-08-081-0/+453
Change-Id: I495186b4afd58ec1e5d9d5c6472394f96541d17d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
OpenPOWER on IntegriCloud