Re: [PATCH v4 08/12] fpga: dfl: make uinit callback optional

2019-08-09 Thread Moritz Fischer
On Sun, Aug 04, 2019 at 06:20:18PM +0800, Wu Hao wrote: > This patch makes uinit callback of sub features optional. With > this change, people don't need to prepare any empty uinit callback. > > Signed-off-by: Wu Hao Acked-by: Moritz Fischer > --- > drivers/fpga/dfl.c |

Re: [PATCH v5 1/9] fpga: dfl: make init callback optional

2019-08-20 Thread Moritz Fischer
Hi, On Mon, Aug 12, 2019 at 10:49:56AM +0800, Wu Hao wrote: > This patch makes init callback of sub features optional. With > this change, people don't need to prepare any empty init callback. > > Signed-off-by: Wu Hao Acked-by: Moritz Fischer > --- > drivers/fpga/dfl

Re: [PATCH v5 2/9] fpga: dfl: fme: convert platform_driver to use dev_groups

2019-08-20 Thread Moritz Fischer
gned-off-by: Wu Hao Acked-by: Moritz Fischer > --- > drivers/fpga/dfl-fme-main.c | 29 ++--- > 1 file changed, 2 insertions(+), 27 deletions(-) > > diff --git a/drivers/fpga/dfl-fme-main.c b/drivers/fpga/dfl-fme-main.c > index f033f1c..bf8114d 100644 &g

Re: [PATCH v5 3/9] fpga: dfl: afu: convert platform_driver to use dev_groups

2019-08-22 Thread Moritz Fischer
> Signed-off-by: Wu Hao Acked-by: Moritz Fischer > --- > drivers/fpga/dfl-afu-main.c | 69 > +++-- > 1 file changed, 36 insertions(+), 33 deletions(-) > > diff --git a/drivers/fpga/dfl-afu-main.c b/drivers/fpga/dfl-afu-main.c > i

[PATCH 00/15] FPGA DFL updates

2019-06-27 Thread Moritz Fischer
Hi Greg, can you please take the following patches. They're mostly new features and some cleanup of the DFL internals. They've been on the mailing list and have been reviewed. Note: I've seen that Mauro touched Documentation/fpga/dfl.rst in linux-next commit c220a1fae6c5d ("docs: fpga: con

[PATCH 12/15] fpga: dfl: afu: add error reporting support.

2019-06-27 Thread Moritz Fischer
-by: Alan Tull Signed-off-by: Moritz Fischer --- .../ABI/testing/sysfs-platform-dfl-port | 39 +++ drivers/fpga/Makefile | 1 + drivers/fpga/dfl-afu-error.c | 225 ++ drivers/fpga/dfl-afu-main.c | 4 + drivers

[PATCH 07/15] fpga: dfl: pci: enable SRIOV support.

2019-06-27 Thread Moritz Fischer
Acked-by: Moritz Fischer Signed-off-by: Moritz Fischer --- drivers/fpga/dfl-pci.c | 40 drivers/fpga/dfl.c | 41 + drivers/fpga/dfl.h | 1 + 3 files changed, 82 insertions(+) diff --git a/drivers/fpga/dfl

[PATCH 02/15] fpga: dfl: fme: remove copy_to_user() in ioctl for PR

2019-06-27 Thread Moritz Fischer
From: Wu Hao This patch removes copy_to_user() code in partial reconfiguration ioctl, as it's useless as user never needs to read the data structure after ioctl. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull Signed-off-by: Moritz Fi

[PATCH 05/15] Documentation: fpga: dfl: add descriptions for virtualization and new interfaces.

2019-06-27 Thread Moritz Fischer
Signed-off-by: Wu Hao Acked-by: Alan Tull Signed-off-by: Moritz Fischer --- Documentation/fpga/dfl.rst | 100 + 1 file changed, 100 insertions(+) diff --git a/Documentation/fpga/dfl.rst b/Documentation/fpga/dfl.rst index 2f125abd777f..be9929dd7251 100644 --- a

[PATCH 03/15] fpga: dfl: fme: align PR buffer size per PR datawidth

2019-06-27 Thread Moritz Fischer
Acked-by: Moritz Fischer Signed-off-by: Moritz Fischer --- drivers/fpga/dfl-fme-pr.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/fpga/dfl-fme-pr.c b/drivers/fpga/dfl-fme-pr.c index 6ec0f09e5994..3c71dc3faaf5 100644 --- a/drivers/fpga/dfl-fme-pr.c

[PATCH 08/15] fpga: dfl: afu: add AFU state related sysfs interfaces

2019-06-27 Thread Moritz Fischer
rance reporting). Signed-off-by: Ananda Ravuri Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Signed-off-by: Moritz Fischer --- .../ABI/testing/sysfs-platform-dfl-port | 30 drivers/fpga/dfl-afu-main.c | 140 ++ drivers/fpga/

