staging/hfi1: Add function stubs for TID caching
authorMitko Haralanov <mitko.haralanov@intel.com>
Fri, 5 Feb 2016 16:57:46 +0000 (11:57 -0500)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Feb 2016 22:10:38 +0000 (17:10 -0500)
commitf727a0c324ce2c7e7cbe478d22895bf7bc8ed0a6
tree96586b66b7b3999c497c5553df7c3ea980ded35e
parentfc77dbd34c5c99bce46d40a2491937c3bcbd10af
staging/hfi1: Add function stubs for TID caching

Add mmu notify helper functions and TID caching function
stubs in preparation for the TID caching implementation.

TID caching makes use of the MMU notifier to allow the driver
to respond to the user freeing memory which is allocated to
the HFI.

This patch implements the basic MMU notifier functions to insert,
find and remove buffer pages from memory based on the mmu_notifier
being invoked.

In addition it places stubs in place for the main entry points by
follow on code.

Follow up patches will complete the implementation of the interaction
with user space and makes use of these functions.

Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/Kconfig
drivers/staging/rdma/hfi1/Makefile
drivers/staging/rdma/hfi1/hfi.h
drivers/staging/rdma/hfi1/user_exp_rcv.c [new file with mode: 0644]
drivers/staging/rdma/hfi1/user_exp_rcv.h