IB/mthca: fix QP size limits for mem-free HCAs
commita3c8ab4fe8f006d742c24be677518bfa9862e732
authorJack Morgenstein <jackm@mellanox.co.il>
Wed, 30 Nov 2005 17:55:22 +0000 (30 09:55 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 30 Nov 2005 17:55:22 +0000 (30 09:55 -0800)
tree641f58f25ced1cd0beea34ace95c8aa01aa82825
parentf4e401562c11c7ca65592ebd749353cf0b19af7b
IB/mthca: fix QP size limits for mem-free HCAs

Unlike tavor, the max work queue size is an exact power of 2 for arbel
mode, despite what the documentation (of the QUERY_DEV_LIM firmware
command) says.  Without this patch, on Arbel, we can start with a QP
of a valid size and get above the reported limit after rounding to the
next power of two.

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