[ofa-general] [PATCH] mthca: increase INIT_HCA timeout

akepner at sgi.com akepner at sgi.com
Mon Apr 13 11:46:57 PDT 2009


Here's a little patch we've been carrying along for a while.

If the num_qp module parameter is set higher than 2^19 or so, 
HCA initialization times out with EBUSY, e.g.:

ib_mthca: probe of 0031:01:00.0 failed with error -16

A 60 second timeout seems to be sufficient for the max number 
of QPs that the h/w can accomodate.

Signed-off-by: Arthur Kepner <akepner at sgi.com>

---

 mthca_cmd.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/mthca/mthca_cmd.c b/drivers/infiniband/hw/mthca/mthca_cmd.c
index c33e1c5..6ba8a43 100644
--- a/drivers/infiniband/hw/mthca/mthca_cmd.c
+++ b/drivers/infiniband/hw/mthca/mthca_cmd.c
@@ -1390,7 +1390,7 @@ int mthca_INIT_HCA(struct mthca_dev *dev,
 		MTHCA_PUT(inbox, param->uarc_base,   INIT_HCA_UAR_CTX_BASE_OFFSET);
 	}
 
-	err = mthca_cmd(dev, mailbox->dma, 0, 0, CMD_INIT_HCA, HZ, status);
+	err = mthca_cmd(dev, mailbox->dma, 0, 0, CMD_INIT_HCA, 60*HZ, status);
 
 	mthca_free_mailbox(dev, mailbox);
 	return err;



More information about the general mailing list