Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp932062pxj; Wed, 2 Jun 2021 15:35:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrllRugZgIV2SdkJrNhKg1v1ULDW7jCuAGdPra/I1uw1n3LxWPv4R7IJrQRm7Uqb/KtkED X-Received: by 2002:aa7:c445:: with SMTP id n5mr21509526edr.64.1622673350240; Wed, 02 Jun 2021 15:35:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1622673350; cv=pass; d=google.com; s=arc-20160816; b=wtrrhdRG6Zzkopn9JKygl60alyBq+b89/zMiRQv9YYr3sci+tpq/P9v2RV7saNRkhs HQ455txozeU9+pAHTFJPPsyyUJbKlQ/3diSF61GGkWHR8hXBQ/r4743QM+7zYWKOV4MI 5PqzkoercrOwkqXqheJVbK1ox/Imx8VPzlYFCM2zdlQ/Tx2ZKQ0S8FMJJOsyFvZC0KlV wrfk8EIlfer0xCoWruAwnsmy1NQI3WrKtikBp8TTixSoMDTlxVvmUr6Z6M0ge1mNcZ43 wz9YpTDRmO213fCnLQzyZY5/nfP+d5pmNbX/RAW1iEf1OdjoofX+RaurypJT873YiMYY xh2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:envelope-to:dkim-signature; bh=Fa/ZOKbc+8Squrlf3t9PN/fAmxc3TPGekhbPOHtAruo=; b=YgwKIjU5qsqrY8Mp71Zma2VfIu71uYIXUVkujw2bll0/8AIhAB5aAaQKrctYwevNQh BOqnyqcq7ByCjq6v8AsjDHaxZV8UsrTf16GgG5+5XToHnNRf9k5WeRLqIVc1ETHZpJUo 2l4v38Ivlvu+/GbCEZmTqNlSdfmQsYYoe52qcA5hx9UZh/AvkCQsqF3yjqQGTBI9BB+2 DJufBbLT6htprlEdkm17z2Jszx/yHl/xbN5EaoJukCYR9jivuVzon54fmyXes0LaNL6H IxDeRV4UnQ+MTMPoAbDI7FeoebKnxUBNyClIfEHXYBmaq58OKdHVXU9K6nz2tYHenqwU Wnuw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=dajvxtB3; arc=pass (i=1 spf=pass spfdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si821275edr.154.2021.06.02.15.35.27; Wed, 02 Jun 2021 15:35:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=dajvxtB3; arc=pass (i=1 spf=pass spfdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229724AbhFBWgH (ORCPT + 99 others); Wed, 2 Jun 2021 18:36:07 -0400 Received: from mail-bn8nam11on2050.outbound.protection.outlook.com ([40.107.236.50]:8340 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229552AbhFBWgG (ORCPT ); Wed, 2 Jun 2021 18:36:06 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OyEvMwTlYRrOUWMdlbeghv3E3dusMa2EK6b0rzDVIgGy34CiaKkN7/47dE0pbmf+l6yPS4Ge5PdZF4L+HtS6nebex50gv4NqdB4EnrDlbc7lOOaEBJl4ZrNDCfhcK3zQR/bVF8zG5DiLeOAYnwsabzPWRkS7hRL84ySYrSLTl/NzZWbMWpkl/3FGgGq+KC0DYddZKsy4rM5BfKije62+STSL9bgV6DTwV3h59Qd++gK2RsL4ZHcafXFNvRIAA8UFeasB/rMuwq+h+8xpPwCvtx1p6CAI/iQzhN+4wCbIIl26Ws0gCdPVSJvDxyyW/OwA/xeXlDDledG+vlnExaWGvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fa/ZOKbc+8Squrlf3t9PN/fAmxc3TPGekhbPOHtAruo=; b=I2RJX4OzE8n8Lpempa7p/uyVkDV51dTT0Fvmg6CqHfhCZfL3EPG5R1ANg+kFS8NWB9FoQUc7TSEjCvKJwnaRHxuk6yw0Q1WEoKBn1BmqKyMKCVghyHEc8Rp1InWZE95oCGPKH2Ghj4z34uY/bOhU8Ne/HAocjM0RXT7MkC8KdIIxK4oEKUiTGn4rFOMvJsErF22GSbzSEItF2EG449+hH4HXlmA2n8SJsbuX2wHx7hODNCupgKQKiQiy+/wjOnlLXZuIW1dVoZCIyp4Uf7MLICgbRN9PZLvWng0wKaJxTt06raegn/4RHFgmgObmzw+XOFkbcGnpVIdIQIT7nZEHxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fa/ZOKbc+8Squrlf3t9PN/fAmxc3TPGekhbPOHtAruo=; b=dajvxtB3OW9frEVAungzIVc6kvYPLrwt2UMMj2YxSArcV7dWdCagd9LhoHQt8h1M/t16yPO/U+HxPIa2TSYm0eEGjFNd73yXRAATKYTShGMdKCOfnz9GbZtRyR3egSMlkJNF4Gp7Qp7QCAcjaoH1ioWnkEcaYIZYdFQf+zrIUz4= Received: from SN4PR0701CA0010.namprd07.prod.outlook.com (2603:10b6:803:28::20) by BN8PR02MB5811.namprd02.prod.outlook.com (2603:10b6:408:b3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.22; Wed, 2 Jun 2021 22:34:19 +0000 Received: from SN1NAM02FT0047.eop-nam02.prod.protection.outlook.com (2603:10b6:803:28:cafe::2e) by SN4PR0701CA0010.outlook.office365.com (2603:10b6:803:28::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.21 via Frontend Transport; Wed, 2 Jun 2021 22:34:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0047.mail.protection.outlook.com (10.97.5.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4195.18 via Frontend Transport; Wed, 2 Jun 2021 22:34:19 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 2 Jun 2021 15:34:18 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Wed, 2 Jun 2021 15:34:18 -0700 Envelope-to: robh@kernel.org, mdf@kernel.org, trix@redhat.com, devicetree@vger.kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Received: from [10.17.2.60] (port=32874) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1loZRK-0005YF-HY; Wed, 02 Jun 2021 15:34:18 -0700 Subject: Re: [PATCH V7 XRT Alveo 00/20] XRT Alveo driver overview To: Lizhi Hou , CC: , , , , , , , , , References: <20210528004959.61354-1-lizhi.hou@xilinx.com> From: Lizhi Hou Message-ID: Date: Wed, 2 Jun 2021 15:34:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20210528004959.61354-1-lizhi.hou@xilinx.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cf476a95-9439-4990-30e2-08d926168fa8 X-MS-TrafficTypeDiagnostic: BN8PR02MB5811: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fPRKg2aUYpuECxjcgx2WIAwCL7m0O5AS2d5RT6RDIRC3mb0bt4ZI54+nhzZiiT4o5q65+pkITeoiPYCbavize226BjKCbYuf4Ld3ANNYnI4AURlTBVsyO/CBKcnr9Ilbb7bInBLs9kMwgRbTrOynJyuyVSP2b8tJDNulOz4LQnNcGUGs7j1IClMfjPD+Qlug2zjZM4UZ3/Q8/QYoKd2rwNhZpktzHMxWjBCExp3isowvhB/1kiA2rUGo9w7wceW5/Ku4O1Y4XUZKbuFy+I0JnLhYtddFd/ExN0AIGSSeffQN8sXUQevOtZcbYIo2Zez+8BJDKFXIR8kdCzRah5Xtd+xH62OPT5Z2Zk/jEP9ofIFk7X2KHK8BUd61OYsJXJBUgzVuzDVaaQrEvCPR6/yjuxyGUHZVIQlPaNRc0LtbaM+k2m1hpyX0GPiHVaW8Uhg3xObi1zP6IQqI+04VD1fsoSYGf0lXLuKaDj1Te2KjoWAn8ZjpI/ryaDemxQR7kUsScLraD/UQjD2KWqW2NfU7m+75rCg2ntDq9JiOadTRHKHAhsXtlOx9JWy4O34Zh+kHI3oqshhf0yDQnw+rC7zWsYed4mWC7VvRWIFWOIEKozVJoJHcWuBzwZ6w8WT6/foUnvEjeHASRd99fatc7n/bYBhhMylmdqY4P1Vc9UPR+M2SZwcSHKrdpGeti7c5/HN/JVgSHmYN587JBJMhiZL59RS7R9zVA0iyhwSYaaKq8mJtm+JAmjeuLPcHMWnXBYh2WHGd552XG+84+1QiNiZLBeqiGnzhJDTpD3Z01qMAyC3sEENAKKZzgX7Q0U54Gc2O4GVuoxWkYLZ0oXsSMzDniigzsinQ73PUCrzxRizETflzbr36AXNVpjPxiTV0OlP+ X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch02.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(4636009)(396003)(136003)(39840400004)(346002)(376002)(46966006)(36840700001)(82310400003)(2906002)(83380400001)(26005)(36860700001)(316002)(54906003)(110136005)(7636003)(36756003)(31686004)(186003)(356005)(47076005)(5660300002)(2616005)(4326008)(31696002)(8676002)(478600001)(426003)(9786002)(30864003)(8936002)(44832011)(53546011)(70586007)(70206006)(336012)(966005)(50156003)(2101003)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2021 22:34:19.0136 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cf476a95-9439-4990-30e2-08d926168fa8 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0047.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR02MB5811 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Moritz and Tom, Thanks a lot for reviewing the XRT patches. This v7 patches contains our latest fixes for all review comments. And it seems auto build robot is happy with it as well. Do you have more comment against v7? What will be the next step for XRT patches if it looks ok to you? Thanks, Lizhi On 05/27/2021 05:49 PM, Lizhi Hou wrote: > Hello, > > This is V7 of patch series which adds management physical function driver > for Xilinx Alveo PCIe accelerator cards. > https://www.xilinx.com/products/boards-and-kits/alveo.html > > This driver is part of Xilinx Runtime (XRT) open source stack. > > XILINX ALVEO PLATFORM ARCHITECTURE > > Alveo PCIe FPGA based platforms have a static *shell* partition and a > partial re-configurable *user* partition. The shell partition is > automatically loaded from flash when host is booted and PCIe is enumerated > by BIOS. Shell cannot be changed till the next cold reboot. The shell > exposes two PCIe physical functions: > > 1. management physical function > 2. user physical function > > The patch series includes Documentation/xrt.rst which describes Alveo > platform, XRT driver architecture and deployment model in more detail. > > Users compile their high level design in C/C++/OpenCL or RTL into FPGA > image using Vitis tools. > https://www.xilinx.com/products/design-tools/vitis/vitis-platform.html > > The compiled image is packaged as xclbin which contains partial bitstream > for the user partition and necessary metadata. Users can dynamically swap > the image running on the user partition in order to switch between > different workloads by loading different xclbins. > > XRT DRIVERS FOR XILINX ALVEO > > XRT Linux kernel driver *xrt-mgmt* binds to management physical function of > Alveo platform. The modular driver framework is organized into several > platform drivers which primarily handle the following functionality: > > 1. Loading firmware container also called xsabin at driver attach time > 2. Loading of user compiled xclbin with FPGA Manager integration > 3. Clock scaling of image running on user partition > 4. In-band sensors: temp, voltage, power, etc. > 5. Device reset and rescan > > The platform drivers are packaged into *xrt-lib* helper module with well > defined interfaces. The module provides a pseudo-bus implementation for the > platform drivers. More details on the driver model can be found in > Documentation/xrt.rst. > > User physical function driver is not included in this patch series. > > LIBFDT REQUIREMENT > > XRT driver infrastructure uses Device Tree as a metadata format to discover > HW subsystems in the Alveo PCIe device. The Device Tree schema used by XRT > is documented in Documentation/xrt.rst. > > TESTING AND VALIDATION > > xrt-mgmt driver can be tested with full XRT open source stack which > includes user space libraries, board utilities and (out of tree) first > generation user physical function driver xocl. XRT open source runtime > stack is available at https://github.com/Xilinx/XRT > > Complete documentation for XRT open source stack including sections on > Alveo/XRT security and platform architecture can be found here: > > https://xilinx.github.io/XRT/master/html/index.html > https://xilinx.github.io/XRT/master/html/security.html > https://xilinx.github.io/XRT/master/html/platforms_partitions.html > > Changes since v6: > - Resolved grammatical errors and cleaned up taxonomy in xrt.rst > documentation. > - Fixed clang warnings. > - Updated code base to include v6 code review comments. > > Changes since v5: > - Revert all changes 'mgnt/MGNT' back to 'mgmt/MGMT' > - Updated code base to include v5 code review comments. > xrt.rst: address grammar and taxonomy > subdev_id.h: defines XRT_SUBDEV_INVALID = 0 > xclbin.c: change shift operation to be_to_cpu > - Resolved kernel test robot errors. > > Changes since v4: > - Added xrt_bus_type and xrt_device. All sub devices were changed from > platform_bus_type/platform_device to xrt_bus_type/xrt_device. > - Renamed xrt-mgmt driver to xrt-mgnt driver. > - Replaced 'MGMT' with 'MGNT' and 'mgmt' with 'mgnt' in code and file names > - Moved pci function calls from infrastructure to xrt-mgnt driver. > - Renamed files: mgmt/main.c -> mgnt/xmgnt-main.c > mgmt/main-region.c -> mgnt/xmgnt-main-region.c > include/xmgmt-main.h -> include/xmgnt-main.h > mgmt/fmgr-drv.c -> mgnt/xrt-mgr.c > mgmt/fmgr.h -> mgnt/xrt-mgr.h > - Updated code base to include v4 code review comments. > > Changes since v3: > - Leaf drivers use regmap-mmio to access hardware registers. > - Renamed driver module: xmgmt.ko -> xrt-mgmt.ko > - Renamed files: calib.[c|h] -> ddr_calibration.[c|h], > lib/main.[c|h] -> lib/lib-drv.[c|h], > mgmt/main-impl.h - > mgmt/xmgnt.h > - Updated code base to include v3 code review comments. > > Changes since v2: > - Streamlined the driver framework into *xleaf*, *group* and *xroot* > - Updated documentation to show the driver model with examples > - Addressed kernel test robot errors > - Added a selftest for basic driver framework > - Documented device tree schema > - Removed need to export libfdt symbols > > Changes since v1: > - Updated the driver to use fpga_region and fpga_bridge for FPGA > programming > - Dropped platform drivers not related to PR programming to focus on XRT > core framework > - Updated Documentation/fpga/xrt.rst with information on XRT core framework > - Addressed checkpatch issues > - Dropped xrt- prefix from some header files > > For reference V6 version of patch series can be found here: > > https://lore.kernel.org/lkml/20210512015339.5649-1-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-2-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-3-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-4-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-5-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-6-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-7-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-8-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-9-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-10-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-11-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-12-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-13-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-14-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-15-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-16-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-17-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-18-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-19-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-20-lizhi.hou@xilinx.com/ > https://lore.kernel.org/lkml/20210512015339.5649-21-lizhi.hou@xilinx.com/ > > Lizhi Hou (20): > Documentation: fpga: Add a document describing XRT Alveo drivers > fpga: xrt: driver metadata helper functions > fpga: xrt: xclbin file helper functions > fpga: xrt: xrt-lib driver manager > fpga: xrt: group driver > fpga: xrt: char dev node helper functions > fpga: xrt: root driver infrastructure > fpga: xrt: driver infrastructure > fpga: xrt: management physical function driver (root) > fpga: xrt: main driver for management function device > fpga: xrt: fpga-mgr and region implementation for xclbin download > fpga: xrt: VSEC driver > fpga: xrt: User Clock Subsystem driver > fpga: xrt: ICAP driver > fpga: xrt: devctl xrt driver > fpga: xrt: clock driver > fpga: xrt: clock frequency counter driver > fpga: xrt: DDR calibration driver > fpga: xrt: partition isolation driver > fpga: xrt: Kconfig and Makefile updates for XRT drivers > > Documentation/fpga/index.rst | 1 + > Documentation/fpga/xrt.rst | 870 ++++++++++++++++++ > MAINTAINERS | 11 + > drivers/Makefile | 1 + > drivers/fpga/Kconfig | 2 + > drivers/fpga/Makefile | 5 + > drivers/fpga/xrt/Kconfig | 8 + > drivers/fpga/xrt/include/events.h | 45 + > drivers/fpga/xrt/include/group.h | 25 + > drivers/fpga/xrt/include/metadata.h | 236 +++++ > drivers/fpga/xrt/include/subdev_id.h | 39 + > drivers/fpga/xrt/include/xclbin-helper.h | 48 + > drivers/fpga/xrt/include/xdevice.h | 131 +++ > drivers/fpga/xrt/include/xleaf.h | 205 +++++ > drivers/fpga/xrt/include/xleaf/axigate.h | 23 + > drivers/fpga/xrt/include/xleaf/clkfreq.h | 21 + > drivers/fpga/xrt/include/xleaf/clock.h | 29 + > .../fpga/xrt/include/xleaf/ddr_calibration.h | 28 + > drivers/fpga/xrt/include/xleaf/devctl.h | 40 + > drivers/fpga/xrt/include/xleaf/icap.h | 27 + > drivers/fpga/xrt/include/xmgmt-main.h | 34 + > drivers/fpga/xrt/include/xroot.h | 117 +++ > drivers/fpga/xrt/lib/Kconfig | 17 + > drivers/fpga/xrt/lib/Makefile | 30 + > drivers/fpga/xrt/lib/cdev.c | 209 +++++ > drivers/fpga/xrt/lib/group.c | 278 ++++++ > drivers/fpga/xrt/lib/lib-drv.c | 328 +++++++ > drivers/fpga/xrt/lib/lib-drv.h | 21 + > drivers/fpga/xrt/lib/subdev.c | 859 +++++++++++++++++ > drivers/fpga/xrt/lib/subdev_pool.h | 53 ++ > drivers/fpga/xrt/lib/xclbin.c | 381 ++++++++ > drivers/fpga/xrt/lib/xleaf/axigate.c | 325 +++++++ > drivers/fpga/xrt/lib/xleaf/clkfreq.c | 223 +++++ > drivers/fpga/xrt/lib/xleaf/clock.c | 652 +++++++++++++ > drivers/fpga/xrt/lib/xleaf/ddr_calibration.c | 210 +++++ > drivers/fpga/xrt/lib/xleaf/devctl.c | 169 ++++ > drivers/fpga/xrt/lib/xleaf/icap.c | 328 +++++++ > drivers/fpga/xrt/lib/xleaf/ucs.c | 152 +++ > drivers/fpga/xrt/lib/xleaf/vsec.c | 372 ++++++++ > drivers/fpga/xrt/lib/xroot.c | 536 +++++++++++ > drivers/fpga/xrt/metadata/Kconfig | 12 + > drivers/fpga/xrt/metadata/Makefile | 16 + > drivers/fpga/xrt/metadata/metadata.c | 578 ++++++++++++ > drivers/fpga/xrt/mgmt/Kconfig | 15 + > drivers/fpga/xrt/mgmt/Makefile | 19 + > drivers/fpga/xrt/mgmt/root.c | 420 +++++++++ > drivers/fpga/xrt/mgmt/xmgmt-main-region.c | 483 ++++++++++ > drivers/fpga/xrt/mgmt/xmgmt-main.c | 662 +++++++++++++ > drivers/fpga/xrt/mgmt/xmgmt.h | 33 + > drivers/fpga/xrt/mgmt/xrt-mgr.c | 190 ++++ > drivers/fpga/xrt/mgmt/xrt-mgr.h | 16 + > include/uapi/linux/xrt/xclbin.h | 409 ++++++++ > include/uapi/linux/xrt/xmgmt-ioctl.h | 46 + > 53 files changed, 9988 insertions(+) > create mode 100644 Documentation/fpga/xrt.rst > create mode 100644 drivers/fpga/xrt/Kconfig > create mode 100644 drivers/fpga/xrt/include/events.h > create mode 100644 drivers/fpga/xrt/include/group.h > create mode 100644 drivers/fpga/xrt/include/metadata.h > create mode 100644 drivers/fpga/xrt/include/subdev_id.h > create mode 100644 drivers/fpga/xrt/include/xclbin-helper.h > create mode 100644 drivers/fpga/xrt/include/xdevice.h > create mode 100644 drivers/fpga/xrt/include/xleaf.h > create mode 100644 drivers/fpga/xrt/include/xleaf/axigate.h > create mode 100644 drivers/fpga/xrt/include/xleaf/clkfreq.h > create mode 100644 drivers/fpga/xrt/include/xleaf/clock.h > create mode 100644 drivers/fpga/xrt/include/xleaf/ddr_calibration.h > create mode 100644 drivers/fpga/xrt/include/xleaf/devctl.h > create mode 100644 drivers/fpga/xrt/include/xleaf/icap.h > create mode 100644 drivers/fpga/xrt/include/xmgmt-main.h > create mode 100644 drivers/fpga/xrt/include/xroot.h > create mode 100644 drivers/fpga/xrt/lib/Kconfig > create mode 100644 drivers/fpga/xrt/lib/Makefile > create mode 100644 drivers/fpga/xrt/lib/cdev.c > create mode 100644 drivers/fpga/xrt/lib/group.c > create mode 100644 drivers/fpga/xrt/lib/lib-drv.c > create mode 100644 drivers/fpga/xrt/lib/lib-drv.h > create mode 100644 drivers/fpga/xrt/lib/subdev.c > create mode 100644 drivers/fpga/xrt/lib/subdev_pool.h > create mode 100644 drivers/fpga/xrt/lib/xclbin.c > create mode 100644 drivers/fpga/xrt/lib/xleaf/axigate.c > create mode 100644 drivers/fpga/xrt/lib/xleaf/clkfreq.c > create mode 100644 drivers/fpga/xrt/lib/xleaf/clock.c > create mode 100644 drivers/fpga/xrt/lib/xleaf/ddr_calibration.c > create mode 100644 drivers/fpga/xrt/lib/xleaf/devctl.c > create mode 100644 drivers/fpga/xrt/lib/xleaf/icap.c > create mode 100644 drivers/fpga/xrt/lib/xleaf/ucs.c > create mode 100644 drivers/fpga/xrt/lib/xleaf/vsec.c > create mode 100644 drivers/fpga/xrt/lib/xroot.c > create mode 100644 drivers/fpga/xrt/metadata/Kconfig > create mode 100644 drivers/fpga/xrt/metadata/Makefile > create mode 100644 drivers/fpga/xrt/metadata/metadata.c > create mode 100644 drivers/fpga/xrt/mgmt/Kconfig > create mode 100644 drivers/fpga/xrt/mgmt/Makefile > create mode 100644 drivers/fpga/xrt/mgmt/root.c > create mode 100644 drivers/fpga/xrt/mgmt/xmgmt-main-region.c > create mode 100644 drivers/fpga/xrt/mgmt/xmgmt-main.c > create mode 100644 drivers/fpga/xrt/mgmt/xmgmt.h > create mode 100644 drivers/fpga/xrt/mgmt/xrt-mgr.c > create mode 100644 drivers/fpga/xrt/mgmt/xrt-mgr.h > create mode 100644 include/uapi/linux/xrt/xclbin.h > create mode 100644 include/uapi/linux/xrt/xmgmt-ioctl.h >