IB/mthca: Merge MR and FMR space on 64-bit systems
authorMichael S. Tsirkin <mst@mellanox.co.il>
Sat, 10 Feb 2007 21:13:12 +0000 (23:13 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 13 Feb 2007 00:16:29 +0000 (16:16 -0800)
commitc20e20ab0f3af9a44842ea11287c9ecd034a5d33
tree18c002063c73a3d415b9311ed65549305cfcee0e
parent391e4dea7189eef32b0c2d121e7e047110c1b83c
IB/mthca: Merge MR and FMR space on 64-bit systems

For Tavor, we currently reserve separate MPT and MTT space for FMRs to
avoid abusing the vmalloc space on 32 bit kernels. No such problem
exists on 64 bit kernels so let's not do it there.

This way we have a shared pool for MR and FMR resources, used on
demand.  This will also make it possible to write MTTs for regular
regions directly from driver.

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