summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* IPMI: Virtual sensor support in host ipmidDhruvaraj Subhashchandran2017-08-047-89/+574
| | | | | | | Resolves openbmc/openbmc#1608 Change-Id: Id76446061fd0fa6dc3dead702538e424293af7ce Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* restriction_mode: switch to new settings APIDeepak Kodihalli2017-07-311-62/+72
| | | | | | | Resolves openbmc/openbmc#1489. Change-Id: If642a19204edcf2dbebb644f7abd67de749491e4 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* power_policy: switch to new settings APIDeepak Kodihalli2017-07-311-41/+39
| | | | | Change-Id: I5a54c32fe13f7f0314f0d6a902193b16ca4556fd Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* boot_flags: switch to new settings APIDeepak Kodihalli2017-07-311-84/+165
| | | | | Change-Id: If7cd999889b3ce19b746c3223012920d79e63099 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Add API to retrieve settingsDeepak Kodihalli2017-07-314-3/+156
| | | | | | | Add API to retrieve and cache settings objects of interest. Change-Id: I8afd58b5b3e9a691e4d3fa6bfba2ba5c92cd2568 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* dcmi: Implement activate/deactivate power limitTom Joseph2017-07-282-0/+93
| | | | | | | Resolves openbmc/openbmc#1955 Change-Id: I4f97e3f22e9a36879dba56a06ae3c6bb5d34e34c Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* dcmi: Implement set power limit commandTom Joseph2017-07-282-0/+98
| | | | | Change-Id: I6427a0715a4bba5e18a5e483309a23f8493ea370 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* dcmi: Refactor get power limit commandTom Joseph2017-07-282-53/+114
| | | | | Change-Id: I31755eaccb17c013fd2c1a3e43e7ec95a1947ba3 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* cater for property change signal to invalidate fru dataMarri Devender Rao2017-07-263-1/+59
| | | | | | | Resolves openbmc/openbmc#1560 Change-Id: I90897959dab76181a6006c372c4b60cc1bdd0c0c Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* cater for change in the dbus interface name for RevisionMarri Devender Rao2017-07-261-3/+3
| | | | | | | | | | dbus interface name has been changed recently from xyz.openbmc_project.Inventory.Revision to xyz.openbmc_project.Inventory.Decorator.Revision fixed the example yaml file for the change. Change-Id: I387b4f04303a91f11981fc2af3a61200086d4595 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* rename example yaml file for fru readMarri Devender Rao2017-07-252-1/+1
| | | | | Change-Id: I06dd388ff6060319a21f16ee58a1bcc7379c98a6 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Update gitignoreMarri Devender Rao2017-07-251-0/+1
| | | | | Change-Id: I7015951be5eb72c55e472ae2615a36b55d9d5373 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* cater for fru read callback functionsMarri Devender Rao2017-07-252-3/+96
| | | | | Change-Id: I2fdaef98faa6adc19efce0ede93b4ee728b9404c Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* read data for the specified FRU id from inventoryMarri Devender Rao2017-07-253-1/+142
| | | | | Change-Id: I5255541719edad6453cd3163d9ad428548f1a2c7 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* register call back functions for FRU read commandsMarri Devender Rao2017-07-253-1/+36
| | | | | Change-Id: Idb0230ea173940deb17314dc09c4a562b97ede20 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* construct IPMI FRU Info data based on inventory dataMarri Devender Rao2017-07-253-1/+398
| | | | | Change-Id: If8ee75b48323d29b568ef807d381a3e5600527d5 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Add inventory path metadata to host event log entryTom Joseph2017-07-253-19/+2006
| | | | | | | | | | | | | | | | | | | | | | The ESEL data contains sensor number to related to the event. The generated code maps sensor number to inventory path. The inventory path is added as metadata to the log entry for the admin to figure out the inventory affected by the system event. The generated header for Host event exception type is generated in the org/open_power/Host/Event/error.hpp. Phosphor repositories should not include open power specific header files. The eventual plan to is to move the code to add ESEL to an OEM repo, till then we would check in the header file in the repo. TODO: openbmc/openbmc#1658 The elog-errors.hpp is checked in for the CI to pass. TODO: openbmc/openbmc#1772 issue would take care, so that CI passes without the checking in elog-errors.hpp. Resolves openbmc/openbmc#1920 Change-Id: I31d68de475ef84b8755c5de6d7ce6d311dd32214 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add IPV6 handling for host network settingsRatan Gupta2017-07-252-35/+101
| | | | | Change-Id: I41a35d274476f69681c2516b84900f0e0c358181 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* apphandler: Fix version string leak in ipmi_app_get_device_idXo Wang2017-07-201-0/+1
| | | | | Signed-off-by: Xo Wang <xow@google.com> Change-Id: If64a9897f29e5d8dd267afdd2507b3165114bd98
* Call mapper service with appropriate parametersAndrew Geissler2017-07-191-5/+4
| | | | | | | | | | | I obviously did not re-test my code after making this review comment. The parameters to getService() were in the wrong order. Resolves openbmc/openbmc#1990 Change-Id: Ia0cfe45f391d80dec6f47b28b99126bfc98f2d28 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Update .gitignoreTom Joseph2017-07-191-0/+5
| | | | | | | Resolves openbmc/openbmc#1515 Change-Id: I31421fb667657b258cf0a0610e6ed352aa373f98 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add typedef for Property nameTom Joseph2017-07-192-4/+10
| | | | | Change-Id: I5bb95bc63d33144360bc0bd147cb772622a87cda Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add API to Read the DBUS logging entry object pathsTom Joseph2017-07-192-0/+54
| | | | | Change-Id: Ib1a9693dea5fa614fe3e4952f32778d8dde225d4 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add Clear SEL commandTom Joseph2017-07-193-0/+122
| | | | | Change-Id: I35b07e0bf1012d4b660d10cf17a47318f3c4e6e2 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add Delete SEL entry commandTom Joseph2017-07-193-0/+103
| | | | | Change-Id: Iabeaca4b5057ef1bae44cb6d30704de3ce2f1269 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add Get SEL entry commandTom Joseph2017-07-193-0/+138
| | | | | Change-Id: I09983a127c7c2817a0ebb6d64ffb2a9585dcd235 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add Get SEL Info commandTom Joseph2017-07-192-28/+89
| | | | | Change-Id: I8caa38ee461d6c570a6d7ab73376eb6aea701391 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Get the timestamp from the log entryTom Joseph2017-07-192-1/+41
| | | | | Change-Id: Id00f6e1e6f65c17babc5d06abe1b9fc39a4de8b8 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Make changes as per the new settings infrastructureRatan Gupta2017-07-192-255/+397
| | | | | | | | | | Host network config will be referring to xyz settings namespace. Resolves openbmc/openbmc#1678 Resolves openbmc/openbmc#556 Change-Id: I77e4b015595990b3f44733ff4977b462ddf9a70a Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* dcmi: get real power cap settingsAndrew Geissler2017-07-181-8/+86
| | | | | | | | Now that the user power cap settings are defined, provide them via the ipmi dcmi interface Change-Id: I46b0c3f006eee714c7f412f2aec4433e67aeb187 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* dcmi: asset-tag: Add API to write asset tag to the DBUS objectTom Joseph2017-07-182-0/+32
| | | | | Change-Id: Ia4bf3f99a865617535c65a023c8e697792cd43b4 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* dcmi: asset-tag: Implement Set Asset tag commandTom Joseph2017-07-182-0/+87
| | | | | | | Resolves openbmc/openbmc#1854 Change-Id: Iba00a732aa30fb60fc0b1550daec0e4055af74fa Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* dcmi: asset-tag: Implement the Get Asset Tag commandTom Joseph2017-07-183-0/+109
| | | | | Change-Id: Ic2fb1e707174ece63fbb758bf1422c2c4d95723b Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* dcmi: asset-tag: Add API to read asset tag from dbusTom Joseph2017-07-183-13/+128
| | | | | Change-Id: I00958d4bb54896ea7d13aaffd7e0ebf3c20ef3de Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* sensorhandler: Add functionality to use m, b, b_exp from config.yamlEmily Shaffer2017-07-174-25/+48
| | | | | | Change-Id: I1b5b8a5e0e5abd74eadde494728f363cf1ca4ec6 Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* sensorhandler: implement get SDREmily Shaffer2017-07-172-2/+544
| | | | | | Change-Id: I79dc59585c1f3008fc42e95a5a4792afd7268255 Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* sensorhandler: add reserve_sdrEmily Shaffer2017-07-172-13/+43
| | | | | | Change-Id: I58300910e4cdb0c889e030615a034443816ae5db Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* sensorhandler: add get_sdr_infoEmily Shaffer2017-07-172-2/+82
| | | | | | Change-Id: I13c82b62cec1c2f505fa81786fdc60cb38b2a636 Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Convert a log entry into a SEL recordTom Joseph2017-07-083-0/+83
| | | | | | | | | | | | Check the DBUS logging entry for callout associations, if there is a mapping between the inventory path and sensor number then populate the SEL record. Otherwise log a SEL against the sytem event sensor. Resolves openbmc/openbmc#1516 Change-Id: I516bdac70cf39260af1744a9cdb118d763009bd5 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Create IPMI SEL record from Logging DBUS EntryTom Joseph2017-07-083-1/+185
| | | | | | | | | | The Log Id, resolved field and the timestamp is read from the DBUS entry and mapped to the SEL record. The remaining fields are populated from the generated code which maps an association to the sensor number. Change-Id: I89c3862cf35efa1b9fb86de734431c8141143fb7 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* generate map of phosphor-dbus fru propertiesMarri Devender Rao2017-06-266-2/+257
| | | | | | | | | | Reusing frup.hpp, example.yaml, fru-gen.py, writefru.mako.cpp from ipmi-fru-gen repository to generate map of frup properties. Generated map facilitates in reading data from the inventory. Change-Id: I6d6dbc55a340dd06b4639f8bded8cc09df815a59 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Reduce host shutdown timeout to 5 minutesAndrew Geissler2017-06-201-1/+1
| | | | | | | Resolves openbmc/openbmc#1823 Change-Id: I00fbf03561046be34fa8f1bd3039fbffe575737f Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* 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>
* Update watchdog command handler to use new watchdog daemonVishwanatha Subbanna2017-06-151-33/+67
| | | | | | | | | | Below IPMI commands in NetFn:0x06 are implemented and they need to use the services from new refactored watchdog daemon Command:0x22 and 0x24. Change-Id: I2f7b89aa8b35d08033ecab30b59440c023520390 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* sensorhandler: add missing pointer initializationPatrick Williams2017-06-131-1/+1
| | | | | | | | | | An uninitialized pointer was being sent to 'free' in cases where a dbus object was not found to back a sensor. Fixes openbmc/openbmc#1740. Change-Id: Iaa62bfe460c47f4a51a506b0219879f0b6d46dd4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Return the heartbeat command if queue is emptyAndrew Geissler2017-06-124-75/+4
| | | | | | | | | | | | | | There are numerous valid situations where the host interface queue may be empty, but the host has an active SMS_ATN. In these cases, ipmid should not log an error and abort but instead just return a default command. The default will be the heartbeat command since its basically a noop to the host. Resolves openbmc/openbmc#1750 Change-Id: I810bb0368c2cbd4aa99b6cf20d29eeefc8b312cd Signed-off-by: Andrew Geissler <andrewg@us.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>
* Don't return error on SMS errorAndrew Geissler2017-06-064-70/+4
| | | | | | | | | | The state of the host is unknown when a host shutdown is requested. The defined behavior after asserting the SMS attention is to give the host a few seconds to respond. If there is no response then just continue with the shutdown. Change-Id: I7b25ddb572bd8dea9f6a3422997f53e5f38c7fc5 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Create file to indicate host requested off/rebootAndrew Geissler2017-06-064-10/+69
| | | | | | | | | | 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>
* sensorhandler: modify Get Sensor Reading to use dbus interfaceEmily Shaffer2017-06-062-0/+65
| | | | | Change-Id: Ice16bda6c151b0865f3fa6e8234b8e2456d5b887 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
OpenPOWER on IntegriCloud