cfae948b | 20-May-2019 |
Deepak Kumar Sahu <deepakx.sahu@intel.com> |
Watchdog: move get and set watchdog to new api.
Rewrite "get and set watchdog" command to use the newly introduced ipmi api.
Tested: Verified using ipmitool "get and set watchdog", timer behavior i
Watchdog: move get and set watchdog to new api.
Rewrite "get and set watchdog" command to use the newly introduced ipmi api.
Tested: Verified using ipmitool "get and set watchdog", timer behavior is same before and after the changes.
Testing Procedure: default watchdog timer is 11.2 seconds.
ipmitool raw 0x06 0x25 ---> Get Output: 00 00 00 00 70 17 70 17
Note: Here 70 count(hex value)->112 count(decimal value)->112*100=11200ms [100ms per count]->11.2sec (watchdog timer)
watchdog timer set to 20 seconds.
ipmitool raw 0x06 0x24 0x44 0x01 0x00 0x10 0xc8 0x00 ----> Set output:
ipmitool raw 0x06 0x25 ---> Get output: 04 01 00 00 c8 00 c8 00
Note: Here 20sec->20000ms->200count->c8 (hex value)
Signed-off-by: Deepak Kumar Sahu <deepakx.sahu@intel.com> Change-Id: Id8c096bc1635d1900ee842a9726c49fb690fa8bc
show more ...
|
fdb8389d | 17-May-2019 |
Yu Ren <yux.ren@intel.com> |
Return error if the input data is larger than expected
If the input data length exceeds the expected, return len_invalid too
Tested: ipmitool raw 0x06 0x24 0x01 0x13 0x0 0x2 0xa 0x00 0xff
Will ret
Return error if the input data is larger than expected
If the input data length exceeds the expected, return len_invalid too
Tested: ipmitool raw 0x06 0x24 0x01 0x13 0x0 0x2 0xa 0x00 0xff
Will return error
Signed-off-by: Yu Ren <yux.ren@intel.com> Change-Id: I12168f4aed51c499fd06067ca4475917b68e819e
show more ...
|
f442e119 | 09-Apr-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
move variant to std namespace
sdbusplus::message::variant_ns has been std for a while now. This moves ipmid away from sdbusplus::message::variant_ns to directly use std::variant.
Tested-by: built,
move variant to std namespace
sdbusplus::message::variant_ns has been std for a while now. This moves ipmid away from sdbusplus::message::variant_ns to directly use std::variant.
Tested-by: built, compiles, and runs the same as before.
Change-Id: I8caa945f31c926c2721319f001b9d7f83fd3f1b7 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
11df4f69 | 25-Mar-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
rewrite Reset Watchdog Timer command to use new provider API
Modify to use the new provider API. One by one, change calls to remove any legacy API constructs.
Tested-by: ipmitool mc watchdog get
rewrite Reset Watchdog Timer command to use new provider API
Modify to use the new provider API. One by one, change calls to remove any legacy API constructs.
Tested-by: ipmitool mc watchdog get ipmitool mc watchdog off ipmitool mc watchdog reset
Change-Id: If6cd1d921908dc7f5462e99b0098b4897e743ebb Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
e08fbffc | 03-Apr-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
Only include ipmid/api.hpp for the new API
After some feedback from users of the new IPMI API, they wanted to see two things: 1) don't require ipmid/api.hpp and ipmid/registration.hpp to be able to
Only include ipmid/api.hpp for the new API
After some feedback from users of the new IPMI API, they wanted to see two things: 1) don't require ipmid/api.hpp and ipmid/registration.hpp to be able to write new handlers 2) only require including ipmid/api.hpp (instead of ipmid/api.h)
So now, by simply including ipmid/api.hpp instead of ipmid/api.h (deprecated), handlers incorporating the new IPMI API can be written.
Change-Id: I446dcce70cff03d4ecc28c658292d052485f77fc Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
d2a57dec | 25-Mar-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
Remove old channel commands
New channel commands have been implemented in user_channel/channelcommands.cpp
This removes the old, unused command implementation
Change-Id: I054ea053d25865e0d4203f2ae
Remove old channel commands
New channel commands have been implemented in user_channel/channelcommands.cpp
This removes the old, unused command implementation
Change-Id: I054ea053d25865e0d4203f2ae294778d31817637 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
392050fa | 01-Apr-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
remove legacy ipmid.cpp and ipmid.hpp
These two files have now been replaced with newer APIs and can be removed.
Change-Id: If60227b24188c6796211ca43379169f9a95c9cb3 Signed-off-by: Vernon Mauery <v
remove legacy ipmid.cpp and ipmid.hpp
These two files have now been replaced with newer APIs and can be removed.
Change-Id: If60227b24188c6796211ca43379169f9a95c9cb3 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
33250240 | 12-Mar-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
move types.hpp to ipmid/types.hpp for export
types.hpp is required by utility.hpp, which is exported, so it needs to be exported as well. This moves it to the include/libipmid directory, changes the
move types.hpp to ipmid/types.hpp for export
types.hpp is required by utility.hpp, which is exported, so it needs to be exported as well. This moves it to the include/libipmid directory, changes the Makefile to export it, and changes all the files that include it so it can be found in the right place.
Change-Id: I30ec365446e4de466c266ec4faa327478460ec05 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
6a98fe7f | 11-Mar-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
Move util.cpp/util.hpp to libipmid
These are functions that are used widely by ipmid providers, so it makes sense to put them in libipmi.so (the library that all providers must link against).
Teste
Move util.cpp/util.hpp to libipmid
These are functions that are used widely by ipmid providers, so it makes sense to put them in libipmi.so (the library that all providers must link against).
Tested-by: use nm to inspect the binaries to see that the symbols are in the expected library.
arm-openbmc-linux-gnueabi-nm libipmid.so.0.0.0 \ | grep getDbusObject 0001063c T _ZN4ipmi13getDbusObjectERN9sdbusplus....
Change-Id: I1221f807f2711c5301c5574623564ea1ae48a437 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
f7c9db0a | 14-Jan-2019 |
Yong Li <yong.b.li@linux.intel.com> |
Get the correct present countdown value when watchdog is stopped
The timeRemaining property in watchdog service will return 0 if the watchdog is not started.
Tested By: ipmitool raw 0x6 0x24 0x0 0x
Get the correct present countdown value when watchdog is stopped
The timeRemaining property in watchdog service will return 0 if the watchdog is not started.
Tested By: ipmitool raw 0x6 0x24 0x0 0x0 0x0 0x0 0xa 0xb ipmitool mc watchdog get
Change-Id: I27992f25a0e2c75df398ec5e2702b467365e9a32 Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
show more ...
|
118907ed | 11-Jan-2019 |
Yong Li <yong.b.li@linux.intel.com> |
Add timer use field support in watchdog command
Tested: ipmitool raw 0x06 0x24 1 0 0 0 0 0 ipmitool mc watchdog get
Change-Id: Iaffd6622821d33183a52f54a4e2e52a36aa17dde Signed-off-by: Yong Li <yong
Add timer use field support in watchdog command
Tested: ipmitool raw 0x06 0x24 1 0 0 0 0 0 ipmitool mc watchdog get
Change-Id: Iaffd6622821d33183a52f54a4e2e52a36aa17dde Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
show more ...
|
194375f2 | 14-Dec-2018 |
William A. Kennington III <wak@google.com> |
Create libipmid and libipmid-host
This starts a transition to common ipmid libraries that providers can link against. It will allow for a cleaner separation between common ipmid functionality and da
Create libipmid and libipmid-host
This starts a transition to common ipmid libraries that providers can link against. It will allow for a cleaner separation between common ipmid functionality and daemon type specific code. This is needed so we can resolve all of the symbols in the providers at link time instead of discovering bad linkage by building and running a full ipmi daemon.
In future commits libraries will be packaged for libipmid and libipmid-host which provide all of the symbols used by the current set of ipmid providers.
This is the first step, it just separates and renames the headers. Legacy symlinks are still kept around for compatability. It also adds stub libraries so that external users can start linking as intended.
Change-Id: I6bbd7a146362012d26812a7b039d1c4075862cbd Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
74a2102e | 13-Dec-2018 |
Johnathan Mantey <johnathanx.mantey@intel.com> |
IPMI channel to NIC device mapping modified within JSON config file
The IPMI to NIC channel mapping was done using a hard coded scheme. The scheme used generic channel names which were then mapped t
IPMI channel to NIC device mapping modified within JSON config file
The IPMI to NIC channel mapping was done using a hard coded scheme. The scheme used generic channel names which were then mapped to specific device names. The hard coded generic to specific naming convention is removed, and the JSON file contains the device name directly.
Change-Id: Ibc6821cae5a26f2666467aba5346d364053f2582 Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
show more ...
|
f301f045 | 16-Jan-2019 |
Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> |
Fix: Get Channel Cipher suite to list algo
Implemented Get channel cipher suite command to list the supported algorithms. Previously this command supported only list by cipher suite.
Unit test: Ver
Fix: Get Channel Cipher suite to list algo
Implemented Get channel cipher suite command to list the supported algorithms. Previously this command supported only list by cipher suite.
Unit test: Verified that algorithms are listed for both byte3 bit7 set / un-set ipmitool raw 0x6 0x54 0x1 0x0 0x80 ipmitool raw 0x6 0x54 0x1 0x0 0x00 both listed alogrithms as expected
Change-Id: I7b0ac74293cce869f5bcaa3c5ec226e1d237ccdf Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
show more ...
|
c49daa39 | 17-Oct-2018 |
Patrick Venture <venture@google.com> |
app/channel: fixup c-style casting
Fix up c-style casting in app/channel.cpp:102
Change-Id: Ie6da0ff238856e01305127395d48ec161a30c4a1 Signed-off-by: Patrick Venture <venture@google.com> |
4491a46f | 13-Oct-2018 |
Patrick Venture <venture@google.com> |
cleanup: scope reduction
[app/channel.cpp:102]: (style) The scope of the variable 'resp' can be reduced. [ipmisensor.cpp:310]: (style) The scope of the variable 'i' can be reduced. [ipmid.cpp:5
cleanup: scope reduction
[app/channel.cpp:102]: (style) The scope of the variable 'resp' can be reduced. [ipmisensor.cpp:310]: (style) The scope of the variable 'i' can be reduced. [ipmid.cpp:506]: (style) The scope of the variable 'num_handlers' can be reduced. [read_fru_data.cpp:82]: (style) The scope of the variable 'fruId' can be reduced. [sensorhandler.cpp:256]: (style) The scope of the variable 'p' can be reduced. [storageaddsel.cpp:68]: (style) The scope of the variable 'p' can be reduced.
Also delete two extra vertical lines.
Change-Id: I8e72f8e1d94381f456674abf523d2f2fbdd8046d Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
46470a38 | 07-Sep-2018 |
Patrick Venture <venture@google.com> |
rename headers to match style
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 => a
rename headers to match style
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>
show more ...
|
1322768c | 09-Aug-2018 |
Tom Joseph <tomjoseph@in.ibm.com> |
Implement Set Channel access command
The only option supported is the access mode for disabling or enabling the network IPMI.
Change-Id: I2e6b20c317fec19e1e71b3adfc211e6fb847f737 Signed-off-by: Tom
Implement Set Channel access command
The only option supported is the access mode for disabling or enabling the network IPMI.
Change-Id: I2e6b20c317fec19e1e71b3adfc211e6fb847f737 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
show more ...
|
bae471cb | 15-Jun-2018 |
William A. Kennington III <wak@google.com> |
app/watchdog: Only log internal failures once
Logging internal failures to the phosphor-logger is a slow process that can take up to 5 seconds. If we do this for each watchdog reset for a relatively
app/watchdog: Only log internal failures once
Logging internal failures to the phosphor-logger is a slow process that can take up to 5 seconds. If we do this for each watchdog reset for a relatively fast watchdog we will clog up the channel and fill the ESEL log with errors. We probably don't want that kind of information to build up. Instead, only report errors to the ESEL when the state of the internal watchdog transitions from HEALTHY -> UNHEALTHY.
Tested: Works on zaius when booting and terminating the watchdog daemon while it is ticking. Produces the expected single error in the log and only delays the IPMI channel once.
Change-Id: I8110ba66c4a85e188666a34cb6d055bdbec30622 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
0b02be92 | 31-Aug-2018 |
Patrick Venture <venture@google.com> |
add .clang-format
Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5 Signed-off-by: Patrick Venture <venture@google.com> |
1469f8ad | 15-May-2018 |
William A. Kennington III <wak@google.com> |
app/watchdog_service: More useful error output
This patch adds error handling around the decoding of requests to the watchdog service, to give more useful context in the case of errors.
Change-Id:
app/watchdog_service: More useful error output
This patch adds error handling around the decoding of requests to the watchdog service, to give more useful context in the case of errors.
Change-Id: If668b17e88dc65a938b69d8c2cdd760456170962 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
2ecf5120 | 27-Apr-2018 |
William A. Kennington III <wak@google.com> |
watchdog: Get only the initialized property during reset
Since we switched to resetting the watchdog with a built-in method, we are only using a single property from the watchdog. Instead of fetchin
watchdog: Get only the initialized property during reset
Since we switched to resetting the watchdog with a built-in method, we are only using a single property from the watchdog. Instead of fetching all the properties and reading just the initialized one, only request the initialized property from the watchdog.
Change-Id: I5e29b5100629e1ce23f352b0b749a434cd1ab793 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
4b017a9b | 27-Apr-2018 |
William A. Kennington III <wak@google.com> |
watchdog: Use ResetTimeRemaining for wd_reset
Using this helper method reduces the number of dbus calls made during each watchdog reset.
Change-Id: I373db3babe03e05fca33eb4dbbbc7c07f95a39ea Signed-
watchdog: Use ResetTimeRemaining for wd_reset
Using this helper method reduces the number of dbus calls made during each watchdog reset.
Change-Id: I373db3babe03e05fca33eb4dbbbc7c07f95a39ea Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
d541027d | 10-May-2018 |
William A. Kennington III <wak@google.com> |
watchdog_service: Convert runtime errors to internal failures
We want to better adhere to the openbmc convention of logging our errors and reporting and internal exception upstack.
Change-Id: I78a2
watchdog_service: Convert runtime errors to internal failures
We want to better adhere to the openbmc convention of logging our errors and reporting and internal exception upstack.
Change-Id: I78a277ed564b1ac269d84c024b75d2b0f534e911 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
021b4c1a | 10-May-2018 |
William A. Kennington III <wak@google.com> |
watchdog: Handle and report internal failures
An upcoming change will introduce InternalFailures instead of using runtime exceptions for error handling in the watchdog service. We need to handle the
watchdog: Handle and report internal failures
An upcoming change will introduce InternalFailures instead of using runtime exceptions for error handling in the watchdog service. We need to handle these exceptions appropriately.
Change-Id: Icfc02d98821f307a37a4cf59911913c820e88744 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|