summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove extra header inclusionPatrick Venture2017-09-061-1/+0
| | | | | Change-Id: I4f77b3731a52d8a8271e827d017ef2e8b7923fe6 Signed-off-by: Patrick Venture <venture@google.com>
* sensorhandler: fix a couple bitbash bugs affecting linearizationEmily Shaffer2017-08-301-4/+6
| | | | | Change-Id: I2c50480eb8e74199efacf8db5f4d5a1d4f1fcdd8 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* Increase host shutdown timeout to 45 minutesAndrew Geissler2017-08-231-2/+2
| | | | | | | | | | | | | A fully loaded system can cause the OS to take up to 45 minutes to properly shut down Removed "quiesce" from the description of the timeout since that is used elsewhere for error paths Resolves openbmc/openbmc#2162 Change-Id: I3800ca8e3bb063be6e5d396fac066014dcce7577 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* tpm: Support TPM Sensor type in Get sensor reading commandTom Joseph2017-08-232-3/+70
| | | | | Change-Id: Icf4a10d8f6e2b95dae3d7dcf789711c5a3a46a39 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Implement Get channel access commandTom Joseph2017-08-162-0/+71
| | | | | | | | | | | | | | | | | | | The get channel access command is implemented to support the set channel access command. The set channel access command is used to apply the network settings. Before the set channel access is issued ipmitool issues get channel access command to get all the fields and then copy into the buffer for set channel access. This would enable the following ipmitool command. ipmitool lan set 1 access on There is no backend support for these settings and values are hardcoded in the command implementation. Resolves openbmc/openbmc#1565 Change-Id: I6c7b2ca7971155b90914ab5b68ab3038bfaba185 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* sensorhandler: correctly report data length in Reserve SDREmily Shaffer2017-08-161-0/+1
| | | | | Change-Id: I30a2641dcb548a3ff5141f7688942a748c458070 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
* Handle an action byte value of 0 in the set watchdog timer commandPatrick Venture2017-08-151-0/+10
| | | | | | | | | | | | | | | | | There are multiple options for the action field of the command. This change only addresses one, where the caller wants there to be no action taken when the timer expires. Because the implementation of the watchdog doesn't support multiple actions in precisely that arrangement, it makes sense to simply disable the timer. The default behaviour on x86 of the ipmi_watchdog driver is to first set the watchdog to 10s and an action of "none" and then set it to 10s with an action of "hard reset." This change is necessary to stop the watchdog from resetting the host when it receives the initial setting with the action of "none." Change-Id: I1a541824d2bd0d7a0c33ec5759c7c959cc2ae5ee Signed-off-by: Patrick Venture <venture@google.com>
* Refactor set sensor handling codeDeepak Kodihalli2017-08-156-273/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | A summary of the changes: - Do not generate per sensor type code to update d-bus objects corresponding to sensors. Function to update d-bus objects based on standard sensor event types, such as assertion, event data, are now generic functions - the need not be generated per sensor or per sensor type. - There's a special case where the assertion is treated as a reading (i.e read the entire assertion field as-is). In this case, code needs to be generated per sensor because the type of the mapped d-bus property can vary. In this case have a generic template function, and generate minimal code like so: inline ipmi_ret_t readingAssertion(const SetSensorReadingReq& cmdData, const Info& sensorInfo) { // Corresponding d-bus property is uint32_t return set::readingAssertion<uint32_t>(cmdData, sensorInfo); } - Make sensor-example.yaml succinct. - Make the code in writesensor.mako.cpp more pythonic. Change-Id: I84415ca6e3f756bbb51a90e290539eb086a7f78b Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Support IPMI Chassis Soft Power Off commandVishwanatha Subbanna2017-08-141-11/+24
| | | | | | | Fixes openbmc/openbmc#1947 Change-Id: I099bd308f5e0ee92b7addf9727afd641d45730ea Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Make host command manager accessible by OpenPower OEMVishwanatha Subbanna2017-08-149-12/+21
| | | | | | | | | Since OpenPower Host IPMI OEM also needs to use the Host Command manager, need to place the files in appropriate directories and make needed changes. Change-Id: I7536a0ff1e53a844ec05f73c4e0605cbf4341465 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Use Host Command Manager in host interface implementationVishwanatha Subbanna2017-08-1410-186/+162
| | | | | Change-Id: Icefce510a3a0022bf0288fa99518459b732a2e04 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Define the Manager for handling host bound commandsVishwanatha Subbanna2017-08-144-7/+292
| | | | | | | | | | Since some of the host bound commands are valid only for OpenPower systems, a manager is needed, which can handle commands from OpenBmc common code and also OpenPower implementations. Change-Id: Icf6566e701921ecea4c8cff1c16e498385303396 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Add support for vlan(set lan command)Ratan Gupta2017-08-136-13/+187
| | | | | | | Resolves openbmc/openbmc#1899 Change-Id: I3c436045676bc96e5d91fd9420509bc991549a13 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Move LAN handling commands to the new xyz interfacesRatan Gupta2017-08-136-349/+681
| | | | | Change-Id: I4631c79c171883e5f0d531cfb5957a09496e4b3a Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Move generic network constants to types.hppRatan Gupta2017-08-132-18/+28
| | | | | Change-Id: Ic6de2d3d82d6e55c6abf73bae2fc0a23a36286b9 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Take bus as input parameter in util functionRatan Gupta2017-08-113-61/+44
| | | | | Change-Id: I2de92a1d82939a539e19aca69561ad58a171a5d0 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* dcmi: Put enum ipmi_netfn_sen_cmds inside namespaceRatan Gupta2017-08-112-24/+34
| | | | | | | | | The enum is defined in sensorhandler.h as well as here it may happen that some cpp will include both header files and it may lead to multiple definition error. Change-Id: I848de8cbde42831303493862a7bdf8966176b9d1 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Move dbus utility function to utilsRatan Gupta2017-08-114-227/+298
| | | | | Change-Id: Ief3d9ab2311a597670767cf9931913e5afef4fee Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Fix for reboot attempt and catch internal failures.Dhruvaraj Subhashchandran2017-08-103-13/+27
| | | | | | | | | | | The assumption was reboot attempt left will be sent through reading data in ipmi sensor data, but it is being sent as assertion so adding support to read raw data from assertion bits. Added a catch for internal failures while calling update function for sensors. Change-Id: If45d003c1c22f60e7c8a723c1ff9d077c53cad37 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Initialise the sdbus connectionTom Joseph2017-08-091-0/+2
| | | | | | | Resolves openbmc/openbmc#2128 Change-Id: If2927d14adb3a9332b2a2ea595b57bd4b34671bc Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Don't send blank network override to hostRatan Gupta2017-08-081-21/+53
| | | | | | | | | | | if bmc is not configured with host network data then don't send the blank override,send the ipmi error. Resolves openbmc/openbmc#2033 Change-Id: Idbbb9a81df568be376f2111cd2bafd4c04e13097 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Fixed undefined reference while startingDhruvaraj Subhashchandran2017-08-071-1/+1
| | | | | Change-Id: I611a82ace75ac175f0127b4ee0fd586280f04f8a Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* 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>
OpenPOWER on IntegriCloud