From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03hn0218.outbound.protection.outlook.com [104.47.9.218]) by dpdk.org (Postfix) with ESMTP id 38AE57EBF for ; Fri, 20 Apr 2018 12:34:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=HUj0IaFp14fT8DZC/pIKKy1Y+8EOtzbSPBk1k4QCf3s=; b=pP8PValMxkwMtfGRRXsF7vpg518YaCOhLqDBSt8TukuV6pBadAoPKE8eSi+wAz6kI/2yLMIGuLKsFGv4xTse486GGkChPhoCBsZZgSGx5y8qOYYB946Ty2ydvsxGGau8fqFN3EYkeHwdNuT7j+CP2AQbRhNO3iwKVVrVtzrFatc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nipun.gupta@nxp.com; Received: from b27504-OptiPlex-790.ap.freescale.net (14.142.187.166) by HE1PR0401MB2427.eurprd04.prod.outlook.com (2603:10a6:3:25::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Fri, 20 Apr 2018 10:34:21 +0000 From: Nipun Gupta To: shreyansh.jain@nxp.com, thomas@monjalon.net, hemant.agrawal@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Fri, 20 Apr 2018 16:00:55 +0530 Message-Id: <1524220264-17281-1-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1523114224-9852-1-git-send-email-nipun.gupta@nxp.com> References: <1523114224-9852-1-git-send-email-nipun.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR01CA0102.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::18) To HE1PR0401MB2427.eurprd04.prod.outlook.com (2603:10a6:3:25::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(2017052603328)(7153060)(7193020); SRVR:HE1PR0401MB2427; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 3:SMB3C49FmMjF5Ut+Op92q2vr2IWCJpEBGtoYvQHv/9TciWbztFWIQ7w83qRdkaI6gA9QASU2J/EDMXBh17M1IOfSkh1Qqr59so5SMuBNOn3QF71r0x8SKIQWdU0PNAbWVnntjDaZVeFXx92UOZ6WxsHYDgnMGyYigniH/6W7yO/U5uJ5TVz/owATo9yzq6BxEF6gmNTe0TlSBo8XpiNzDi01haCTAXaT/Wd382L03KPvEH69Soy0CQ2E8SzoeDJo; 25:msOmMv9tDksuX9gSZitfJa1TUGEXIjNQlASI+l4Q8wJcZSULAP5tkZI4tm6OVkpNjzd7OixEbUkRFW69Uxow8f4ZcGmJZSAjHdoTX1flRbLRtBrNrU5To+3BvZVy0Js6/B79E+7miw5DGD2jKhdMy4ryKoSb8FDFfy0xq5fOgKrr/KThI5f5C9pKoRs089tg0ANjteokjNFF2r/gtJjNW6jWeTI70YFGF8MJg4lRjSQKVBoB6zvKRgxPPf8fTOfNUprayif++3SHzL8ZQrGCdlEne2hydB7pQQwF3lgXqLkPMUFEWvqu029pqyRxOPg05Tp6E/lkXvTKMZ5AB7xqSA==; 31:EyB6tUbcjCcx3RumRNwanE/z+gLPG82Ak6I6ulnUDiWKQqQOS/Q9kgsa5OLHdcbd2/bqeEvnkyvFGOEOHN6jxl3+fZnAHzjSLXmz8ioFAjMwmTx+33CmjD5Ey/BhdQPN9mbnWLQxCq9VfcFi/GclpX5/2m2pJpEx/Da3uqbutc+xvLI61JTtWzeFrf4XFOukztygEe4Bkms7umjXf9maFkIOcW2jpAyI16xqKd7UyfE= X-MS-TrafficTypeDiagnostic: HE1PR0401MB2427: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 20:NuF7yLhWAsLcsSatDMcKGKyVq/ohOfcMwpMU/7ZsZGqzvu4t0o+tMfOBG1J07Z66HFcBTYpLOAzyoAGXhh9/fyKrnUD/PdLjcyAOHRIlLh8+8Z1Ee3C+uQyyxt5wVR8SKEeo1G8c6bTLl5rHU/dXYZN8o7dBQlp+nPymord9ZAoCuA2vgoy/QG3mn0XyPVOevVprvg0rxhQVmfYU81/tjIwOdmJGChhpQE8Lb+OW5BqGHrwqMpGZUBW7lXVpF2ajz4SCJjuRSrZfqN2rZ3Tp8ONNgdJF1RDLgzQz6+EzNYkpSHokq99Gd3Fvupu6Jv+Imad9CxqGy9QzOA2QlwP546Ygj+woNpU9+6N3FtiOIngYFo2+t2mgHzXYr/D9Ws2JBGX4VaH/QucsZos5Hjekd/7WVXNJn9/nfrsJ7ebybc0hIHRS//kHoQAfwdZFrpvJYFMkNJ4tqf3yPlHxFrzk06e9hvr8f8bPuKepioZFUjA5abwWYRARB3v8hIfsstYp; 4:LztInSse2+vtcWOYnPDCRc8i2v++H0TI/diXAo9h1reiilLoaBBvxufGVRTesrIjZEz7t3sMsV9M+WZI8sCRZ6MV6MuGJtvZ2hnbj+cg6G4Nj7dU9Pzt2htQgUwGkUTlVurPIbxvRG+9/CEX1YdHhTgXCC3VV25Fq+z/2ltZgr3KMJ6ZnWwymBvgiYnXuB7wF8Uf0FYZ0K4ko9SzecAKHon5ZqAD5auNvFMV6UcynBb2xB/zAD276etFgnai3FUwR9nRd9nQv7V5ND8GuopitQ8XtdUNH6ZQUHmSPZGCI9HUmBnzNLAvEmThPgJ6aBfSi2em8pXQC8lJ+h7bxnWvuLl88zc0HEQcSZZ6mUhvZvs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(66839620246622)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231232)(2232076)(944501393)(52105095)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:HE1PR0401MB2427; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2427; X-Forefront-PRVS: 0648FCFFA8 X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(346002)(376002)(396003)(366004)(39860400002)(39380400002)(4326008)(16526019)(59450400001)(6506007)(48376002)(386003)(8936002)(8676002)(81166006)(26005)(36756003)(25786009)(6116002)(3846002)(6486002)(86362001)(956004)(11346002)(446003)(476003)(52116002)(2616005)(6666003)(76176011)(6636002)(5009440100003)(51416003)(6512007)(53936002)(2906002)(316002)(16586007)(50226002)(50466002)(305945005)(551934003)(44832011)(478600001)(7736002)(47776003)(5660300001)(66066001)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:HE1PR0401MB2427; H:b27504-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; MLV:ovrspm; PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0401MB2427; 23:c+kvVZ5lqyDeiMu9EVuUGcBW2zCalcXJoxT7miF?= =?us-ascii?Q?h9FBbnbVGM8nSQgUrAyDR1e2seWyewbqV3rRnZWRSOVOzFgN9JvypQ/iUHqy?= =?us-ascii?Q?5vudsCgO61/6r2Rn86xLjK8NOZ+PsfJcjfc1Hd/Hd66F6qDeffAIpVBa2Q/8?= =?us-ascii?Q?btbIYf5DGMkFErfo1e5lOcIDT5sf/TgE9xL7+OcdTVPITvRRsrgNK2uFbytl?= =?us-ascii?Q?aHYf98uRC+doDD/sNehotRhbT3A/oAmIgL81ySC7mWsVtoK1J7lHpJ+ChGKc?= =?us-ascii?Q?jnyANey1mNEJUUWrt8tH0rakCcKNAIIFOmSxru7YVHAnKm0dJQMc83CI3MaX?= =?us-ascii?Q?T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K/l46iu5AB29fYF; 5:yl1rV99d4GKia3cLiwmsKSjKiHTB9iryuNU7qu6jTjp4GzUrcwSk+uNuNV3hI1AVLljnUNDSFIenzxOYfzw9pTQcLN48X0EMMPGUFB9fJur9LfVyMg8FRYRtqZY8KAuBGg3jU4aNp8otjvkbT3ag9o40Sz2i4imcNVg3vy3truc=; 24:0IA1S2mzk6+xPWv/idABTL9cRkZ51+9J1KAOdgDEbV17/azmWh5ksaLOHDna23x+gybPtCpSN6ju8KxidP0jLg== SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 7:HdCr9vG3gR5d1LKQlHTfqsk0jylqNlfhsYKNuIxsNqpN8LyNIgTTS2Plw4ggEgaeOZdUyzDGW7xwTVdmqeTvxm7TlrFsA2WNAUa6PY2QX4ZjLJLyKX16z7uhDvCQSzhsUilrW6Zi0W7j43ZqWnbAfWf+tR9dntmo6UoUnzkofSwpzzBiEAUIO8ZsYqlSkYEjettWdxVypcqxIjPoeaVU2I762VsT3Lm0kawvPMFrCDPhs/H8LtGRDwiJU8oAqT8S X-MS-Office365-Filtering-Correlation-Id: f786d50c-2d36-4ea9-831c-08d5a6aa4840 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2018 10:34:21.7287 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f786d50c-2d36-4ea9-831c-08d5a6aa4840 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2427 Subject: [dpdk-dev] [PATCH 0/9 v3] Introduce DPAA2 QDMA raw driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2018 10:34:27 -0000 This patch set introduces DPAA2 based QDMA device driver. It provide means to initiate a DMA transaction from CPU. The initiated DMA is performed without CPU being involved in the actual DMA transaction. This patch series is rebased on dpdk master branch Patches 1-4: Makes necessary changes in the DPAA2 bus Patches 5-7: Add the DPAA2 QDMA driver Patches 8-9: Update the respective documentation Changes in v2: - Rebased over master branch - Pulled in couple of changes which were in CMDIF series - patch 3: some updations, patch 4 - handle failues in device init correctly - Updated the logging, added DP logs - Fixed remove_hw_queues_from_list function Changes in v3: - Fix compilation issue introduced due to a very recent change of removal of dma_addr_t. Fix in patch 7 where dma_addr_t was used. Nipun Gupta (9): bus/fslmc: support MC DPDMAI object bus/fslmc: support scanning and probing of QDMA devices bus/fslmc: add macros required by QDMA for FLE and FD bus/fslmc: fix typecasting in IOVA/virt conversion macros raw/dpaa2_qdma: introduce the DPAA2 QDMA driver raw/dpaa2_qdma: support configuration APIs raw/dpaa2_qdma: support enq and deq operations doc: add DPAA2 QDMA rawdev guide doc: add dpaa2 qdma rawdev to release notes MAINTAINERS | 9 + config/common_base | 1 + config/common_linuxapp | 1 + doc/api/doxy-api-index.md | 1 + doc/api/doxy-api.conf | 1 + doc/guides/index.rst | 1 + doc/guides/rawdevs/dpaa2_qdma.rst | 140 +++ doc/guides/rawdevs/index.rst | 14 + doc/guides/rel_notes/release_18_05.rst | 8 + drivers/bus/fslmc/Makefile | 9 +- drivers/bus/fslmc/fslmc_bus.c | 2 + drivers/bus/fslmc/fslmc_vfio.c | 1 + drivers/bus/fslmc/mc/dpdmai.c | 429 +++++++++ drivers/bus/fslmc/mc/fsl_dpdmai.h | 189 ++++ drivers/bus/fslmc/mc/fsl_dpdmai_cmd.h | 107 +++ drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 12 +- drivers/bus/fslmc/rte_bus_fslmc_version.map | 9 + drivers/bus/fslmc/rte_fslmc.h | 2 + drivers/raw/Makefile | 4 + drivers/raw/dpaa2_qdma/Makefile | 36 + drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 1002 ++++++++++++++++++++ drivers/raw/dpaa2_qdma/dpaa2_qdma.h | 150 +++ drivers/raw/dpaa2_qdma/dpaa2_qdma_logs.h | 46 + drivers/raw/dpaa2_qdma/rte_pmd_dpaa2_qdma.h | 286 ++++++ .../raw/dpaa2_qdma/rte_pmd_dpaa2_qdma_version.map | 20 + mk/rte.app.mk | 3 + 26 files changed, 2476 insertions(+), 7 deletions(-) create mode 100644 doc/guides/rawdevs/dpaa2_qdma.rst create mode 100644 doc/guides/rawdevs/index.rst create mode 100644 drivers/bus/fslmc/mc/dpdmai.c create mode 100644 drivers/bus/fslmc/mc/fsl_dpdmai.h create mode 100644 drivers/bus/fslmc/mc/fsl_dpdmai_cmd.h create mode 100644 drivers/raw/dpaa2_qdma/Makefile create mode 100644 drivers/raw/dpaa2_qdma/dpaa2_qdma.c create mode 100644 drivers/raw/dpaa2_qdma/dpaa2_qdma.h create mode 100644 drivers/raw/dpaa2_qdma/dpaa2_qdma_logs.h create mode 100644 drivers/raw/dpaa2_qdma/rte_pmd_dpaa2_qdma.h create mode 100644 drivers/raw/dpaa2_qdma/rte_pmd_dpaa2_qdma_version.map -- 1.9.1