IB/mthca: Fix timeout for INIT_HCA and a few other commands
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Tue, 21 Apr 2009 04:12:25 +0000 (21:12 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 21 Apr 2009 04:12:25 +0000 (21:12 -0700)
commit8531f1f14a85c004d5063a0a78c72d0b686ccb8e
tree0cc55a1673d1966096828c8e057977f7784a9e5a
parenta939b96cccdb65df80a52447ec8e4a6d79c56dbb
IB/mthca: Fix timeout for INIT_HCA and a few other commands

Commands INIT_HCA, CLOSE_HCA, SYS_EN, SYS_DIS, and CLOSE_IB all have 1
second timeouts.  For INIT_HCA this causes problems when had more than
2^18 are QPs configured, since the command takes more than 1 second to
complete.

All other commands have 60-second timeouts.  This patch makes the
above commands consistent with the rest of the commands (and with the
chip documentation).

This patch is an expansion of a patch from Arthur Kepner
<akepner@sgi.com> fixing just the INIT_HCA timeout.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cmd.c