aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2018-11-19 11:44:42 +1100
committerStewart Smith <stewart@linux.ibm.com>2018-11-19 16:56:27 +1100
commita41470c9492039947fb6e5ed898017f7deb7bece (patch)
tree342b5404f1101900e0999fd358ae136d05a3ae15
parent184d7e4aca1accf1f311ea9645761d8056406b28 (diff)
downloadskiboot-a41470c9492039947fb6e5ed898017f7deb7bece.zip
skiboot-a41470c9492039947fb6e5ed898017f7deb7bece.tar.gz
skiboot-a41470c9492039947fb6e5ed898017f7deb7bece.tar.bz2
ipmi: Reduce ipmi_queue_msg_sync() polling loop time to 10ms
[ Upstream commit 28bf1faf44cd6bffcf3df0c00578b279f3faeab1 ] On a plain boot, this reduces the time spent in OPAL by ~170ms on p9dsu. This is due to hiomap (currently) using synchronous IPMI messages. It will also *significantly* reduce latency on runtime flash operations, as we'll spend typically 10-20ms in OPAL rather than 100-200ms. It's not an ideal solution to that, but it's a quick and obvious win for jitter. Cc: stable Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r--core/ipmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ipmi.c b/core/ipmi.c
index 6fdb9a7..44623a7 100644
--- a/core/ipmi.c
+++ b/core/ipmi.c
@@ -179,7 +179,7 @@ void ipmi_queue_msg_sync(struct ipmi_msg *msg)
unlock(&sync_lock);
while (sync_msg == msg)
- time_wait_ms(100);
+ time_wait_ms(10);
}
static void ipmi_read_event_complete(struct ipmi_msg *msg)