]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/fpga/dfl-fme-pr.h
fpga: dfl: fme: add partial reconfiguration sub feature support
authorKang Luwei <luwei.kang@intel.com>
Sat, 30 Jun 2018 00:53:24 +0000 (08:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Jul 2018 11:55:46 +0000 (13:55 +0200)
commit29de76240e861d52b75405166337e94184f1875d
tree6332ab2f0ff81745d13f4fc818e6d4c49fc07af0
parent620e1902f6fe57ddacdabd9e33fadbd290be9652
fpga: dfl: fme: add partial reconfiguration sub feature support

Partial Reconfiguration (PR) is the most important function for FME. It
allows reconfiguration for given Port/Accelerated Function Unit (AFU).

It creates platform devices for fpga-mgr, fpga-regions and fpga-bridges,
and invokes fpga-region's interface (fpga_region_program_fpga) for PR
operation once PR request received via ioctl. Below user space interface
is exposed by this sub feature.

Ioctl interface:
* DFL_FPGA_FME_PORT_PR
  Do partial reconfiguration per information from userspace, including
  target port(AFU), buffer size and address info. It returns error code
  to userspace if failed. For detailed PR error information, user needs
  to read fpga-mgr's status sysfs interface.

Signed-off-by: Tim Whisonant <tim.whisonant@intel.com>
Signed-off-by: Enno Luebbers <enno.luebbers@intel.com>
Signed-off-by: Shiva Rao <shiva.rao@intel.com>
Signed-off-by: Christopher Rauer <christopher.rauer@intel.com>
Signed-off-by: Kang Luwei <luwei.kang@intel.com>
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Wu Hao <hao.wu@intel.com>
Acked-by: Alan Tull <atull@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/Makefile
drivers/fpga/dfl-fme-main.c
drivers/fpga/dfl-fme-pr.c [new file with mode: 0644]
drivers/fpga/dfl-fme-pr.h [new file with mode: 0644]
drivers/fpga/dfl-fme.h [new file with mode: 0644]
include/uapi/linux/fpga-dfl.h