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 <[email protected]>

---

 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;
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to