From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Tull Subject: Re: [PATCH v5 27/28] fpga: dfl: afu: add afu sub feature support Date: Wed, 6 Jun 2018 11:04:15 -0500 Message-ID: References: <1525229431-3087-1-git-send-email-hao.wu@intel.com> <1525229431-3087-28-git-send-email-hao.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <1525229431-3087-28-git-send-email-hao.wu@intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Wu Hao Cc: Moritz Fischer , linux-fpga@vger.kernel.org, linux-kernel , linux-api@vger.kernel.org, "Kang, Luwei" , "Zhang, Yi Z" , Xiao Guangrong , Tim Whisonant , Enno Luebbers , Shiva Rao , Christopher Rauer List-Id: linux-api@vger.kernel.org On Tue, May 1, 2018 at 9:50 PM, Wu Hao wrote: Hi Hao, > From: Xiao Guangrong > > User Accelerated Function Unit sub feature exposes the MMIO region of > the AFU. After valid PR bitstream is programmed and the port is enabled, > then this MMIO region could be accessed. > > This patch adds support to enumerate the AFU MMIO region and expose it > to userspace via mmap file operation. Below interfaces are exposed to user: > > Sysfs interface: > * /sys/class/fpga_region///afu_id > Read-only. Indicate which PR bitstream is programmed to this AFU. > > Ioctl interfaces: > * DFL_FPGA_PORT_GET_INFO > Provide info to userspace on the number of supported region. > Only UAFU region is supported now. > > * DFL_FPGA_PORT_GET_REGION_INFO > Provide region information, including access permission, region size, > offset from the start of device fd. > > Signed-off-by: Tim Whisonant > Signed-off-by: Enno Luebbers > Signed-off-by: Shiva Rao > Signed-off-by: Christopher Rauer > Signed-off-by: Xiao Guangrong > Signed-off-by: Wu Hao Acked-by: Alan Tull