[PATCH 10/15] fpga: dfl: add id_table for dfl private feature driver

2019-06-27 Thread Moritz Fischer
From: Wu Hao This patch adds id_table for each dfl private feature driver, it allows to reuse same private feature driver to match and support multiple dfl private features. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull Signed-off-by: Moritz

[PATCH 11/15] fpga: dfl: afu: export __port_enable/disable function.

2019-06-27 Thread Moritz Fischer
From: Wu Hao As these two functions are used by other private features. e.g. in error reporting private feature, it requires to check port status and reset port for error clearing. Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull Signed-off-by

[PATCH 14/15] fpga: dfl: fme: add capability sysfs interfaces

2019-06-27 Thread Moritz Fischer
From: Wu Hao This patch adds 3 read-only sysfs interfaces for FPGA Management Engine (FME) block for capabilities including cache_size, fabric_version and socket_id. Signed-off-by: Luwei Kang Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Signed-off-by: Moritz Fischer

[PATCH 04/15] fpga: dfl: fme: support 512bit data width PR

2019-06-27 Thread Moritz Fischer
which is only used in integrated solution that AVX512 is always supported. This revision 2 hardware doesn't support 32bit PR. Signed-off-by: Ananda Ravuri Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Signed-off-by: Moritz Fischer --- drivers/fpga/dfl-fme-main.c

[PATCH 13/15] fpga: dfl: afu: add STP (SignalTap) support

2019-06-27 Thread Moritz Fischer
Fischer Acked-by: Alan Tull Signed-off-by: Moritz Fischer --- drivers/fpga/dfl-afu-main.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/fpga/dfl-afu-main.c b/drivers/fpga/dfl-afu-main.c index bcf6e285a854..8241aced2d5d 100644 --- a/drivers/fpga

[PATCH 09/15] fpga: dfl: afu: add userclock sysfs interfaces.

2019-06-27 Thread Moritz Fischer
revision sysfs interface is exposed to userspace application for this purpose too. Signed-off-by: Ananda Ravuri Signed-off-by: Russ Weight Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Signed-off-by: Moritz Fischer --- .../ABI/testing/sysfs-platform-dfl-port | 35

[PATCH 15/15] fpga: dfl: fme: add global error reporting support

2019-06-27 Thread Moritz Fischer
: Ananda Ravuri Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Signed-off-by: Moritz Fischer --- .../ABI/testing/sysfs-platform-dfl-fme| 75 drivers/fpga/Makefile | 2 +- drivers/fpga/dfl-fme-error.c | 385

[PATCH 06/15] fpga: dfl: fme: add DFL_FPGA_FME_PORT_RELEASE/ASSIGN ioctl support.

2019-06-27 Thread Moritz Fischer
related userspace interfaces on PF. Signed-off-by: Zhang Yi Z Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Acked-by: Alan Tull Acked-by: Moritz Fischer Signed-off-by: Moritz Fischer --- drivers/fpga/dfl-fme-main.c | 54 + drivers/fpga/dfl.c| 107

[PATCH 01/15] fpga: dfl-fme-mgr: fix FME_PR_INTFC_ID register address.

2019-06-27 Thread Moritz Fischer
From: Wu Hao FME_PR_INTFC_ID is used as compat_id for fpga manager and region, but high 64 bits and low 64 bits of the compat_id are swapped by mistake. This patch fixes this problem by fixing register address. Signed-off-by: Wu Hao Acked-by: Alan Tull Acked-by: Moritz Fischer Signed-off-by

Re: [PATCH v20 02/10] doc: fpga-mgr: add fpga image info to api

2016-10-17 Thread Moritz Fischer
Hi Alan, couple of nits inline and some comments on ordering the patches ;-) On Mon, Oct 17, 2016 at 6:09 PM, Alan Tull wrote: > This patch adds a minor change in the FPGA Mangager API s/Mangager/Manager/ > to hold information that is specific to an FPGA image > file. This change is expected

Re: [PATCH v20 10/10] fpga-manager: Add Socfpga Arria10 support

2016-10-18 Thread Moritz Fischer
On Mon, Oct 17, 2016 at 11:09:41AM -0500, Alan Tull wrote: > Add low level driver to support reprogramming FPGAs for Altera > SoCFPGA Arria10. > > Signed-off-by: Alan Tull Reviewed-by: Moritz Fischer > --- > v19: Added to this patchset as has been changed to use >f

[PATCH 4/4] fpga: region: change api, add fpga_region_create/free

