From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01hn0201.outbound.protection.outlook.com [104.47.2.201]) by dpdk.org (Postfix) with ESMTP id 6E29F1E2F for ; Thu, 3 May 2018 18:06:37 +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=M7+qdJBBVoHgB0TjgLRmxfaJc428XcX5979yD27YJ2s=; b=uGWY3T3AdOIkudsWv2cB/xlxGqjr/sXELN04yujdOu++/Ad2oH0R7Gp+Q3YZdj3slA0G67T/Ipi9BlT0Uzmp1psV6yaezqAn7TDoSIVihlPMoIbKkREaCTu4VQD4/3yPijF0/OLIr91/NWz+5HWYC0wXji5ODZj3SXcUa+WenlM= 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.715.23; Thu, 3 May 2018 16:06:34 +0000 From: Nipun Gupta To: thomas@monjalon.net, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Thu, 3 May 2018 21:36:02 +0530 Message-Id: <1525363570-23542-1-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525280972-27736-1-git-send-email-nipun.gupta@nxp.com> References: <1525280972-27736-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: MA1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::21) 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)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:HE1PR0401MB2427; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 3:tL+6iWmOeMAnN4wz+wXFQngxI2+qEyYNrWLqelDpiEppt+5k4qnt2emT86qpQkZrK4EDqovzUEJ9A/rp3Zaq9IlSoOVs/UgKWb9VNfTh3QlUEsH0VT0fjiQF1NqNPpRzu09iVwrPTdySu/hVKuBXE9zXEDo4WudYMOtbcd/JNBHp8MAW95/DV1exFJo4tRDZ0IOtoYhfXPaWGI9jcRBuKafyMq4WKzDpCibDn48q/YOTnJxlLwsiHKNN5tzWwtff; 25:ZxNAmF+Z/6a/Ez5AtcY5ABIFXkoE1+L4JMJKEXzEHh9dTITRZU97B63Vh9TNqPN+vfSaulgkvwCICNOXF/q7zgFmb2QC76YJ6z0yCjn6aYUblpiFvlOxgsFvHFyI/uXoW5wBc3v5ZKVvDEQVp3G9hWotyXBy67vYzXXlhZsf20k6v/EZImuYA59YoyI2B5st7raeAAJwsSocambO2eiP7AXl4fYxj7ZQJoQTtJ436wVfEANygqWzEE9gn92/WwFz3ISLazdtLYt4hhnh+UP8Of2Eswp+KWP1/WSf4itZLdPQHxo1a4dlQ/lkAlbOFZR78sQRNEtP75DwC9Psjg9r0A==; 31:KFpGeGAqIKKyVKyO/lnlu8zcZ/B7TgEhW5MSKMJ1OmOQPNvGtad70367rDYJttPwM1Kfru5G7Ej5q2lydXBOsY0Ow4Ey+5QgEy5sVGrgto/Jk7MB6KlynAo8sTo/i4gQW/GmdO7K9SH/qCb3ET9iewQtHOJcxH46T50YoNOpndo87l85ijKqgQrYK+51aQpEhTf/X2C99pnmxchUmCLKOfASUPSVo28qgNskEDbg2ps= X-MS-TrafficTypeDiagnostic: HE1PR0401MB2427: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 20:kh+uQ5UFN5+4sjACn9F7+9JZ7PRKKV5IWS9Y319xgQpy1uL07CoPTanqg5RD5RQaMDOr6c7trOY845MO4eEF3Nua66OVQm8JRGvkNIIiiHH5eHw7WEd5ySTtLDElGYudm2YZvGjL5To49hRUO8BgyykJq9jgM55JCqJzU86ObJVfAjdpd6eGqcJb1QL01lvnH00FfetlVHnVQHJTML5h/zxnti78Eo0FpFAP0F/zjaCtIuJgiKr8INAVMpTl6S6aWwDf0rpSfjlZgFR+N1BoxskUxU3wmdAtdA3rg57xSZPjJMyfaa14Bosh3O2gKs89uqCPUlTjESYVigSGhwaFN8H+vYotyjh95sDBn3u4fmN2pwB/fP5aLWIhWYrji/6vm/+w7u3e+rLxFL72fmImkmqgR9TT1uP6nHkOPwU1l+ji+rKNktu+iou+n+SXPIIAMyTBIoxYMZjFq70bPjiGKv1VHWK1B3G072Hj/cOHG4AIkUaTH8tzN/3gzkNSuurg; 4:PDQD1atC22M1ZxCJ2/Yov8S4h8lLHAiSNX7u3dsoAMGF3R14+RzXpR3g8M8ZHoFO2+RxVVmTRVKFnUiRNJxVsA8E4FdT3otYi/zNNotAZbVU2VPwXpguT8JvMr8pkJaV8nEgFawHM6r8BzrPiED8WHewW44Zz1isJjDsfcAnXWCK9QWes+oOPOIxQLky+4H0JEi19IyJXaBw7G+dcuo02VBUQTEk7/l2pzysBhuVAgvlaVTLxxpuQVG8OLvOID14JaaJL5RwuFUXk26QWzkGTQP2BZ7y7n8dlmQxA+kfyZdwdaVLh+OK+Q6wfdxQd6nN/t4ktfvr71HDYh/DGliKvdrKDyk6drRUutysOqQJf70= 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)(10201501046)(3002001)(3231254)(2232076)(944501410)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:HE1PR0401MB2427; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2427; X-Forefront-PRVS: 066153096A X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(366004)(376002)(39380400002)(39860400002)(346002)(396003)(199004)(189003)(5660300001)(26005)(186003)(47776003)(16526019)(6506007)(386003)(51416003)(55236004)(52116002)(2906002)(50226002)(59450400001)(97736004)(486006)(105586002)(25786009)(44832011)(106356001)(76176011)(81156014)(86362001)(68736007)(36756003)(6636002)(6512007)(2616005)(11346002)(53936002)(956004)(50466002)(7736002)(81166006)(8676002)(16586007)(6116002)(478600001)(446003)(5009440100003)(48376002)(6666003)(316002)(476003)(3846002)(305945005)(4326008)(551934003)(66066001)(8936002)(6486002)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:HE1PR0401MB2427; H:b27504-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0401MB2427; 23:In2CBtA5wfiEOjcVZ+oQkAzUvGe3gZ9PUv6OAR0?= =?us-ascii?Q?+F5+B2BAMgBOaBAMax1om+Hkq1fvMrB0Vq/XQMGKy+rGgyq0Knq9Lyn8hCqL?= =?us-ascii?Q?uOkghhUX8ZMltQx46xCKCVNGoPkYiuNI3bW2EG7+L/Z9E264Fvk8iFSZhcbv?= =?us-ascii?Q?fG4DgoF7rkVUQ6k9OV7tkXphcpqT4bK8BWfBnpvDbgqejVKlp/BFsxjY0y6R?= =?us-ascii?Q?nDndXT/bmbkKhccN6osh1o7XQ+gi70DW/74R+g5WtuYiQQqaDOhOz92Gi58o?= =?us-ascii?Q?mHpAr5USIpaEuoHtkylNjP6ziu+EP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qo39ynInsXvoK8d3rcmXHbJpsNweVBN2vNK/pjG3YvXuC1eB+aNfRjWZyujVPZQJrQQmyluz/ODglhDof601B2mB2TT0/393WiZpG0OJ4kBstT/WC0iWctBDOS8NTJoxOGexFNaXOuY+lzIX53XPWKYdPEicB/B+4c/twkJTGAXwVMb6bOGtDBFYsHP2oGfKuMvuI2zT6CRjxRsuP6NsXYbbFzb0Vu+RJQXQxuOmRY7CMXiG6TRWfYbDTCpgwu7pNVhIJaXDym0ZD8bcWE693Ewcn01dF5mJtH30fxwRyDvdm; 5:OnbIWp/vkqa78xqwWZrPlJdrmmdBOd0wdEcaYwh9enMyXej1MeNllzKNqZFnLIfn1Z75EqvpGSKRzrBWejvo1qTMB2HAhkebec/bbHu7zD5zVYl0uHju3cqr3tYSsxjiMVGZa/BbJqc8ZePrVIQAsDvgx19eJ1i7TLHhyu6wDh0=; 24:pMK1EjB+l0ukwBzFnra04/vizTaBhlDrAkmta2AYaPxqNwT1QxzZ6ENGH58DJ1CXXRqjTBUrdTSolxXJGu3ZHg== SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 7:Oon8DYFWf8orpazIKDNeXJlRHCoTuUJMKM6DU4CrhVFKgmYYrgOGCFCaGeRb926XQ0oJ3gEZEX1F38nG0HkWX9MnW2P/fvVe1a7mdfbh44kFW9goBC+ogsBny3Ef24de51D51hzW/KG+yiVzPz2JXgs2uI+dyl15V02si9eE/SlNZjRSiKZXznakdgM60eF8wQQoQR4xoCBOBFQKGdq8kBO7IVZtFNvgTofOgbTfqheY3autnuBkHhhLaPzP/K9k X-MS-Office365-Filtering-Correlation-Id: f644f09a-6713-4f38-7080-08d5b10fd8a9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2018 16:06:34.5558 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f644f09a-6713-4f38-7080-08d5b10fd8a9 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 RESEND v7 0/8] 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: Thu, 03 May 2018 16:06:37 -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 Patch 1: Support meson build in raw Patches 2-4: Makes necessary changes in the DPAA2 bus Patches 5-7: Add the DPAA2 QDMA driver Patch 8: Update the 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. Changes in v4: - Support meson build for raw and dpaa2 qdma (patch 1 & 5) - Merged the two separate doc patches (patch 8) Changes in v5: - install user header file (rte_pmd_dpaa2_qdma.h) in case of meson build where it is introduced (patch 6). Previously it was added in patch 5. Changes in v6: - Fix meson shared build Changes in v7: - Fix x86 shared build Nipun Gupta (8): raw: support meson build 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 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 MAINTAINERS | 9 + config/common_base | 5 + 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/meson.build | 1 + drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 8 +- drivers/bus/fslmc/rte_bus_fslmc_version.map | 9 + drivers/bus/fslmc/rte_fslmc.h | 2 + drivers/meson.build | 3 +- drivers/raw/Makefile | 3 + drivers/raw/dpaa2_qdma/Makefile | 37 + 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/meson.build | 9 + drivers/raw/dpaa2_qdma/rte_pmd_dpaa2_qdma.h | 286 ++++++ .../raw/dpaa2_qdma/rte_pmd_dpaa2_qdma_version.map | 20 + drivers/raw/meson.build | 7 + drivers/raw/skeleton_rawdev/meson.build | 8 + mk/rte.app.mk | 3 + 31 files changed, 2505 insertions(+), 6 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/meson.build 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 create mode 100644 drivers/raw/meson.build create mode 100644 drivers/raw/skeleton_rawdev/meson.build -- 1.9.1