diff mbox

bt: Make queue length 10

Message ID 1425440184-32398-2-git-send-email-joel@jms.id.au
State Accepted
Headers show

Commit Message

Joel Stanley March 4, 2015, 3:36 a.m. UTC
Now that skiboot supports more IPMI functionality we are queuing more
than 5 messages at a time. For example in the astbmc platform.init()
adds 6 messages to the queue.

Shifting to ten ensures current systems boot without dropping messages,
and should give us some breathing room.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 hw/bt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/hw/bt.c b/hw/bt.c
index 56a67a9..94776e1 100644
--- a/hw/bt.c
+++ b/hw/bt.c
@@ -57,7 +57,7 @@ 
 /*
  * Maximum number of outstanding messages to allow in the queue.
  */
-#define BT_MAX_QUEUE_LEN 5
+#define BT_MAX_QUEUE_LEN 10
 
 /*
  * How long (in TB ticks) before a message is timed out.
@@ -386,7 +386,7 @@  static void bt_add_msg(struct bt_msg *bt_msg)
 	bt_msg->seq = ipmi_seq++;
 	bt.queue_len++;
 	if (bt.queue_len > BT_MAX_QUEUE_LEN) {
-		/* Maximum ueue lenght exceeded - remove the oldest message
+		/* Maximum queue length exceeded - remove the oldest message
 		   from the queue. */
 		BT_ERR(bt_msg, "Maximum queue length exceeded");
 		bt_msg = list_tail(&bt.msgq, struct bt_msg, link);