Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752112AbbGQQLZ (ORCPT ); Fri, 17 Jul 2015 12:11:25 -0400 Received: from mail-by2on0064.outbound.protection.outlook.com ([207.46.100.64]:11520 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751902AbbGQQLW (ORCPT ); Fri, 17 Jul 2015 12:11:22 -0400 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Authentication-Results: linuxfoundation.org; dkim=none (message not signed) header.d=none; From: To: , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Petr Cvek , , , , Alan Tull Subject: [PATCH v9 0/7] FPGA Manager Framework and Simple FPGA Bus Date: Fri, 17 Jul 2015 10:51:10 -0500 Message-ID: <1437148277-5405-1-git-send-email-atull@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: DM2PR21CA0039.namprd21.prod.outlook.com (25.161.137.177) To CY1PR03MB1519.namprd03.prod.outlook.com (25.163.17.25) X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1519;2:ElOe78MzDEPcmfFmyxp3vOiQD3V4Taw4ZsflSw3GhodS/13BQaSyc6s9n/BN7tgo;3:/b1c4iMbJgEOCYP7aK3mL2jfY0J+AFzW8otoSDJ+vWN7rzN8cbrnS+5DNgG8GE24De9hiE2PfPfUoNkAQpUWcgRDB0kFVW6zTulwxEsNUcnWcx7gNrS+Zkalbn34DKlru7CkkDG1O5q1zVpFRpm+pA==;25:XT+ayEx8X0FOioKNeJne4I6B/MkbRDdzT4fFs44dnSKnasKZFq8DaPqLX80FttT+LwBhCIF5i2fxYE3m08KeCrZVsXhMrtZdkWGvv7K/QbhhGAjHc8za17TRpn4oIqgVBJObFzZH1HdwH9VGcdwFoy7/+9s26ntxZgC/EpBo6V0PcodEcpEs60lA0zUoFHS4K9bYJ7pjaoa27HNGS8W0bRqJJaHeNMjLzgeqAf3PZ/XPR7WsEe01WGF125v/z/eRamo+QRbViSYwv5hUyByfng==;20:0GPpIcpwRJ4Pa4V2+A90k7FQ09bYQcW+IGUU9ipw67QUmq+FxV5+0sN4rPMRAcZ93EPK4jznvExifPM5u4XuH6+m+ZR5CteLD0Rw8H9CHiKcaOZCUCahzGvWrQigMdGjyPQNqjQFiSMt1cLrkEy/NTaoY9YlCDuGfYy0laTB8ho= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1519;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB122; CY1PR03MB1519: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR03MB1519;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1519;BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BN1PR03MB122;BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB122; X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1519;4:h1NfyKwAvpGNonRS/htM5qCGfluoB8fS5kMW4sWJOtwMfHIycqM+D1F+ZGu1otkE/PEEk+zyAeHgzrbJA1na8E5dm551kcLIRticuB1ZE2gcFxqnyqXIcq5gPFlQVCkLpBUTIga2fzAYgiBB29OT0FvgVPFnS1fyV1Pd5Gy2JD4YEsZVzsH6fPRtlsNYgU1uZO8rdyP5Qz7qfwbRIXf9bqcXhNPqux7yupXgPSvy7TLq67nP23IkRWBSGdKc3AYzdEz6SuBB5/W8MHlVQNPYv700486Jw+gnkJoVSz4I8Eg= X-Forefront-PRVS: 06400060E1 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(6009001)(42186005)(19580405001)(19580395003)(229853001)(53416004)(46102003)(87976001)(122386002)(2201001)(86362001)(575784001)(86152002)(33646002)(62966003)(50466002)(77156002)(92566002)(15975445007)(5001960100002)(48376002)(50226001)(107886002)(77096005)(5001770100001)(47776003)(50986999)(5001920100001)(5003940100001)(189998001)(7059030)(4001430100001)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR03MB1519;H:linuxheads99.altera.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1519;23:TvSRABvHclALAFjyvAjh9CHWERjMj/shIgG6BBO8YRKUaWrv6R/VextvSs30KpRqdwPjNL+O5684VEQM/mryXz2xEegSyW8WO2vfzMiF5q1pedEAHLbaiqXKUO1aK8XmmChehevMZOiWC/8Q3lwT/i/ewJJVvwkGdcNHUkD/adL7/zoW8itlPJqhbrbApl3/gZqps4x83qLV1gA3dhBRCVzydxjodMVReV/obyEhjSv7APn4P5/vfpbnjuxFjkEAyBHxl4Mn21L4InkeZ1tfklOVa6AbPPQNf91embXjwrMNKsxxqr9grAMoqoMbrIjT2BlLAEnqrXLA75PAGcZL2rw6DuyJFMTPM/x3bHxpVN0cvQTa4JyoPhX8hlxYKqTRM0t27dwktSQUDzRfiU1eU/coehnjilL3JpJH5scn6WHWgKnXL0RjsXvb/jYnS5BK0owLAN4QApoYsWsfLgr2DJm1p9lGyIbCSpLCo4EQpjQ5qy6dg10h+EUHWoPqmzoC6P2Z7aFe62WgpIMDa02AFNP//cyDBSp/AwKsUXZwjU3cdwsbYfCfDy49DYI2UL2ppUf32z0MjIBauKNseHYkdz/V6tevvJQvMBlIffsOad4XPScHArq4iFjPMAanm/7VpTbuFyNgh+dr35GIxmdrQ4DQDIsJQS+ssFPh/pGJIxXYXowfc/6EY3asA1E+t3ts+sS7NAJDM0ITjUfv35jbeMfI4n+hzkVK0uQ/MDhbiPcO5uN8No1gm6IzlJGvgNYSHhtFvCDcZca51JEZ6F2PNKWp+dHZNkqMi9LalEPciwT9licKogXAptjuVmqfYw8cXf2ciUoDGSQFgMvkJuPVBVooBROjU6hfKQrUTNGfnHaARIqe+LPB7uTOPgSJpEvSlf5pjwKwpRpHiPEpvaS8/giz7ZAdHUsCyC/qSf7IJsI= X-Microsoft-Exchange-Diagnostics-untrusted: 1;CY1PR03MB1519;5:BN2CXFEzVawUFJ1VwTKrx/9CSujTPi6Hjg1aeXkIm/TiQy0HsccL5SBFqY77GuX6sLzt4IHw/SXMRr5ibHTsIz01R+92Gz7Yvnr2NarvjQk2PQdg2B2Rxu2uiUAcGfqNL7QCiT9cpjZrw3y1D6f9og==;24:dML+mGlRKbH3ydAU91nTvZrO6vRdoN0HGw42LFCaSiROUZebaZcyqaQPqWYKkm3qCc5ER8XjP7hX6JYUttgxDdAKlQdq4h7DsgpvPURm6zE=;20:zTcJaw2tyOE0Nw12ZvlUADRIN/BrHnTkwnJsq/ll3WS7A+Fj1OeeVpO3N003I0zY81u8n/QijXAMP0eK6t0vdrvOgFijbH8Ac5FvUDOTYENIV3a+95mfDVrSNIBQ3CLbjJ5Q+4u/EluzgZHKnU98ujucjSs4r6w6VfN+zzmA7ko= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1519 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11FD018.protection.gbl X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD018;1:iNgDob4TZJmS5rQs53w9Bn/zA3wTf5XjlFy4ZsLvDZSBjT8opF4M4oDP0TbYh8vVMVP8dD70UxmwAQogY0WSxiNZGwbAbrg/KMgjppyWhihtXZVy5zJl2SLPb7KokGVr73+cKd10D2aAzMTsK1yXi8IsinqoJ/mYrCynylR4D3iIPUU9HwMogIiJQrwHBEX3y6qoEJaAF/4iil716lhjJI33ufr5ne7OcAbxoZ/D52fChUBkJbVC6SdjoY7QfuWrWq8sLYp8Til0K4N/Qr6qkPVJeL62UYsWiib5bIsHeopefL0/PK1P2A4/pJ4+FxW7IyP/rnDdzrFgcSqxkqyp5IO489xf1FsUggWKPr9RU+gzyA1usavIfkf5e2j8FrStSdR43N3qdtoGqO6jRP1BfuHMau3OV7g1RX1rrrvR2dwCLEhq2zj4Lu0iUO6TdFPT X-Forefront-Antispam-Report: CIP:66.35.236.236;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(339900001)(199003)(189002)(5001960100002)(107886002)(50466002)(5001770100001)(575784001)(46102003)(92566002)(106466001)(62966003)(77156002)(86152002)(50226001)(15975445007)(77096005)(5003940100001)(105606002)(87936001)(6806004)(189998001)(122386002)(86362001)(85426001)(53416004)(33646002)(47776003)(16796002)(48376002)(19580405001)(2201001)(19580395003)(229853001)(50986999)(7099028)(7059030)(4001430100001)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1PR03MB122;H:sj-itexedge04.altera.priv.altera.com;FPR:;SPF:Fail;MLV:sfv;A:0;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1PR03MB122;2:dNVFjd9E4t+CqffsCy8v2gi0E4esPKfdOZim/I2S+xIcEts1wXG5qFcAn9d7qkcZ;3:FSpkb1rEFK8kiM8i+elmzHCAI1yax7i9WSxCFS4LbaO5HX6viwW82V85BFAR1XbXdSXbWKixYvuZlxXHGMMr21SZt0Nroz2gbv4jQ655ZSfFOxT51GGCDiyBkLBAgeDELS8FbSmd9q4jmuWyXnPMP+RQZhSjrw5nIQbDkgC2Vajpzr5fA6T/XuxnczVeEFvY39tObfMOCqdTeI1EQkYKfsQCZmEpeyshpINEpYhXg2o=;25:i8Q0xgQHzpP2Kaut3GylgjF3atNTClXZExvRHD7Vne5kYfTl4+3L5wLiQGiBCbMtzgpkp4g9g3Aq9FVa+tOlSmGstqdEMqNEnaUyXCiBaW8GipgpTFTCv7K+1oLPmEgzMvrbII8/GeoEgeAyFdUU6ouUfJ8nZlk3edeYEPOo5SUp0+//Hg8Xdam7uAhHCJeb25/M+2GvfXWJYsCaWAWWk0tN8ZfpYa52NUKHaTXTjFHthdlaCJKLbaQBd3Eru6uqgNTeGJA5XOQvaa+vZ3ancw==;20:T7TR453DqiLt37k7/Y9lxVLy5xZjnkxqVbfPI56Q2kx+c8JiieAbjdNWkKiZYpACreoGdPf1mIU4rwdnXWRwSW9RgRfvAIJ5gT8bldheO5W5tbzVWxmtNie6o/EsMidCUBEeTRV6pez18WJtDXY3mKUsFSU0g2HJM81c6/BJbts= X-Microsoft-Exchange-Diagnostics: 1;BN1PR03MB122;4:B/WPa45ilrVNWDVEUk9T+xvLFkEC5wnpCbzdnfeI75FKuka3/kW6mKaedWeHicXFJFz5yQgABz3You4Ixu9olnncnvhGg9zANbVtVNKJ3O9s3L3LUCaV0PA1/MoUOHNQDotN7No7O0ih4ZvIeAk6InF2uq5bSMaZDykKqttqlcd15Oo/HRGnBlCIrY1dP7zhWOuQX14SoqfQ4c29q/cHt59r8weKusZgHlDm0OVk+bujOJt5+okMvmWYsrWDTLb1gHwJR60l8XvL/sMFviAVmZnIQS8MesdrNRnh6jpugJ4= X-Forefront-PRVS: 06400060E1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1PR03MB122;23:bTUvQr2bXJjwljwx3bV3kW28aZqg5QCEvn+4AY35si?= =?us-ascii?Q?47aLqZH/R065+QIvogRyb0FvotZSMPSflA7JQ582BA2FfuzupTjY4XXnYuta?= =?us-ascii?Q?3IuaJj7y3U5l72NQZwuaQSPGoGtSN++PK2IJIulhsFA7jb69liKYM4FVZrll?= =?us-ascii?Q?xqqO2ujogUcCIkDtwPeodORsfmUZbTdkVduPU/COGcGE3nVjXIZh5kp1IXS7?= =?us-ascii?Q?TjNEd0g0d8+zZYVqJF68ck5yKiCTPnZu3HnGxrr9etuXehXhgZzfQ4DOMMfZ?= =?us-ascii?Q?1LPXWDSZECXqE1/QG3tI7ARylFqqorsS0ZnPnewqRhPSsglSzOOc6omrCtng?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ltpNypLQVlDtZKfztnC7T3YdTKTR6/lykAbhZ0q+0SbM741Qw==;24:/D5NH38C4SoLcNwn/zMwhSDfxXSWA3Zg90w+EqHYjbMBd5V2iwDZgGYkf+4hjjfoi0MlXKMKaLWFGnBV70xYe+gQQxlj91LMswBRbI0ia/A=;20:GGriuHLzWANZ+PqIF/H71vPjo6kqD+EWWAb9e64vSY1HUw+tf8A0tip+pUjqgMuv3QMGok+ThiotqEqkQs07oWMonGJwwVrStYHsPl4AWUegNqZqYXhwQeyXGeLSyIGwnT9MuQ6HTTJM6q1Augn6mpBfUeTl6EWS/ZOq1FSOrO4= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2015 15:56:15.9515 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a;Ip=[66.35.236.236];Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR03MB122 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3632 Lines: 76 From: Alan Tull This patchset adds two chunks plus documentation: * fpga manager core: exports ABI functions that write an image to a FPGA * DT Overlay support: simple-fpga-bus to handle FPGA from a DT overlay The core's ABI is minimal to start with: only 6 functions. This gives a common interface for programming various FPGA such that any higher level interfaces such as the DT Overlays or anything else that is added can be shared and not be manufacturor-specific. The DT Overlays support exists for the usage where the FPGA will contain some "hardware" that will need drivers. Where that use model is not appealing, the core ABI can be used to add a different use model such as using an FPGA as acceleration as has been discussed. This patchset gets rid of the sysfs controls that allowed direct control of a FPGA from userspace. This patchset is under drivers/staging as the interface could change. The bindings for the socpfga fpga manager already are upstreamed as 1b4e119 Alan Tull : doc: add bindings document for altera fpga manager The DT Support is dependent on Pantelis's dtc overlay patches from https://github.com/pantoniou/dtc.git and his DT overlays configfs interface patches and fixes from https://github.com/pantoniou/linux-beagle-track-mainline efb0c04 Pantelis Antoniou : gcl: Fix resource linking 85e785e Pantelis Antoniou : ARM: DT: Enable symbols when CONFIG_OF_OVERLAY is used af0321f Pantelis Antoniou : OF: DT-Overlay configfs interface (v5) 4c1c675 Pantelis Antoniou : configfs: Implement binary attributes (v4) Alan Tull (7): staging: usage documentation for FPGA manager core staging: usage documentation for simple fpga bus staging: add bindings document for simple fpga bus staging: fpga manager: add sysfs interface document staging: fpga manager core staging: add simple-fpga-bus staging: fpga manager: add driver for socfpga fpga manager drivers/staging/Kconfig | 2 + drivers/staging/Makefile | 1 + .../Documentation/ABI/sysfs-class-fpga-manager | 26 + .../Documentation/bindings/simple-fpga-bus.txt | 61 ++ drivers/staging/fpga/Documentation/fpga-mgr.txt | 117 ++++ .../staging/fpga/Documentation/simple-fpga-bus.txt | 48 ++ drivers/staging/fpga/Kconfig | 31 + drivers/staging/fpga/Makefile | 10 + drivers/staging/fpga/fpga-mgr.c | 373 ++++++++++++ drivers/staging/fpga/simple-fpga-bus.c | 323 ++++++++++ drivers/staging/fpga/socfpga.c | 616 ++++++++++++++++++++ include/linux/fpga/fpga-mgr.h | 127 ++++ 12 files changed, 1735 insertions(+) create mode 100644 drivers/staging/fpga/Documentation/ABI/sysfs-class-fpga-manager create mode 100644 drivers/staging/fpga/Documentation/bindings/simple-fpga-bus.txt create mode 100644 drivers/staging/fpga/Documentation/fpga-mgr.txt create mode 100644 drivers/staging/fpga/Documentation/simple-fpga-bus.txt create mode 100644 drivers/staging/fpga/Kconfig create mode 100644 drivers/staging/fpga/Makefile create mode 100644 drivers/staging/fpga/fpga-mgr.c create mode 100644 drivers/staging/fpga/simple-fpga-bus.c create mode 100644 drivers/staging/fpga/socfpga.c create mode 100644 include/linux/fpga/fpga-mgr.h -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/