IB/ehca: Support large page MRs
authorHoang-Nam Nguyen <hnguyen@de.ibm.com>
Fri, 20 Jul 2007 14:01:51 +0000 (16:01 +0200)
committerRoland Dreier <rolandd@cisco.com>
Sat, 21 Jul 2007 04:19:43 +0000 (21:19 -0700)
commit5bb7d9290cd23a55906e4fe7a7fedecf29468c81
treea22071c38078848296c554281f3c0d6acdfa2bf3
parent23f1b38481596ad77e5f51562977b12c8418eee3
IB/ehca: Support large page MRs

Add support for MR pages larger than 4K on eHCA2. This reduces
firmware memory consumption.  If enabled via the mr_largepage module
parameter, the MR page size will be determined based on the MR length
and the hardware capabilities -- if the MR is >= 16M, 16M pages are
used, for example.

Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_classes.h
drivers/infiniband/hw/ehca/ehca_main.c
drivers/infiniband/hw/ehca/ehca_mrmw.c
drivers/infiniband/hw/ehca/ehca_mrmw.h
drivers/infiniband/hw/ehca/hcp_if.c