summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_main.c
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@mellanox.co.il>2005-11-05 01:03:32 +0100
committerRoland Dreier <rolandd@cisco.com>2005-11-05 06:28:21 +0100
commit0f69ce1e4474e5d5e266457e8a1f4166cf71f6c7 (patch)
treeea857a2670e77bd8e8e8538f42504bcaa1a515d5 /drivers/infiniband/hw/mthca/mthca_main.c
parent[PATCH] nvidiafb: Geforce 7800 series support added (diff)
downloadlinux-0f69ce1e4474e5d5e266457e8a1f4166cf71f6c7.tar.xz
linux-0f69ce1e4474e5d5e266457e8a1f4166cf71f6c7.zip
[IB] mthca: report page size capability
Report the device's real page size capability in mthca_query_device(). Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_main.c')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_main.c b/drivers/infiniband/hw/mthca/mthca_main.c
index 45c6328e780c..16594d1342df 100644
--- a/drivers/infiniband/hw/mthca/mthca_main.c
+++ b/drivers/infiniband/hw/mthca/mthca_main.c
@@ -181,6 +181,7 @@ static int __devinit mthca_dev_lim(struct mthca_dev *mdev, struct mthca_dev_lim
mdev->limits.reserved_uars = dev_lim->reserved_uars;
mdev->limits.reserved_pds = dev_lim->reserved_pds;
mdev->limits.port_width_cap = dev_lim->max_port_width;
+ mdev->limits.page_size_cap = ~(u32) (dev_lim->min_page_sz - 1);
mdev->limits.flags = dev_lim->flags;
/* IB_DEVICE_RESIZE_MAX_WR not supported by driver.