odp.c (29583dfcd2dd72c766422bd05c16f06c6b1fb356) odp.c (02648b4b09d506bd4df2e17bf109c229fc728640)
1/*
2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 216 unchanged lines hidden (view full) ---

225
226static bool mlx5_ib_invalidate_range(struct mmu_interval_notifier *mni,
227 const struct mmu_notifier_range *range,
228 unsigned long cur_seq)
229{
230 struct ib_umem_odp *umem_odp =
231 container_of(mni, struct ib_umem_odp, notifier);
232 struct mlx5_ib_mr *mr;
1/*
2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 216 unchanged lines hidden (view full) ---

225
226static bool mlx5_ib_invalidate_range(struct mmu_interval_notifier *mni,
227 const struct mmu_notifier_range *range,
228 unsigned long cur_seq)
229{
230 struct ib_umem_odp *umem_odp =
231 container_of(mni, struct ib_umem_odp, notifier);
232 struct mlx5_ib_mr *mr;
233 const u64 umr_block_mask = (MLX5_UMR_MTT_ALIGNMENT /
234 sizeof(struct mlx5_mtt)) - 1;
233 const u64 umr_block_mask = MLX5_UMR_MTT_NUM_ENTRIES_ALIGNMENT - 1;
235 u64 idx = 0, blk_start_idx = 0;
236 u64 invalidations = 0;
237 unsigned long start;
238 unsigned long end;
239 int in_block = 0;
240 u64 addr;
241
242 if (!mmu_notifier_range_blockable(range))

--- 1579 unchanged lines hidden ---
234 u64 idx = 0, blk_start_idx = 0;
235 u64 invalidations = 0;
236 unsigned long start;
237 unsigned long end;
238 int in_block = 0;
239 u64 addr;
240
241 if (!mmu_notifier_range_blockable(range))

--- 1579 unchanged lines hidden ---