2018-04-26 Thread Moritz Fischer
eeded. Callers can just "region->dev.groups = groups;" after calling fpga_region_create. Update the drivers that call fpga_region_register with the new API. Signed-off-by: Alan Tull Signed-off-by: Moritz Fischer --- Documentation/fpga/fpga-region.txt | 3 +- drivers/fpga/fpga-reg

[PATCH 2/4] fpga: manager: change api, don't use drvdata

2018-04-26 Thread Moritz Fischer
fpga_manager *mgr); Update the drivers that call fpga_mgr_register with the new API. Signed-off-by: Alan Tull [Moritz: Fixup whitespace issue] Reported-by: Jiuyue Ma Signed-off-by: Moritz Fischer --- Documentation/fpga/fpga-mgr.txt | 35 ++ drivers/fpga/altera-cvp.c| 19

[PATCH 0/4] FPGA Manager Patches for 4.18

2018-04-26 Thread Moritz Fischer
Hi Greg, Here's Alan's reworked patchset changing the API for creating and registering FPGA Managers, Bridges and Regions following your suggestions on the API. These go on top of Paolo and Alan's patches that you queued up the other day. Thanks, Moritz Alan Tull (4): fpga: region: don't use

[PATCH 1/4] fpga: region: don't use drvdata in common fpga code

2018-04-26 Thread Moritz Fischer
has to create an extra device for each child region to hold drvdata. Signed-off-by: Alan Tull Reported-by: Jiuyue Ma Signed-off-by: Moritz Fischer --- drivers/fpga/fpga-region.c| 1 - drivers/fpga/of-fpga-region.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 3/4] fpga: bridge: change api, don't use drvdata

2018-04-26 Thread Moritz Fischer
fpga_bridge_unregister(struct fpga_bridge *br); Update the drivers that call fpga_bridge_register with the new API. Signed-off-by: Alan Tull Reported-by: Jiuyue Ma Signed-off-by: Moritz Fischer --- drivers/fpga/altera-fpga2sdram.c| 21 ++--- drivers/fpga/altera-freeze-bridge.c | 22 +++-- drivers/fpga

Re: [PATCHv5 1/8] dt-bindings, firmware: add Intel Stratix10 service layer binding

2018-05-24 Thread Moritz Fischer
On Thu, May 24, 2018 at 11:33:13AM -0500, richard.g...@linux.intel.com wrote: > From: Richard Gong > > Add a device tree binding for the Intel Stratix10 service layer driver > > Signed-off-by: Richard Gong > Signed-off-by: Alan Tull > Reviewed-by: Rob Herring Ack

Re: [PATCHv5 2/8] arm64: dts: stratix10: add stratix10 service driver binding to base dtsi

2018-05-24 Thread Moritz Fischer
Hi Richard, On Thu, May 24, 2018 at 11:33:14AM -0500, richard.g...@linux.intel.com wrote: > From: Richard Gong > > Add Intel Stratix10 service layer to the device tree > > Signed-off-by: Richard Gong > Signed-off-by: Alan Tull Acked-by: Moritz Fischer > --- > v2: Cha

Re: [PATCH v3 1/4] fpga: mgr: add devm_fpga_mgr_create

2018-10-15 Thread Moritz Fischer
Hi Alan, On Mon, Oct 15, 2018 at 7:55 AM Alan Tull wrote: > > On Wed, Sep 26, 2018 at 11:12 AM Alan Tull wrote: > > Any other comments on this patchset? Looks good to me, Sorry for the delay Acked-by: Moritz Fischer Cheers, Moritz

Re: [PATCH v3 4/4] docs: fpga: document programming fpgas using regions

2018-10-15 Thread Moritz Fischer
for > programming FPGAs. > > Signed-off-by: Alan Tull > Suggested-by: Federico Vaga Acked-by: Moritz Fischer > --- > v2: Add suggested-by > s/a FPGA/an FPGA/ > document freeing the fpga_mgr_info on success path > minor formatting fixes and suggested edits &

Re: [PATCH v3 3/4] fpga: add devm_fpga_region_create

2018-10-15 Thread Moritz Fischer
On Wed, Sep 26, 2018 at 9:12 AM Alan Tull wrote: > > Add devm_fpga_region_create() which is the > managed version of fpga_region_create(). > > Change current region drivers to use > devm_fpga_region_create(). > > Signed-off-by: Alan Tull > Suggested-by: Federico Vaga

Re: [PATCHv10 8/8] firmware: add remote status update client support

2018-11-06 Thread Moritz Fischer
Hi Richard, On Tue, Nov 06, 2018 at 10:52:52AM -0600, richard.g...@linux.intel.com wrote: > From: Richard Gong > > Extend Intel Stratix10 service layer to support the second service layer > client, Remote Status Update (RSU). > > RSU is used to provide our customers with protection against load

