From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01hn0238.outbound.protection.outlook.com [104.47.2.238]) by dpdk.org (Postfix) with ESMTP id 3B1B81CA6A for ; Sat, 7 Apr 2018 17:17:32 +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=YWfD0af3Fyz+XIVQhpPAE7wenTRJg19J7CyLIx3QPrs=; b=ib4/RWOfB7MS7vQG59Xy6Gy9tjt0nKixLunZeV+msYQjw8Ctv4DC5m7GRGRQKLdlzKeFLU/EMdP9QRa843AfLCoH1WBf5YxCGai8IRMcD/790Jg3bptjN8+2nbyztMZy2a6Wbh2X7gDWBAJGfwd/rwbIjTTAzf2UaQx3b3ENic0= 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 HE1PR0401MB2425.eurprd04.prod.outlook.com (2603:10a6:3:25::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Sat, 7 Apr 2018 15:17:27 +0000 From: Nipun Gupta To: thomas@monjalon.net, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Sat, 7 Apr 2018 20:46:56 +0530 Message-Id: <1523114224-9852-1-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0058.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::20) To HE1PR0401MB2425.eurprd04.prod.outlook.com (2603:10a6:3:25::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b3e3f077-f3cd-4675-717e-08d59c9aad4f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0401MB2425; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2425; 3:cjQVOUz3BUU5+91F6ro/If2Q5PhhRFx9X7bTu4soe/Qeg3WN/inQqcMctz/h993fRLaWxzASQfwCAM19MVURBEHJfgG2Sz+Ym7GnkVxXt14Kbxi60TCZnE1StGahb7J1RsOVS+wrYScDwPKRED8zaV1SwC8eUEb5QQbwGXfGVfI0h1MpWuR1+LCFL0blbQ6jM3cVhWpXlmJapoye0hnW3GoBxZ+P9yhEMV/n9BDihmoashNuBTV88nKz4oOVdS2r; 25:rKuLgruyWQgpBtqZLa0KJwUhjMeutuwyjOl14uQDFi1o5gv0u3jP1Y3K23d4G1+69ORFIIvcNaq+yWpW8lWeUjhQMoLx/iNm39MUfFS0K7o9kCJ303h1R3JpNcPuMeDsOVB8HbR+lI5GTyNmHJ3MYpEk835soWABa+boRk10aDzP8RToIIkPLJCl8vNj3O6koSn4sA0fxGCtRj1e7uwJYuT7Oa3NBc/rCMuQDAicoOPLOLyBttyOLFFin36ik89RKJE4KiRghlWukgK9YLAyzdH591iRahaQUEwqFRQbTYVDFxTEsFXe8TDxb7B9k91MEogNOWRz4UUtQhMz90rNTw==; 31:hNtr0ZMQoQeBH/mI8WsC1vCFqkDEqgbaEjo4uoNCtC9PlB81711Kawv67mzaZcI+bf7zWr4jZmpPlVAREtH07oKl4DagzIzskV9b0e4jPHmtIjDLTjuPBjmGW/oNng1kqEKYlK2EQ1bNlGw68AJvZF3mk8yqukTgqWmUHUFWd7QAgFM2Vm2jefkTnoDD/c7OEIPUWgi6RuumpjQxhtZML8rKXE0Gz47j081l7crrW4o= X-MS-TrafficTypeDiagnostic: HE1PR0401MB2425: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2425; 20:xvTZ2mICCYKVIPQMs5fsovItmSUq5CXMy+s5k6A849hnwimdy+xznVNjwakwUbaUqcJLc75Dk6m8hKy6DNuFbmthsH31ad57YtrM4ceI3tHNbNB7gvlfzrdSL3IVjSiYlNPaYlx50TZz8VVHIoA9md4PVvz5doCFrmKTk7bX6HIy9RLcwIf+EUH+YILH6gDVHcsZ7BSTS1a7fQDhYO1DjwzM9J7iUWaB0gP5bxYO+Fup18anp8TSVCb3IdPj9AVaXGKuH/4ka2ZkaK57fb/6wLbvDgIknuuxh0bcROP+ol7goxM477A15wxeVDPIwLXDMFOYG6PSZDYjKYs+w/OkYe6rzdP1XyXHME3Lzzz//jNdl0YGArrIpNWfZcRUX3U3IxdJbYvWCn6ZMstUBLEgpMzWG0/RLOlRuNzY3IXo9vcHWn2R2+sdTvguaUd71Dyr7T1kyG4VnraV1ChrqMe5rkiVXygwjpM2r2DjnI43BUzIvWsz00qDmKmOE6TOqOv/; 4:i2z0pfJWJDKThPvMLaqx6YFuUhAg3zgxu8wWb0eAWmNHcP38ripO4Qxtfu6tVlNuOuTd3Mm0hMyDJixtUBHhedHSdVBt/u2/mIvKe/wWLxgnVSfNLQ7uylVo9uEq/du0U/svjlSDV2QkvxeSx+Bb3f7SpAOHWG41OuFXnkwDpg7/Bmf0cqS2YHUmDZJhc/nBMcYSibhZcbEmpksBFslAQK3L/kG6iKTrXHW6LHuWtSgFt+fTj5CLnBZVhc5uIgY+SVabf/ZI1bwlYtPcbw8XdradJDxoZITGphV5WAWIC0bp3w4edL/zimwjHcw7EpDKry6+MNLQLS4Nmw75Xji7mstyvl/q/TgzUrCa7ZJbG4M= 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)(8121501046)(5005006)(3231221)(2232076)(944501327)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:HE1PR0401MB2425; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2425; X-Forefront-PRVS: 0635D5275E X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(39380400002)(376002)(39860400002)(366004)(396003)(346002)(199004)(189003)(6306002)(2616005)(36756003)(6506007)(52116002)(6512007)(4326008)(478600001)(966005)(50226002)(66066001)(51416003)(386003)(8936002)(50466002)(97736004)(6116002)(5660300001)(6666003)(551934003)(86362001)(7736002)(305945005)(47776003)(6636002)(59450400001)(3846002)(5009440100003)(48376002)(16526019)(316002)(81166006)(106356001)(53936002)(55236004)(16586007)(68736007)(26005)(8676002)(25786009)(6486002)(186003)(2906002)(81156014)(486006)(476003)(105586002)(956004)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:HE1PR0401MB2425; 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; HE1PR0401MB2425; 23:wNAJRGLoohp/tKWpeujmkguYpPWKEcWApVar7X5?= =?us-ascii?Q?IFbhsAOJvUTRNkr+2duMW3SHtvkcjQSKZ6ENQEdpaW2m2lLctKRsOW4Wvyuq?= =?us-ascii?Q?olR1/ujniM8bPxoKJQRh5b1akV88AMGtrf8JsmeCS2ZWKvKEZIPyoYwwW1XU?= =?us-ascii?Q?Tt6aL6r9mO2hMvht6AdTVpqyNfheKxMrhpmz0IQo5hdr6xcBO353HPACgUPn?= =?us-ascii?Q?8kAfGQgsayqfRGPbO+bHIkjW8Kks6QWJZHqVtc8dC1jtIIbnpXa5V4jqqmC2?= =?us-ascii?Q?vJXNOF5le7CupzwT0BImyNKAXinNJWoEgdJ0/ANAlm8OlUz6At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4Ls76R1VvfFM7bFPDwseg/xGnchwMOQ5K7ciEcMiLuDGIA4OWyF58LWz2xJzr39QDh7b2mPXelQRaUeoyAjoIg/MDQzJOeBC+shhCoXEeJdJMmKNnho05hZpdsF0IcOUjmFzIRnJASY01lYhJ+++S7gttSKPYVi3OMz7s1MDSetiedYAezUTMz8gj+k+1kXl8MQGX; 5:9XOxOaS0r7sqd3+iSj8oMG0Jm0jwKG61mgBpN1tTjszVHvnb4gKRawuipcUr3JoenW2pCuJ29hjp/t4FQdgUK6hUOC4XNsg+FlUzFdXkK8W38qUaVARjLqLwIDzJLU+l5oRyW2UnQCWSKVWJ2j65JE6ihianwcaNywvK4KjjN2w=; 24:n9rho843eewXN17HU4czr7LlboQVL7XLaVuzLJ8sDy74uHhsp5keaklwFe+qYWnzz3LRW7okMtBfMnZO5Q1ALw== SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2425; 7:chAmdShpvWZfJ1OB5bgzoHVj94UCGUVlaHdMRBnaIZDjxLslLPOhIU7wRMpK3zdcuVE+9IQF1w5m00KyEDdSA+fiJJymS72ayWiqcwzdN30zok11EFXsqT+pzbMVDKInacb/AiBxJhyxwgE/9KOi16FiMZRlW318xYsAw6cmbLLnrMKB1lZx4G+8gHEfmnAROG2VC5KXf7xRbsHHXsuYrXfYSHIYvQ9NIN/pYju/tSv3DE084MBA5/2gDZACbH8n X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2018 15:17:27.5917 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b3e3f077-f3cd-4675-717e-08d59c9aad4f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2425 Subject: [dpdk-dev] [PATCH 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: Sat, 07 Apr 2018 15:17:32 -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 based over v2 of DPAA2 CMDIF series - https://dpdk.org/dev/patchwork/patch/35337/ Patches 1-3: Makes necessary changes in the DPAA2 bus Patches 4-6: Add the DPAA2 QDMA driver Patches 7-8: Update the respective documentation Nipun Gupta (8): 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 doc: add dpaa2 qdma rawdev to release notes MAINTAINERS | 6 + config/common_base | 1 + config/common_linuxapp | 1 + doc/api/doxy-api-index.md | 1 + doc/api/doxy-api.conf | 1 + doc/guides/rawdevs/dpaa2_qdma.rst | 140 +++ doc/guides/rel_notes/release_18_05.rst | 9 + drivers/bus/fslmc/Makefile | 3 +- 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 | 3 + drivers/bus/fslmc/rte_bus_fslmc_version.map | 9 + drivers/bus/fslmc/rte_fslmc.h | 2 + drivers/raw/Makefile | 1 + drivers/raw/dpaa2_qdma/Makefile | 36 + drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 997 +++++++++++++++++++++ drivers/raw/dpaa2_qdma/dpaa2_qdma.h | 150 ++++ drivers/raw/dpaa2_qdma/dpaa2_qdma_logs.h | 33 + drivers/raw/dpaa2_qdma/rte_pmd_dpaa2_qdma.h | 286 ++++++ .../raw/dpaa2_qdma/rte_pmd_dpaa2_qdma_version.map | 20 + mk/rte.app.mk | 1 + 24 files changed, 2427 insertions(+), 1 deletion(-) create mode 100644 doc/guides/rawdevs/dpaa2_qdma.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