summaryrefslogtreecommitdiffstats
path: root/chassishandler.h
Commit message (Collapse)AuthorAgeFilesLines
* rename headers to match stylePatrick Venture2018-09-251-62/+0
| | | | | | | | | | | | | | | | | | Moving headers from ".h" to ".hpp" Reworked the header inclusion a bit so that host-ipmid is treated as a library, and local headers aren't. renamed apphandler.h => apphandler.hpp renamed chassishandler.h => chassishandler.hpp renamed globalhandler.h => globalhandler.hpp renamed sensorhandler.h => sensorhandler.hpp renamed storageaddsel.h => storageaddsel.hpp renamed storagehandler.h => storagehandler.hpp renamed systemintfcmds.h => systemintfcmds.hpp Change-Id: I9d4ce3dd57e2e996800f9020a10cc10cdf2c3914 Signed-off-by: Patrick Venture <venture@google.com>
* Implement chassis set power restore policy commandYong Li2018-09-251-0/+2
| | | | | | | | | | | | | | | | | | Implement the IPMI set power restore policy command 0x06. This command can be used to configure the power restore policy. This configuration parameter is kept in nonvolatile storage. The power restore policy determines how the system or chassis behaves when AC power returns after an AC power loss Tested: Run the below command to check the current Power Restore Policy: ipmitool -H <IP> -P 0penBmc -I lanplus chassis status Run the below command to change it: ipmitool -H <IP> -P 0penBmc -I lanplus chassis policy always-off Change-Id: I224912890f9a9e8b4dc98f840cd6f223c9f7dfe5 Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
* add .clang-formatPatrick Venture2018-09-071-16/+17
| | | | | Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5 Signed-off-by: Patrick Venture <venture@google.com>
* Incorrect definition for Chassis net functionsKuiying Wang2018-08-021-1/+1
| | | | | | | | | | The enum definition for Chassis net functions in chassishandler.h is wrong. It should be defined as ipmi_netfn_chassis_cmds but not ipmi_netfn_app_cmds which is defined in apphandler.h. Change-Id: I26680d19b8c3be7ae2f832f851149352f0ed6303 Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
* Implement Get POH Counter commandNagaraju Goruganti2018-05-211-0/+1
| | | | | | | | | | It returns a counter value proportional to the system operating power-on hours. Partially Resolves openbmc/openbmc#2979 Change-Id: Ib0cd43fe5cbc055ae84991577d766bedae58d775 Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
* Fix tabs to spacesMarri Devender Rao2018-05-081-6/+6
| | | | | Change-Id: I0d8205b378ab5044f58f528aad3b4fab7c993044 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Revert "Revert "Add chassis identify ipmi command.""Tom Joseph2018-04-041-2/+3
| | | | | | | | | | This reverts commit 82feb17d0c244ed04b82b0fbed3c0a9456986a86. The fix for armv5 futures is provided in yocto 2.4 Resolves openbmc/openbmc#3010 Change-Id: Ifc7e224f6f1fa115e0299642e8866b82d6e4f38c
* Revert "Add chassis identify ipmi command."Joel Stanley2018-02-281-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 5bfbde351aabe2096de99ee959a8a2e50edcf84c. See https://github.com/openbmc/openbmc/issues/2740 for details. This commit causes ipmid to fail to load. From github user artemsen: > ipmid[995]: ERROR opening [/usr/lib/host-ipmid/libapphandler.so.0]: > /usr/lib/host-ipmid/libapphandler.so.0: undefined symbol: _ZTINSt13__future_base12_Result_baseE As reported by Lei: > This issue prevent all P8 systems (with ast2400) booting with latest > OpenBMC, because ipmid fails to load libapphandler.so and cause watchdog > will not be kicked and always timeout on power on. As suggested by James Feist: > We probably should just revert the changes until we update to yocto > 2.4 which has the newer version of GCC with the fix for armv5 futures > as the backport seemed to fail. Change-Id: I0059cc3f939c1e3e5f88531fcb14ae3faa451387 Tested: Booted a ast2400 machine and checked journal Signed-off-by: Joel Stanley <joel@jms.id.au>
* Add chassis identify ipmi command.James Feist2017-12-131-2/+3
| | | | | | | | | Add command with support for chassis identify. Resolves openbmc/openbmc#2621 Change-Id: Ie656b71eba68141117838363456c6e075225e3e6 Signed-off-by: James Feist <james.feist@linux.intel.com>
* boot policy: Support boot parameter #4 (boot info)Tom Joseph2017-10-041-0/+1
| | | | | | | Resolves openbmc/openbmc#2356 Change-Id: If775a01a97f29a60575c03f26d32bba0315af920 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add IPV6 handling for host network settingsRatan Gupta2017-07-251-1/+1
| | | | | Change-Id: I41a35d274476f69681c2516b84900f0e0c358181 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Add support for IPMI GetChassisStatus commandNan Li2016-10-311-0/+2
| | | | | | | | | | | | * 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>
* Add IPMI Get-Chassis-Capabilities commandNan Li2016-10-061-0/+1
| | | | | | | | | | | | * 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>
* Implement Network Settings OverrideRatan Gupta2016-09-021-0/+12
| | | | | | | | | | | | | | | | | | | | | | 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>
* Add get/set boot option ipmid command support with correct DBUS property ↵shgoupf2016-01-301-0/+9
| | | | | | | | | | | | | | | | | | | | | handling. 1) Add support for IPMI get/set boot option command. a) boot options stored in dbus property. b) IPMI get boot option command get boot option from the dbus property. c) IPMI set boot option coomand set boot option to the dbus property. 2) Two methods to handle the dbus property set and get: a) dbus_set_property() b) dbus_get_property() 3) The property is stored as a 10 character strings which representsd 5-byte information. 4) ipmid set method is registered and implemented since petitboot will use it to clear the boot options. 5) Get service name via object mapper a) The connection name is got via objectmapper. b) The method used to get the connection name is object_mapper_get_connection(). c) dbus_get_property/dbus_set_property will get the connection name via the above method instead of hard coding. 6) The boot option is made human readable (done by Chris).
* IPMI soft power offvishwa2015-11-241-0/+15
|
* Add support for IPMI Get Boot Options commandAdriana Kobylak2015-11-101-0/+17
Create new Chassis NetFn file and add basic support for OPAL to call the IPMI Get Boot Options command.
OpenPOWER on IntegriCloud