Re: [PATCHv10 4/8] dt-bindings: fpga: add Stratix10 SoC FPGA manager binding

2018-11-06 Thread Moritz Fischer
Hi Richard, On Tue, Nov 06, 2018 at 10:52:48AM -0600, richard.g...@linux.intel.com wrote: > From: Alan Tull > > Add a Device Tree binding for the Intel Stratix10 SoC FPGA manager. > > Signed-off-by: Alan Tull > Signed-off-by: Richard Gong > Reviewed-by: Rob Herring Ack

Re: [PATCH v16 0/6] Device Tree support for FPGA programming

2016-02-15 Thread Moritz Fischer
Hi Alan, On Thu, Feb 11, 2016 at 2:17 PM, atull wrote: >> > > I looked into it further and now I've got a solution for this issue >> > > that I can post soon. I can stop using the DT overlay configfs >> > > interface and add a sysfs file for applying an overlay to an FPGA >> > > region. The FP

Re: [PATCH v15 0/6] altera fpga area and fpga bus

2016-01-21 Thread Moritz Fischer
Hi Alan, On Wed, Jan 20, 2016 at 8:24 PM, wrote: > From: Alan Tull > > For v15, I'm not using the FPGA Manager as the bus. I'm adding a FPGA Bus; > the FPGA Manager and bridges go below it. > > I've gotten enough feedback that my proposals are Altera specific that I am > going with that and ch

Re: [PATCH v15 2/6] add sysfs document for fpga bridge class

2016-01-21 Thread Moritz Fischer
On Thu, Jan 21, 2016 at 1:17 PM, Måns Rullgård wrote: > I don't see a patch in this email. So it's not just me :-) Cheers, Moritz -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.ke

Re: [PATCH v15 5/6] fpga: fpga-area and fpga-bus: device tree control for FPGA

2016-01-21 Thread Moritz Fischer
Hi Alan, minor nits inline: On Wed, Jan 20, 2016 at 8:24 PM, wrote: > v15: Add altr,fpga-bus implementation > Change compatible string "fpga-area" -> "altr,fpga-area" Doesn't look that way down there. Or am I reading the code wrong? > +static const struct of_device_id fpga_area_of_match

Re: [PATCH v15 1/6] fpga: add bindings document for fpga area and fpga bus

2016-01-21 Thread Moritz Fischer
Hi Alan, I tried getting a simple example to work with overlays, however so far I failed getting the child nodes to probe drivers, maybe you have an idea? The fpga image is loaded just fine. in dts: fpga_bus@0 { compatible = "altr,fpga-bus", "simple-bus";

Re: [PATCH v15 1/6] fpga: add bindings document for fpga area and fpga bus

2016-01-21 Thread Moritz Fischer
Hi Alan, On Thu, Jan 21, 2016 at 6:21 PM, atull wrote: > target-path = "/amba/fpga_bus@0/devcfg@f8007000"; derp ... building in the driver helps ... all good on your side ;-) Cheers, Moritz -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a mess

Re: [PATCH v15 0/6] altera fpga area and fpga bus

2016-01-21 Thread Moritz Fischer
Hi Alan, On Thu, Jan 21, 2016 at 5:42 PM, atull wrote: > If you want to send me a Xilinx example of usage for me to include in that > document, that would be useful also. I think you might have sent me > something a while ago, but I can't find it now. Will do. I'll clean up some of my examples

Re: [PATCH v15 5/6] fpga: fpga-area and fpga-bus: device tree control for FPGA

2016-01-22 Thread Moritz Fischer
Alan, On Wed, Jan 20, 2016 at 8:24 PM, wrote: > +static int fpga_area_probe(struct platform_device *pdev) > +{ > + struct device *dev = &pdev->dev; > + struct device_node *np = dev->of_node; > + struct fpga_area *area; > + int ret; > + > + area = devm_kzalloc(dev,

Re: [PATCH v15 5/6] fpga: fpga-area and fpga-bus: device tree control for FPGA

2016-01-22 Thread Moritz Fischer
On Fri, Jan 22, 2016 at 5:37 PM, atull wrote: > On Fri, 22 Jan 2016, Moritz Fischer wrote: > >> Alan, >> >> On Wed, Jan 20, 2016 at 8:24 PM, wrote: >> >> > +static int fpga_area_probe(struct platform_device *pdev) >> > +{ >> > +

Re: [PATCH v15 1/6] fpga: add bindings document for fpga area and fpga bus

2016-01-27 Thread Moritz Fischer
Hi, On Wed, Jan 27, 2016 at 9:24 PM, atull wrote: >> I think I said this before, but you should not need simple-bus. Having >> it is wrong if the bus requires some configuration before enumerating >> the child nodes. The way you have it, the bridge driver could probe >> before the FPGA manager o