]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
misc: mic: SCIF memory registration and unregistration
authorSudeep Dutt <sudeep.dutt@intel.com>
Wed, 30 Sep 2015 01:15:29 +0000 (18:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 11:54:54 +0000 (12:54 +0100)
commitba612aa8b487bdf345602a23315c30a181bf6406
treefc96e1b59135bf6e3e437a8a4e74ba70c01e6753
parentc3ae6175dd371fcf5855452257b30c492f59054a
misc: mic: SCIF memory registration and unregistration

This patch implements the SCIF APIs required to pin and unpin
pages. SCIF registration locks down the pages. It then sends a remote
window allocation request to the peer. Once the peer has allocated
memory, the local SCIF endpoint copies the pinned page information to
the peer and notifies the peer once the copy has complete. The peer
upon receipt of the registration notification adds the new remote
window to its list. At this point the window page information is
available on both self and remote nodes so that they can start
performing SCIF DMAs, CPU copies and fences. The unregistration API
tears down the registration at both self and remote nodes.

Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/scif/scif_rma.c [new file with mode: 0644]