linux_dsm_epyc7002/drivers/misc/mic/scif
Sudeep Dutt f1a2d865e7 misc: mic: SCIF remote memory map/unmap interface
This patch implements the SCIF mmap/munmap interface. A similar
capability is provided to kernel clients via the
scif_get_pages()/scif_put_pages() APIs. The SCIF mmap interface
queries to check if a window is valid and then remaps the local
virtual address to the remote physical pages. These mappings are
subsequently destroyed upon receipt of the VMA close operation or
scif_get_pages().  This functionality allows SCIF users to directly
access remote memory without any driver interaction once the mappings
are created thereby providing bare-metal PCIe latency. These mappings
are zapped to avoid RMA accesses from user space, if a Coprocessor is
reset.

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>
Signed-off-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-04 12:54:54 +01:00
..
Makefile misc: mic: SCIF open close bind and listen APIs 2015-05-24 12:13:36 -07:00
scif_api.c misc: mic: Add support for kernel mode SCIF clients 2015-10-04 12:46:06 +01:00
scif_debugfs.c misc: mic: SCIF module initialization 2015-05-24 12:13:36 -07:00
scif_epd.c misc: mic: SCIF messaging and node enumeration APIs 2015-05-24 12:13:37 -07:00
scif_epd.h misc: mic: SCIF poll 2015-10-04 12:46:06 +01:00
scif_fd.c misc: mic: SCIF poll 2015-10-04 12:46:06 +01:00
scif_main.c misc: mic: Add support for kernel mode SCIF clients 2015-10-04 12:46:06 +01:00
scif_main.h misc: mic: Add support for kernel mode SCIF clients 2015-10-04 12:46:06 +01:00
scif_map.h misc: mic: SCIF module initialization 2015-05-24 12:13:36 -07:00
scif_mmap.c misc: mic: SCIF remote memory map/unmap interface 2015-10-04 12:54:54 +01:00
scif_nm.c misc: mic: Add support for kernel mode SCIF clients 2015-10-04 12:46:06 +01:00
scif_nodeqp.c misc: mic: Add support for kernel mode SCIF clients 2015-10-04 12:46:06 +01:00
scif_nodeqp.h misc: mic: SCIF open close bind and listen APIs 2015-05-24 12:13:36 -07:00
scif_peer_bus.c misc: mic: Add support for kernel mode SCIF clients 2015-10-04 12:46:06 +01:00
scif_peer_bus.h misc: mic: Add support for kernel mode SCIF clients 2015-10-04 12:46:06 +01:00
scif_ports.c misc: mic: SCIF open close bind and listen APIs 2015-05-24 12:13:36 -07:00
scif_rb.c misc: mic: Fix randconfig build error by including errno.h 2015-06-12 17:01:43 -07:00
scif_rb.h misc: mic: SCIF ring buffer infrastructure 2015-05-24 12:13:36 -07:00
scif_rma_list.c misc: mic: SCIF RMA list operations 2015-10-04 12:54:54 +01:00
scif_rma_list.h misc: mic: SCIF RMA list operations 2015-10-04 12:54:54 +01:00
scif_rma.c misc: mic: SCIF memory registration and unregistration 2015-10-04 12:54:54 +01:00
scif_rma.h misc: mic: SCIF RMA header file 2015-10-04 12:54:54 +01:00