From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01hn0231.outbound.protection.outlook.com [104.47.2.231]) by dpdk.org (Postfix) with ESMTP id 9A9F510BD for ; Tue, 24 Apr 2018 13:50:22 +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=QutopxKj7clVe0ztf/5Tk+jtB4gdBRUXc3mvpypT8A0=; b=WdFPzxigYse2OCBJ6YzpYrMZ6bz2Oi5iU4HI5vq+YUH08HMppD8W6nJZcExxSv20ZbWkkvO2YuXcnV5y7D0hUep3ri5UKbxMyoolv1qMby/0dC+JNrrMdrcmJoYYaaBxlfhKQ+pVPpL+EoCqj6D1531RSpTrkndMjms5iccZdjw= 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 DB6PR0401MB2424.eurprd04.prod.outlook.com (2603:10a6:4:4a::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.15; Tue, 24 Apr 2018 11:50:20 +0000 From: Nipun Gupta To: shreyansh.jain@nxp.com, thomas@monjalon.net, hemant.agrawal@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Tue, 24 Apr 2018 17:19:41 +0530 Message-Id: <1524570589-20148-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: PN1PR01CA0085.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::25) To DB6PR0401MB2424.eurprd04.prod.outlook.com (2603:10a6:4:4a::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB6PR0401MB2424; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2424; 3:yi2/eGNZhGkkEoeDJq2rpF59eKgUYCbxjWY0zv2DE7Pu1VkWjaKGqUFELmIRgCsvSa7MgF18pba54RVClqHLEDBCbuYenz9MSFZAktA+SzC8A4KpQpFUzK4/iBb/L/hLOSJPwT4aIx+GieeaEsES9dgjHGH5BppGFckoESLUkI45vF2eHlZenSEaAf4cIves02dhTCZwQDoXMEc0+3PTiPDBJjiMel4jOdd4WW1+Fv+QSBYKgEN56aLGYiHe/AHJ; 25:ow0bfI//aBXaPxNj+v3cLeHi0EQc/41yvlIyUqJKe8S53dJ0HSBnVgPir6bUObhbhPYGmQuh4eKz/AjkrUnQKd7Atz2pOCwK8WdOIbuV5Hkpn+qDjoOdJ4dxTXPvxVASszlHFB5R3iW8b1Foo+6BZcvpIsYLaUrLJ5/9LT+qbGdsdeWJhpRwgPlHHL2hiP/IxQOfIcTEvXzpDGqVnBfoKh5GQJ9foykAJz/y+ZrAiId4+w9T/MFRb1IVW1+f4T5PSptnTh2N7PTlVqSowQEHm3s7JnQxMTGvmMRygoY0pCpyDFXxRtzWOfg9MUrzQe0vgmfcH7CtTLV5YrYvy/WrkQ==; 31:MFfYW075Fy59yu6ExfbPADsS3pBUrcvRdhZaS4jNzHv7ZTj8SiDjjm8ZA4fkT28KXaKH6g4W9BEVmZ+uiOD5eRnefEP9qpQ67Kb0U+gTQ5Sxpc5xZvp5UQmBvh7XUdbajqUND+C7aw4gu/6IqqhraU44TjWnF85BQ3BwNzMnennOH4QIHWtxa+0zPJS4dugsfM3Or5kObSCKg2IhxDQkyUju44kMntrgyW7225JTdZU= X-MS-TrafficTypeDiagnostic: DB6PR0401MB2424: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2424; 20:Q3mAC2+EOfpeUS9hcFDOy+26dBf/RkRWBk9ZfZd/FNvXRqrkMN2idGIzYIvGPDCrN0pCuocuwT/yPmRbAfHbUE9Hhs+FaWXzG0THPI/ubIt2defh/u8kZndTszDzPd7BKpisZo6BPkvgw0ZMfZJ4J0308kimk0qxDyRhpfVg3BO2a25NR9J30w4UMdizJ3uvcnWHHu2/8YUH2rHP3Uj7LZwGt0iNuykgeAc6N+MzlmFyRM+KxPRmX8jfkJXIdoB746uSBRhPv1qUJ9yZ1cfEFYQP1Se89TAbqFXB7mxTIZN9ckYUYYqiOrHUPnwjZTUnE5k5WQSWuY8Q1eM7SrQtBDhalOmTqIDQkigdKwU3xeuEkOwGcW6dGnVjz/epjw+ZGHHrE6FLE7ngj5xvzNt3AlCcXkdRtMc1kcRDk19/qkcqcbDe/AAq1ciCyZG0Syeh3cz9wQt1ko1rtXsJ/XK1oJcFCWi6eRjPrtlPXSkrcS+vve0tcLSDfLZIIrjPcEN5; 4:uis9Q+n+/BSsF5SUTMqHr6fwtqDlvftovB5UbNqLIY7q14AfpDm/3GTVsuxpbmOv+SahEypHF27bAleUf0dPxBMPbp75oKoosOK0RvNwpMl0RrnX0bhtSWnavp5ebrZqrqETJDiAmTieHDpK7twwSqApaUCyJ3BQS5s8TpHu/4a2rdRPaIA3j0Ug3LM3P3dzZ5JQidp7wcAZGk7QT4Y4eVOsI5BdfnxhJ6Z6iXz+vGuyAngJkJgp2jTiKC0EF+OrrJvz0Akk5PGJfUjioed6lQX+K6zqC7Uyq6r+C9imgvWZs+tSVSCIcnMOM8k+LT6fpbKgbz6Vaz1tD0bnotRo1j/SCdRe/vDoGS1NKKLVb0Q= 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)(10201501046)(93006095)(93001095)(3002001)(3231232)(2232076)(944501410)(52105095)(6055026)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:DB6PR0401MB2424; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0401MB2424; X-Forefront-PRVS: 0652EA5565 X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(376002)(346002)(39860400002)(396003)(39380400002)(366004)(199004)(189003)(3846002)(97736004)(316002)(486006)(305945005)(6486002)(6636002)(476003)(2616005)(956004)(4326008)(25786009)(5009440100003)(446003)(86362001)(6512007)(6666003)(11346002)(5660300001)(478600001)(44832011)(53936002)(52116002)(16526019)(76176011)(551934003)(68736007)(7736002)(47776003)(51416003)(6506007)(106356001)(66066001)(26005)(36756003)(386003)(59450400001)(50466002)(81166006)(8676002)(6116002)(105586002)(16586007)(48376002)(50226002)(81156014)(8936002)(2906002)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:DB6PR0401MB2424; 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; DB6PR0401MB2424; 23:4TWctgztyf89a8QlHrPecu2GIf0kxUQyI9lQwqH?= =?us-ascii?Q?y7WdnwI3i0ZWRBuk5/JL9goq3iFW4tROJuOKTI9033vC+mQ7MQkxPMCCY7uD?= =?us-ascii?Q?tRzUAy5/CnaBW0htite03wnRIZwcNwAIhCxWyMZh3tlJz0SWjqYVzfxCcesC?= =?us-ascii?Q?HT7SRhDxYwzTuo//RYv0aCzT0/qxWlSGNH61M6K3s1D64rx2qfREGG/A59yP?= =?us-ascii?Q?XB4f3Cdr+L+9JYQl5USBOmCuXUioTADyIO9ndxJsv01prhyVeajGd+qUSjAi?= =?us-ascii?Q?5MrBARK4GQAiz43eRC1MJkYiW19aHtFS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ka7mbV6vXcgbTJ5/yCXLW6j+aZ3RUlYPiDvQj1QgwQZtZ+r7r3wMxRZ9elA2hGPXYPDGEG2Vyf88ASwVobA0N+2HEQspnkxcRa+0CBQs3gaLd38+ivWZ7pJt93flHJ2dYovHmarfZWMlpNGke5H9vw4kIuPcNZuekiC0mHCRkWn+WFdBkAo20bzSjkRX2NGNXQsPeyLVC/yFvbVgo8jrAc06uBc6QcqEgC9ElsfnMHjb9iov20f3H9BK; 5:wL64LL1P/RjHT18+xZbNrtuWoNlgPucMp/HQRYKJ78fPaaA6taH7vvVoMaTHtL5mF3mPi1o6561rKj34jttGuK69lz+CxzyizOpzW6/N6LGCZ7stImUiTHHsne2qWNihzfF4XOGHmPraewV0/UKC14S4KR/4s83EvPy2XFOHeWk=; 24:wH4mobfBG1XQEGec2u5g6UYMfDnivgJp9XNrocuI+ex8auBU/1x3Qt3cNtkn2FWK8XJPmiYMgsWk05n2U1FLJg== SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2424; 7:kpS9GY9IczdSrmuQNolPaXPvxQEqQOgEpvfEtp1z3D+Z7lzzJZ1JQoVGpBPbpCe/whfwzwDH2MIgH65d/XFojo+teHHBT39C6jRIBXd+hv72vmuhnK1WK9zUF/Nq0Htd+7OovCrmZ4pGW8aIw4Aikfwv2xWWKwq7TFuGD/D5242YzyWExmNNNpVQvTdoA1tjGmYswBL5P64cp0Pg1ruaf3vHRWGU/iwX7yDbVP1IbTxffSWmefsmm9fqo/5I/Pl8 X-MS-Office365-Filtering-Correlation-Id: e6b98bf3-8c4e-45a1-d09a-08d5a9d98ef2 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2018 11:50:20.2974 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e6b98bf3-8c4e-45a1-d09a-08d5a9d98ef2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2424 Subject: [dpdk-dev] [PATCH 0/8 v4] 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, 24 Apr 2018 11:50:22 -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) 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