]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34f3e650c5dbf12634ce94041472f2471e23993e
tree6332ab2f0ff81745d13f4fc818e6d4c49fc07af0
parent417e809c734f064993c7f0eb07d46f872d1602df
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