aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-03-05skiboot v6.0.18 release notesv6.0.18Vasant Hegde1-0/+184
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05hw/bt: Do not disable ipmi message retry during OPAL bootVasant Hegde1-1/+1
[ Upstream commit c0ab7b45db3dc44daf001f61324bd1418091dede ] Currently OPAL doesn't know whether BMC is functioning or not. If BMC is down (like BMC reboot), then we keep on retry sending message to BMC. So in some corner cases we may hit hard lockup issue in kernel. Ideally we should avoid using synchronous path as much as possible. But for now commit 01f977c3 added option to disable message retry in synchronous. But this fix is not required during boot. Hence lets disable IPMI message retry during OPAL boot. Fixes: 01f977c3 (hw/bt: Add backend interface to disable ipmi message) Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05core/ipmi: Add ipmi sync messages to top of the listVasant Hegde1-1/+1
[ Upstream commit 968c30905d7a61d777606a5f5c7949027564efd8 ] In ipmi_queue_msg_sync() path OPAL will wait until it gets response from BMC. If we do not get response ontime we may endup in kernel hardlockups. Hence lets add sync messages to top of the queue. This will reduces the chance of hardlockups. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05hw/bt: Introduce separate list for synchronous messagesVasant Hegde1-45/+63
[ Upstream commit 61978c2c54d082b6f29f492e898e59d6198cfb5f ] BT send logic always sends top of bt message list to BMC. Once BMC reads the message, it clears the interrupt and bt_idle() becomes true. bt_add_ipmi_msg_head() adds message to top of the list. If bt message list is not empty then: - if bt_idle() is true then we will endup sending message to BMC before getting response from BMC for inflight message. Looks like on some BMC implementation this results in message timeout. - else we endup starting message timer without actually sending message to BMC.. which is not correct. This patch introduces separate list to track synchronous messages. bt_add_ipmi_msg_head() will add messages to tail of this new list. We will always process this queue before processing normal queue. Finally this patch introduces new variable (inflight_bt_msg) to track inflight message. This will point to current inflight message. Suggested-by: Oliver O'Halloran <oohall@gmail.com> Suggested-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
2019-03-05powercap: occ: Fix the powercapping range allowed for userShilpasri G Bhat2-9/+30
[ Upstream commit a96739c6c1cdf02521cab703733cef8cb54debbf ] OCC provides two limits for minimum powercap. One being hard powercap minimum which is guaranteed by OCC and the other one is a soft powercap minimum which is lesser than hard-min and may or may not be asserted due to various power-thermal reasons. So to allow the users to access the entire powercap range, this patch exports soft powercap minimum as the "powercap-min" DT property. And it also adds a new DT property called "powercap-hard-min" to export the hard-min powercap limit. Fixes: c6aabe3f2eb5("powercap: occ: Add a generic powercap framework") Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add erase-one-block-twice testAndrew Jeffery1-0/+61
[ Upstream commit a3777e58990f0b540ab0acbf89c999cde09e2f64 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add write-one-block-twice testAndrew Jeffery1-0/+65
[ Upstream commit ed35a7d04bde4d3811cfcd87ff316be04ac6bdcf ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add read-one-block-twice testAndrew Jeffery1-0/+33
[ Upstream commit b94bb54f6569af09e2b866871acc192862670126 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add protocol-recovery-get-flash-info-failure testAndrew Jeffery1-0/+195
[ Upstream commit 9398b84fad0eaeb0dbfffb2f1f2c88a42ab5cc1e ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add protocol-recovery-failure-get-info testAndrew Jeffery1-0/+191
[ Upstream commit ce81b936413139b7952f858d530a7a170e1becaf ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add protocol-recovery-failure-ack testAndrew Jeffery1-0/+170
[ Upstream commit d0c798252521eb3c81f8f3883408d51ff9dc8ad0 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add erase-malformed testsAndrew Jeffery1-0/+92
[ Upstream commit 7735cc3546098c2970765d4d1c216895c651c8ad ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add flush-malformed testsAndrew Jeffery1-0/+95
[ Upstream commit 985c7a26bcb105f39c57b97675ca05e952df4914 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add mark-dirty-malformed testsAndrew Jeffery1-0/+101
[ Upstream commit c7b8293d867ad2456d3946e06346a9994b13c94d ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add create-write-window-malformed testsAndrew Jeffery1-0/+95
[ Upstream commit ee0314d2d9d06f0c0a67c5e5327408fe52a081f9 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add create-read-window-malformed testsAndrew Jeffery1-0/+95
[ Upstream commit bd1a08ab3e12b5054296af062e3cec9d1edc672d ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add get-flash-info-malformed testsAndrew Jeffery1-0/+64
[ Upstream commit 5c2ada09e76dbaa8afbaa3fc5d2712f1acd8b283 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add get-info-malformed testsAndrew Jeffery1-0/+64
[ Upstream commit 8745e91d48d16900f754849e6e8ec35c78eaa7a8 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add ack-malformed testsAndrew Jeffery1-0/+60
[ Upstream commit 4642a6c9a66b5ff52026dce5cd20532039da5b32 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add erase-error testAndrew Jeffery1-0/+41
[ Upstream commit 12ca08b58e5b8fda6497223650aea8b3f0859056 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add ack-error testAndrew Jeffery1-0/+7
[ Upstream commit ff5153612f8587599b67877264ff63b9e5faf848 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add flush-error testAndrew Jeffery1-0/+42
[ Upstream commit 7798ea646fb79e74cbb3fc66de9429f91ad41502 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add mark-dirty-error testAndrew Jeffery1-0/+45
[ Upstream commit a4349da67c9cd96651f994dd10ff600ee91b50d2 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add create-write-window-error testAndrew Jeffery1-0/+42
[ Upstream commit 364b433adb7d1dfa8c9a0ac0ac854ba516895f6e ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add create-read-window-error testAndrew Jeffery1-0/+42
[ Upstream commit c4d5734fde218bab65b85e03cdbeb854d350db73 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add get-flash-info-error testAndrew Jeffery1-0/+30
[ Upstream commit 0bef2695055d58e8c7ad86559f741e541248d36d ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add get-info-error testAndrew Jeffery1-0/+29
[ Upstream commit bcdd3f134970472583593476f04d13c074cd96de ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add get-flash-info testAndrew Jeffery1-0/+46
[ Upstream commit f65c781eee16b5fb2c4bd0a06c365133e2657026 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add action-error testAndrew Jeffery1-0/+30
[ Upstream commit ecf6430d1ee99368bfdacc808cabfec5e515610b ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add bad-sequence testAndrew Jeffery1-0/+31
[ Upstream commit 077d19d8240552153688bef86a5f08c76197ed46 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add event-during-eraseAndrew Jeffery1-0/+37
[ Upstream commit c2a4b4988eccbc8c73d366be6c7356f78385112f ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add event-before-erase testAndrew Jeffery1-0/+18
[ Upstream commit 410b80725ad266026e89b664b957e56e28b95660 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add erase-two-blocks testAndrew Jeffery1-0/+64
[ Upstream commit 275b3d12af39a469f45db6dc5187382ca037a4ac ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add erase-one-block testAndrew Jeffery1-0/+54
[ Upstream commit 5ee7b0f70b044029ab366e45203b956271bfe756 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add event-during-write testAndrew Jeffery1-0/+41
[ Upstream commit 9175028fc84acfebec7140fb3f6c16b0badf625a ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add event-before-write testAndrew Jeffery1-0/+15
[ Upstream commit 7f246ff2c9993f3484d934a10a6f408ee8e4884d ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add write-two-blocks testAndrew Jeffery1-0/+118
[ Upstream commit eb0c85ae9868fc0cc1f489c9de334faf595c70fc ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add write-one-block testAndrew Jeffery1-0/+92
[ Upstream commit e69b1135db38bac3ae329f0e8fc63f98c2a4d3e9 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add event-during-read testAndrew Jeffery1-0/+41
[ Upstream commit fd271bc570d379b37da4599b700f59427e9b28e0 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add event-before-readAndrew Jeffery1-0/+30
[ Upstream commit e1f20bfd7d91e7370f75e9ddf08c7e09cf22d15f ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add read-two-blocks testAndrew Jeffery1-7/+98
[ Upstream commit d4b870c8524c3abe9d5daf506d1ca30a07d70912 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add read-one-block testAndrew Jeffery1-3/+68
[ Upstream commit 5b12dfe8dd0d3dd62383796e6588bfa28c6b3a6d ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-05test-ipmi-hiomap: Add protocol-persistent-error testAndrew Jeffery1-0/+33
[ Upstream commit 41e6e8b4acf7951997679c7459ad37187e9d41f0 ] Cc: stable Cc: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Tested-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-04libflash/ipmi-hiomap: Enforce message size for empty responseAndrew Jeffery1-0/+6
[ Upstream commit 4af122b23402ca163012de527277901d7770c376 ] The protocol defines the response to the associated messages as empty except for the command ID and sequence fields. If the BMC is returning extra data consider the message malformed. Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-04libflash/ipmi-hiomap: Remove unused close handlingAndrew Jeffery1-5/+0
[ Upstream commit 6d8bd2dd9eab3792d3aafde33d5573c0276b72b8 ] Issuing a HIOMAP_C_CLOSE is not required by the protocol specification, rather a close can be implicit in a subsequent CREATE_{READ,WRITE}_WINDOW request. The implicit close provides an opportunity to reduce LPC traffic and the implementation takes up that optimisation, so remove the case from the IPMI callback handler. Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-04libflash/ipmi-hiomap: Overhaul event handlingAndrew Jeffery2-64/+58
[ Upstream commit 403d527269bed128a5a114edc2a8e040fc28fc78 ] Reworking the event handling was inspired by a bug report by Vasant where the host would get wedged on multiple flash access attempts in the face of a persistent error state on the BMC-side. The cause of this bug was the early-exit based on ctx->update, which erronously assumed that all events had been completely handled in prior calls to ipmi_hiomap_handle_events(). This is not true if e.g. HIOMAP_E_DAEMON_READY is clear in the prior calls. Regardless, there were other correctness and efficiency problems with the handling strategy: * Ack-able event state was not restored in the face of errors in the process of re-establishing protocol state * It forced needless window restoration with respect to the context in which ipmi_hiomap_handle_events() was called. * Tests for HIOMAP_E_DAEMON_READY and HIOMAP_E_FLASH_LOST were redundant with the overhauled error handling introduced in the previous patch Fix all of the above issues and add comments to explain the event handling flow. Tests for correctness follow later in the series. Cc: stable Cc: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-04libflash/ipmi-hiomap: Overhaul error handlingAndrew Jeffery1-107/+197
[ Upstream commit 64a61885a2294eacc54d51962781647ab5c58889 ] The aim is to improve the robustness with respect to absence of the BMC-side daemon. The current error handling roughly mirrors what was done for the mailbox implementation, but there's room for improvement. Errors are split into two classes, those that affect the transport state and those that affect the window validity. From here, we push the transport state error checks right to the bottom of the stack, to ensure the link is known to be in a good state before any message is sent. Window validity tests remain as they were in the hiomap_window_move() and ipmi_hiomap_read() functions. Validity tests are not necessary in the write and erase paths as we will receive an error response from the BMC when performing a dirty or flush on an invalid window. Recovery also remains as it was, done on entry to the blocklevel callbacks. If an error state is encountered in the middle of an operation no attempt is made to recover it on the spot, instead the error is returned up the stack and the caller can choose how it wishes to respond. Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-04libflash/ipmi-hiomap: Fix leak of msg in callbackAndrew Jeffery1-0/+1
[ Upstream commit 1b3a5dfbdf924e5c1f0c4f5401eb4535cd2d8d41 ] Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-04test-ipmi-hiomap: Print some information on earlyAndrew Jeffery1-1/+6
[ Upstream commit f46ed4f7ee79f7093c3a8d494052f5d8656e6101 ] scenario_exit() Now we dump the index of the event that we exited on if it's not the appropriate scenario event type. Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2019-03-04test-ipmi-hiomap: Ensure the completion code is setAndrew Jeffery1-0/+2
[ Upstream commit 5293333dd1afb0a1abd355df75a163812e8e196a ] ipmi_queue_msg_sync() intercepts and implements the IPMI transfers for the test scenarios. In some scenarios we want to return IPMI error codes, so make sure the msg->cc field is set. Cc: stable Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>