diff options
author | Roland Dreier <roland@topspin.com> | 2005-04-16 18:26:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:26:13 -0400 |
commit | 86562a139182bb19c984347f9625b61f3e6f7815 (patch) | |
tree | 97984c9e04c31a5d2055e4bcac16bb11c923eca1 /drivers/infiniband/hw/mthca/mthca_memfree.h | |
parent | 79b61dceafce696d72661d23a02393566b1899ab (diff) |
[PATCH] IB/mthca: map MPT/MTT context in mem-free mode
In mem-free mode, when allocating memory regions, make sure that the HCA has
context memory mapped to cover the virtual space used for the MPT and MTTs
being used.
Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_memfree.h')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_memfree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_memfree.h b/drivers/infiniband/hw/mthca/mthca_memfree.h index a8fa97e140f5..ef72e430250a 100644 --- a/drivers/infiniband/hw/mthca/mthca_memfree.h +++ b/drivers/infiniband/hw/mthca/mthca_memfree.h | |||
@@ -85,6 +85,10 @@ struct mthca_icm_table *mthca_alloc_icm_table(struct mthca_dev *dev, | |||
85 | void mthca_free_icm_table(struct mthca_dev *dev, struct mthca_icm_table *table); | 85 | void mthca_free_icm_table(struct mthca_dev *dev, struct mthca_icm_table *table); |
86 | int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj); | 86 | int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj); |
87 | void mthca_table_put(struct mthca_dev *dev, struct mthca_icm_table *table, int obj); | 87 | void mthca_table_put(struct mthca_dev *dev, struct mthca_icm_table *table, int obj); |
88 | int mthca_table_get_range(struct mthca_dev *dev, struct mthca_icm_table *table, | ||
89 | int start, int end); | ||
90 | void mthca_table_put_range(struct mthca_dev *dev, struct mthca_icm_table *table, | ||
91 | int start, int end); | ||
88 | 92 | ||
89 | static inline void mthca_icm_first(struct mthca_icm *icm, | 93 | static inline void mthca_icm_first(struct mthca_icm *icm, |
90 | struct mthca_icm_iter *iter) | 94 | struct mthca_icm_iter *iter) |