IB/hfi1: Fix QOS num_vl bit width
authorDean Luick <dean.luick@intel.com>
Tue, 12 Apr 2016 17:50:10 +0000 (10:50 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 20:32:27 +0000 (16:32 -0400)
commit153d58cd8e2871ec99d3a6570dd26b6f569a8b5e
treefd1fe31e123078b642e71ebea2bac5e1d60222f6
parentf9c82a0b75a120ca3e9542a7a6e60244d04c915a
IB/hfi1: Fix QOS num_vl bit width

The bit width for num_vls, n, needs to be calculated based on
the pow2 rounded up of the number of vls.  Otherwise num_vls of 3,
5, 6, and 7 will have misplaced QOS RSM map entries.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/chip.c