From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01hn0238.outbound.protection.outlook.com [104.47.1.238]) by dpdk.org (Postfix) with ESMTP id AA711DED for ; Tue, 1 May 2018 11:59:15 +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=FZkzUBj31MivT5y4D0fmsUIwXGnLvaDde+9QjkX2G50=; b=PGYIpWpy/TsdbAPUpRPo77DRq1QN/vWwzyfgxeSjCSPAdJiBX/Rs3g8UOUrs/EAGvnENbWRxqO+OOe4ATNQOgWOHuJ0ZBwAt0eRtmZEnMN7fwqZOyIOp9WD01tuSi/o1zoobB7+Azwv4NcHhIUHeRCV99Loi7I4imNYr0Q3AAR8= 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; Tue, 1 May 2018 09:59:13 +0000 From: Nipun Gupta To: shreyansh.jain@nxp.com, thomas@monjalon.net, hemant.agrawal@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Tue, 1 May 2018 15:28:43 +0530 Message-Id: <1525168731-30912-1-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524570589-20148-1-git-send-email-nipun.gupta@nxp.com> References: <1524570589-20148-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: PN1PR0101CA0028.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:c::14) 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:IktrGZO0TfL/akvlhizSCsxELo0DaJen6HvzczsVt1O4mTNV50hbfu26aDLeSxh3Cav+HSKH6PyZHMhc5onM4ulxXS3jZdRF++e2AJSQEJQ+cxtvPK93YQToVucvcGdHGH6u03LPFFraz36LKizVPvuSEkaHbpez1qv0XmN18ScdmhK6K8GV1sceZ37egIxkQXnnMOqmWJOvpq3uOtBllgBRpR2UMKDKZA29xqpVvSRrK5nLm/o5CqkWeysh0k8R; 25:/2V9An3uR1LpYXsaPdsO+Xpl71CLM37ng0H1XV8uTVAKS75yoVRzv2M/mnSFoBytnK0h7nt9nTtmTGXTmqEnKrfgtrxHYfUj1oPDYAslAXSxWs09PPBI7CwizrUbVbnz0aonvEbkvjI29ynHL9uukud8vALZU++wrTNncB8fT0Bo4shpdhr+AHkBpH01NRQqjRj4l5YQHKSFHR5kGzqTup7xrP271vGM87g9nzykVRnXacJB/Fv5hxOGvpFbkADATqQVDYIRn2/exYzA+onAaBdXJncP1UHJdNkuFqbIUWdkbpSZjjpFp5KeVXAVcMns8p7SI3ewALZrK6wlLuOBng==; 31:Fbf/apA6E3/SJrhptDO4tVPRLjiRS4YlbLQwF+UF1LdpzvgsVD11wirBJZ/Cxu9k0m2BAD0h5LiI9JcwePDFF820t3HHEgwIp8XIWrVIzl3SF4ItpmONrPr7p94hvOPB28na7t388sns8loFVOCYqE/vtbiqviJrdO4cxxU1qVIIpPxW+RZm1eazfJ11uwRUDocwvIj1vHohUrW9Ke1EF4HS3hvsq8BrAahn6R3dwnU= X-MS-TrafficTypeDiagnostic: HE1PR0401MB2427: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 20:PuiBrBpKhfoDxPKIi55928iMcPWlIGrsaNC0s1tKqZHlgAS/SmlgV9eiMvpDTX3Xox9pmS5yWdrjFDHMXJOjA0QKAKddgzPBpKlWI7l3r94maWzPQQlS2SxSBkpEfztzs3zEiYf1J+k9CHdDrrf/eGzdts4Yw1aVPvHsj9XsFGmYZ5WRtWentXRG6rGNB/96K2Z4ZRHQlAjiJnF0fcxk3ISouPsCvXjjwVe3boWxQKRNW6F7NIcwuJyRJDRZ/Wv2GuSFTCyrn1D4XX9CmuFjmcsb/kNk7wt3RROerktTddMx4e8M66bSjc55tidQovDKtdVGGGfoL+sIKA4wQkzR9gQ1+vQBAE5MNXUxt4Bb2czImc9Q2EZwqsrHv8ml6TWTGNJ8ArnwV0L+yXensjA77T8CHrPYYuCIw4NMXSGrB0Reqs6Mn/yydZXdbVej7UUuRJlaN+SI+Oy96DwcQa7YgaPa2KnWQ3BtkzVgtc3TigHoJQrW3Tb1SrL7rJOdN7sk; 4:In7uSm1ZFvfu2BU/GMdVio3GukPmiA/3YpYPy0dRfUkZIIpMZaV/UB++TmnO+5xj4CBi+M4uw3TYx+YQ/HVldPy9Ao7ILznL3edpK5ms66IOYaRV+BZqjlHVmcjoQ5h3Hh/nnpAyMiGA4k8zUx3DJiczz8PDJQhrRN0IP4gClzb3ycegCpLKXNGvwRhuM/3WFuuLT4In17tSN5zyaYOC2Osy4JODwET3xS2Qn8JaXM29r099CpbuWRPop1DzP4tfTk+6NeETxqUfVj4156eXi2tFu3RD1RpdbUlMOuKNLclEDgEjkq8HycCxzWcDYjdyOGDJB53pl7SzsiWQEb8AGmegrpUHsooK8T30Q5Ex668= 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)(3231254)(2232076)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:HE1PR0401MB2427; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2427; X-Forefront-PRVS: 06592CCE58 X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(39380400002)(39860400002)(366004)(396003)(346002)(376002)(199004)(189003)(81156014)(3846002)(8936002)(97736004)(50226002)(48376002)(81166006)(316002)(50466002)(16586007)(2906002)(551934003)(36756003)(44832011)(478600001)(5660300001)(8676002)(6116002)(486006)(16526019)(6512007)(53936002)(476003)(4326008)(446003)(956004)(11346002)(59450400001)(386003)(5009440100003)(76176011)(52116002)(51416003)(26005)(305945005)(68736007)(6506007)(105586002)(106356001)(47776003)(6636002)(66066001)(7736002)(86362001)(6666003)(25786009)(6486002)(2616005)(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:R9cAX14kSYDz0dvEkuNjxVqIMMr/7y7xqf/QdVI?= =?us-ascii?Q?Ejyhs+sd9Pg/FVCf5NbioeXOJFfPKh+ep5y/jzU6tn4HnWG9gE1c1M5wONXe?= =?us-ascii?Q?WQzzEsWE5je6xXMkwJ4QmD7vH4sla3mjlMRr45qvY5rk3IvK/vJ1W9c6vGbT?= =?us-ascii?Q?UXZWkNdBYbMI+vVWJzurtNBZE0OhaYiajcIreDkqZOFtN50ZKPWkap+yHboH?= =?us-ascii?Q?pk1F4i9hqEEz1wgnWPlEgkUtgdDvdooJu2dTEBSkRjt3hIusypCKcy2UqQiE?= =?us-ascii?Q?gyDQskRSaEfm//3xKXJv4ZXAbZju8LWdZF2u5WLMTHrKP4I2GqUzYQtbJ+uk?= =?us-ascii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We/TxboI67o4ZMVIplIpy?= =?us-ascii?Q?MLRmCIZwifNwJD3I7rKwpX3F2qDoK7vOtHxStf6tUy/SqtovUjXlf+NNeneA?= =?us-ascii?Q?BBJHgzlLUm3P6fprJaAc5Mv5muBGkw5VA2WorHM4b9GL+?= X-Microsoft-Antispam-Message-Info: RBwCHwY9n7DJFqX2K6mZGTX68AmDTjvjpyVeKgZL6pIrp3/NNHglaiFNZy4yZgY5FFzNEYS/pWikhU0c7uggRmW3VMOPlvRAL8s2UBM/l9uM0lKItchvo9r8Y0PZv0fsbRJejt55ZAtRkN+fM2javluaNzloC4msHHDOYYaHJYImIzaFGF80VGF4Rfhx/d6vFUSnDzaWg/31GjjjEkjXi/0dhQaR2JLroKAniNd3pVev1fHdBEw0ieSWgbEH3SUkI430veomuSsZInGqWtySNcoaP1ZAvwHBTFknOBMpOAPqKcS5UKVjtZGl6Qv+BT1aImVVAkbvE40Jg55lW+rA56y6vyhnmIEiEQSDaJOJ58/K4kNaUt3cyyfFbhik7VdF9UR95ZQSLBX23YoSM2OkOz4CtKTqvm2NGk79Sy7BFvabQZJwEDkfy66sTq5P7U6R4YWyFSd+yu5lI0sbaaqq2LtitZrCzxSdreesVIFSXrvWnAMKhwHea+NNeYv9I6t34PsMCJ8PTDnSqy89CyxYZCbtrnWRg+UFNRCgjM5K8sI= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 6:04rycfpSc5g04fA8PjljFzhErcJ9jW1PTPoQm1BrNm4E/67HwM3qQT/wSVmGRuWTOwvqHE9zBbf/hdZAQZTKbqAWhkj9OghPWQVRW44EeU7Trwb4rqOUxZ8nN4uUXlznvdSo1ny++2HF75tuiVkeyjFDlnlzem9+/AO3pSV0AZ/7l1lBuWMHvWaXR33GELBHPEg1fV+PZmVTR70QWvWvZ5DOVMuDr/ORMSz9fo95xjOvAT9HLdGI8juikl6UV80Vmn9BJLuEmZRTLS94N3Js78qmCKSpmRFl8MSxkplbO8DltvC6re9MHUfI6geRupM/bFUrd6pj2hUdAmC5J7yxgBTHT9TK/dRcjumIFlqG558TrM0Q+0vz3dzVfhwW6O+R5l11kyPEtgMy46pLGfORL/yExhUS/yHRyF9/7G9zbAMGmPRA4kiXOdkuzdInn69n38Q83mGnQTvt8K7da8CR8zlIYwAdkSkxvfsKx9G8g35qsOkoQUOmv9012IQQM1Q5; 5:wBdroKUm4a3hZpLsyTLVJ+UWjFInh+nDCoUfSlWtBzAtRvI7UTYAZboXLjokUuId4uJhqAKPkud7u7tCI0YBEp7G58Scr8dEDPwzzyiuA7gveeKVqIZtJ72s86FhErUQ2jeoB7Od1pL7Am/FHMvvSbXIPpMttEPEdcVlIGdq7D8=; 24:hmHHwMFPBfKHMm4kdV2SmsM0WBAmYHa5Ban12U4p7dziNRhL6zohu4Up12Qp5FY1EPpU7SoIoJs1nJNaLL2a2g== SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 7:HY6KKH5ihf+tCnttjAsvhOVcvXK1XMgK8MJqSKDxsLq3YkVvr6gaHlNWDlqx3lT/YAjBvnH97xgKHR7N7Cx7Lnah8xwLAP1RG9QYCWB8Dm8Pje1oIfGr3KXfdckjDCJ3w2Et4GUcDZdov4jRo97P0Duu2KJ97nXU50+s8HbwzEXEPMa3hOEP9X9mmVMnB51NI+9aSZvh7Nd/hbYl3aB3smnAb7fdYvUkPyPApi/nJDyezLW0W/25xiOQR2M8JP8P X-MS-Office365-Filtering-Correlation-Id: c2577fb7-3944-4253-df86-08d5af4a320d X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 09:59:13.3128 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c2577fb7-3944-4253-df86-08d5af4a320d 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 v5 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: Tue, 01 May 2018 09:59:16 -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. 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 | 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/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, 2504 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