summaryrefslogtreecommitdiffstats
path: root/tools/lguest
diff options
context:
space:
mode:
authorSudeep Dutt <sudeep.dutt@intel.com>2015-09-30 03:16:19 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 13:54:54 +0200
commit564c8d8dfc39638978ac37d37f61733240f31a36 (patch)
tree19d428166bf32aa08ee8901f5cf6baeca6d8b269 /tools/lguest
parentmisc: mic: SCIF DMA and CPU copy interface (diff)
downloadlinux-564c8d8dfc39638978ac37d37f61733240f31a36.tar.xz
linux-564c8d8dfc39638978ac37d37f61733240f31a36.zip
misc: mic: SCIF fence
This patch implements the fence APIs required to synchronize DMAs. SCIF provides an interface to return a "mark" for all DMAs programmed at the instant the API was called. Users can then "wait" on the mark provided previously by blocking inside the kernel. Upon receipt of a DMA completion interrupt the waiting thread is woken up. There is also an interface to signal DMA completion by polling for a location to be updated via a "signal" cookie to avoid the interrupt overhead in the mark/wait interface. SCIF allows programming fences on both the local and the remote node for both the mark/wait or the fence signal APIs. Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Nikhil Rao <nikhil.rao@intel.com> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@intel.com> Signed-off-by: Sudeep Dutt <sudeep.dutt@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lguest')
0 files changed, 0 insertions, 0 deletions