mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 23:17:31 +07:00
f1a2d865e7
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> |
||
---|---|---|
.. | ||
Makefile | ||
scif_api.c | ||
scif_debugfs.c | ||
scif_epd.c | ||
scif_epd.h | ||
scif_fd.c | ||
scif_main.c | ||
scif_main.h | ||
scif_map.h | ||
scif_mmap.c | ||
scif_nm.c | ||
scif_nodeqp.c | ||
scif_nodeqp.h | ||
scif_peer_bus.c | ||
scif_peer_bus.h | ||
scif_ports.c | ||
scif_rb.c | ||
scif_rb.h | ||
scif_rma_list.c | ||
scif_rma_list.h | ||
scif_rma.c | ||
scif_rma.h |