aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_profile.c')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_profile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_profile.c b/drivers/infiniband/hw/mthca/mthca_profile.c
index 9ffe76e23a9e..cfd6f70c8df3 100644
--- a/drivers/infiniband/hw/mthca/mthca_profile.c
+++ b/drivers/infiniband/hw/mthca/mthca_profile.c
@@ -95,7 +95,7 @@ u64 mthca_make_profile(struct mthca_dev *dev,
95 profile[MTHCA_RES_RDB].size = MTHCA_RDB_ENTRY_SIZE; 95 profile[MTHCA_RES_RDB].size = MTHCA_RDB_ENTRY_SIZE;
96 profile[MTHCA_RES_MCG].size = MTHCA_MGM_ENTRY_SIZE; 96 profile[MTHCA_RES_MCG].size = MTHCA_MGM_ENTRY_SIZE;
97 profile[MTHCA_RES_MPT].size = dev_lim->mpt_entry_sz; 97 profile[MTHCA_RES_MPT].size = dev_lim->mpt_entry_sz;
98 profile[MTHCA_RES_MTT].size = dev_lim->mtt_seg_sz; 98 profile[MTHCA_RES_MTT].size = MTHCA_MTT_SEG_SIZE;
99 profile[MTHCA_RES_UAR].size = dev_lim->uar_scratch_entry_sz; 99 profile[MTHCA_RES_UAR].size = dev_lim->uar_scratch_entry_sz;
100 profile[MTHCA_RES_UDAV].size = MTHCA_AV_SIZE; 100 profile[MTHCA_RES_UDAV].size = MTHCA_AV_SIZE;
101 profile[MTHCA_RES_UARC].size = request->uarc_size; 101 profile[MTHCA_RES_UARC].size = request->uarc_size;
@@ -229,10 +229,9 @@ u64 mthca_make_profile(struct mthca_dev *dev,
229 break; 229 break;
230 case MTHCA_RES_MTT: 230 case MTHCA_RES_MTT:
231 dev->limits.num_mtt_segs = profile[i].num; 231 dev->limits.num_mtt_segs = profile[i].num;
232 dev->limits.mtt_seg_size = dev_lim->mtt_seg_sz;
233 dev->mr_table.mtt_base = profile[i].start; 232 dev->mr_table.mtt_base = profile[i].start;
234 init_hca->mtt_base = profile[i].start; 233 init_hca->mtt_base = profile[i].start;
235 init_hca->mtt_seg_sz = ffs(dev_lim->mtt_seg_sz) - 7; 234 init_hca->mtt_seg_sz = ffs(MTHCA_MTT_SEG_SIZE) - 7;
236 break; 235 break;
237 case MTHCA_RES_UAR: 236 case MTHCA_RES_UAR:
238 dev->limits.num_uars = profile[i].num; 237 dev->limits.num_uars = profile[i].num;