diff options
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_mrmw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_mrmw.c b/drivers/infiniband/hw/ehca/ehca_mrmw.c index da88738265ed..16c9efd8eeac 100644 --- a/drivers/infiniband/hw/ehca/ehca_mrmw.c +++ b/drivers/infiniband/hw/ehca/ehca_mrmw.c | |||
@@ -259,7 +259,7 @@ struct ib_mr *ehca_reg_phys_mr(struct ib_pd *pd, | |||
259 | pginfo.u.phy.num_phys_buf = num_phys_buf; | 259 | pginfo.u.phy.num_phys_buf = num_phys_buf; |
260 | pginfo.u.phy.phys_buf_array = phys_buf_array; | 260 | pginfo.u.phy.phys_buf_array = phys_buf_array; |
261 | pginfo.next_hwpage = | 261 | pginfo.next_hwpage = |
262 | ((u64)iova_start & ~(hw_pgsize - 1)) / hw_pgsize; | 262 | ((u64)iova_start & ~PAGE_MASK) / hw_pgsize; |
263 | 263 | ||
264 | ret = ehca_reg_mr(shca, e_mr, iova_start, size, mr_access_flags, | 264 | ret = ehca_reg_mr(shca, e_mr, iova_start, size, mr_access_flags, |
265 | e_pd, &pginfo, &e_mr->ib.ib_mr.lkey, | 265 | e_pd, &pginfo, &e_mr->ib.ib_mr.lkey, |
@@ -547,7 +547,7 @@ int ehca_rereg_phys_mr(struct ib_mr *mr, | |||
547 | pginfo.u.phy.num_phys_buf = num_phys_buf; | 547 | pginfo.u.phy.num_phys_buf = num_phys_buf; |
548 | pginfo.u.phy.phys_buf_array = phys_buf_array; | 548 | pginfo.u.phy.phys_buf_array = phys_buf_array; |
549 | pginfo.next_hwpage = | 549 | pginfo.next_hwpage = |
550 | ((u64)iova_start & ~(hw_pgsize - 1)) / hw_pgsize; | 550 | ((u64)iova_start & ~PAGE_MASK) / hw_pgsize; |
551 | } | 551 | } |
552 | if (mr_rereg_mask & IB_MR_REREG_ACCESS) | 552 | if (mr_rereg_mask & IB_MR_REREG_ACCESS) |
553 | new_acl = mr_access_flags; | 553 | new_acl = mr_access_flags; |