From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01hn0226.outbound.protection.outlook.com [104.47.0.226]) by dpdk.org (Postfix) with ESMTP id 2A44ADED for ; Wed, 2 May 2018 19:10:17 +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=Foa39iSYrs8yUb+YpOQFMRgbuZRgup3EiJr33p0ID10=; b=NsNhuORnZ4hSHGQ1vP6SjOKGrlb/sS8Y7vFb7O9Xn95mXbPAby5Roq9GGS9u/AGKm2Mf4iARBt4eDeXhdQXEQyE1JFpUPC6AoCrWfGcJdcMnqHN+xQbUgG2cCFvgVFo5rrYLI2OFixmsUv7m0oB1c3yO8+Hl0Ge66QXBi8Y+crY= 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 VI1PR0401MB2431.eurprd04.prod.outlook.com (2603:10a6:800:2a::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Wed, 2 May 2018 17:10:14 +0000 From: Nipun Gupta To: thomas@monjalon.net, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Wed, 2 May 2018 22:39:24 +0530 Message-Id: <1525280972-27736-1-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525168731-30912-1-git-send-email-nipun.gupta@nxp.com> References: <1525168731-30912-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: MAXPR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:c::26) To VI1PR0401MB2431.eurprd04.prod.outlook.com (2603:10a6:800:2a::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2431; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2431; 3:zraDgLO1Dm8g34fhYMDLIyZVkg/oNBNNrZwAYc0mF8mXz17hMqtmDjeEwVdcMqrv2h0mxliAwNISIPSaCOAZemjPeufdIBFINT7DUQGYFGtnkIWeHbws/e6wBXi4Wb/+LiNwxe2Cenu8R1oYVX+kE5y557+HtPr3MHmIWv8kyUXhaETgzMbzl5tZ5rzuT099xLRGy4qfjtFohXzqJkdDGs3b8gXRuzZsUznSLeCQh70llI/QlY6PvmpXk526cyKN; 25:0STsLouEEA+cQYIlZ8htXJmiEoFT9eFGmMD7jokZvIvWulzQZWaNp0t9u+UmkpraG1ShhcXsCNISwcgYDmXfaAgmRkk0DjYaOdw0ElWhduMSk8JpN64GYVX7s6C+DvnneZyoHHj/X4QDIYjdP50WfeJsk7cLquh5HjmeTimfBOa9jVJF/DwJm3FAmuIELU55NmLumZXXlw6ydfqEuJytgzZqQNeCize202X+nYI58BAC5URm/8/UUukakcbnoGjP24vOC25KGiI8Kxgs3Ex7r3R6TvBKR7ewhqMUjVlXhngMzeOaBR0deu6Z+DtTPtIr7w/8ohyIIYiaBLdelWzpgQ==; 31:xxhbzVqf5gYBoE6ek+HtA8gMHL4YACjp804vmtfwHWUeyA04zr0aAEWOX0xKNpYIediktTgXIbN2V0erXLJGcHJNJozf0DhNO0xckOy2Z18L0IhGOFkV3kkcV5hTqzAaSwCneqhSf4E4njkuJrNDGfLorI3NHM5RvV/USEdC5JE3AO5YRhNPLTBGuOEloEHS53iVjYvtVnK+tFEps678ZW+U5NGTMhCPZNhCr3uhNyg= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2431: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2431; 20:XLPtfkok8bISYfycMidlCoX/ulrrfQUeIMuzqVqrksGNynCGaJldHqoHM8xRd5K00GICUMt3o2TY22cCC9K+36JUUXgsegmyzCciwmIxrhlWSFKBkEhijzwa4SbD1P7INRwPOh5C548lo5vi0gahV57xxmSI4BvTgbc4LtKJCTCSjK0qqAjujURPSPyJ0j+NOcX9PP3Josz9YFdGRIEU/p+ygw1fscuocDmcdXMNlpUObTceSJpVScvVAl0zJX2WmaWKci9WD00UHxMD68POE3ATWyrVqohghf1111cmDwmyxYjexkXeJj7OXPs5mrMlnzTbi1s1SPl00CbTYjSzvP1CcxCiy5dr86ouYMN+BA4ujHWEQXv4mO9vG2f8yGFlS5qqmTOe50yKJFmm+mfPuhs69nNRI8Qtw8DwfeYwzOUh7PDqSo7oP7tQGOL2QCG4jWavx2m/L0C6SUZ+9tV1FRozFgamRWx1A+YRMy0iYpdTLRY3XCSg5MXy5TkAOOYe; 4:YNerWzaiJwzlV5RDs8JoJXF/mSxdNhopB3bcyx/5yzbid8OFfFU2E9gEJhkJ9pzr3kEtjLy775BwI9rRDWspGEUgY5WyjGgeZvG3aSo8jmxnuDPMmiRpk4e8iBodVqb64aRmC99jnVDSU0ovK8CyYXoJu9T5FcVindZ8uI2uwKMCIkKDPJSCBJQ79FoFNmozro47beA1UyTttRSjsisB1g+TEpwMQjI2Ndz1tP+SNeNO93TV65kxU1+ogvTrvGLyg4A+F/EaimL5fVKw4oGrb0l9+0zQnvgNSgdww6Oc4v95nyQtu9lTm96usMuYfX92FNAcfDk1b2KCSJcWxsmPXnfWlLzRvEb0lgIuungh8mY= 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)(10201501046)(3002001)(3231254)(2232076)(944501410)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:VI1PR0401MB2431; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2431; X-Forefront-PRVS: 06607E485E X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(39860400002)(366004)(39380400002)(376002)(346002)(396003)(189003)(199004)(106356001)(2616005)(305945005)(6636002)(6666003)(16526019)(50466002)(7736002)(5660300001)(48376002)(6486002)(25786009)(478600001)(53936002)(105586002)(97736004)(551934003)(4326008)(59450400001)(44832011)(186003)(26005)(47776003)(8676002)(956004)(52116002)(81156014)(5009440100003)(51416003)(386003)(486006)(476003)(6512007)(2906002)(8936002)(3846002)(6506007)(68736007)(6116002)(66066001)(446003)(11346002)(76176011)(36756003)(16586007)(316002)(55236004)(86362001)(81166006)(50226002)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:VI1PR0401MB2431; H:b27504-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2431; 23:ptszqPUtFw3V6tgXPi6yUks5ZOMJde5wwkjEHOl?= =?us-ascii?Q?ETWog166XwNaAcIlDWzHr+0rO0BYFqRwKWwPcD1/QRB0HNK2us/5OG3vw1Mk?= =?us-ascii?Q?6Of2wtI2uF0zEakxV8qHNqtIFcpNvnGXo4K6AKahUwyZ4JFFdswyTFx/PgoB?= =?us-ascii?Q?FGO4R2uY1aQRWr64/jTelAmF4bze9beFOWDQb4nV9j7WnmkxJan70ReeLRBl?= =?us-ascii?Q?UOAjN4ff2Qdav4JA1D2AjUtzYXXShbwuY4dME1uN/fRl92EjMd/IIccYS08T?= =?us-ascii?Q?uB8LkXA4Xu+P/INRy+FPmAxLedRbsS4I8BGj78AK8jsUAko0zE01mOHb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U/6y+QnJj9wIPi3gvPiF10WlrBZFAshU6rwaqsyAOB2Qk1ykgRGazHHbT9ERqqF1M/nDk+X5QdlmiHZ12y8ihHNumOCxySj0djTPVHKxJvaPYEdAI74T7aDhhxFpFBaZd+0MIGfRFMbomy1ilkGbKWnDhV2io+sz477+Fb8GcYsV76Vn62C0BWTWiM0wZg3f7Gv9cd4nx+KmGXhWJSLbUAtoFc8AhLzJzvu8Zm/LtGH0JTJ40w9vOTw96irZOmBfdUXuLbhrY; 5:YlvmRk+jutpJrwaM5RyJGyEmihxdBCObWZ/di4+DkPVMhhgtECZpAzyLD9fki6orEADdRi7GUGGAavmfo0grBGo2ayfBAONy6ECf7OA4LtCGHXzfFaA/6YkCKvSETrcYSZgXsAWw46TS8W+1W8XpifaDxyqjbGL9TNfGWAZa+/E=; 24:o1R8huNkamCwGgA1NUO8O3j0HN7RQuRkc4F57TZvx9VSVvz7sskhwUfvNeiWVCilXjF66w/0Ukn/0A3QMxlM5Q== SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2431; 7:U6BTXoKxnYw0gEOeihT/EYjjcdk7KbBpw+dd65ABoMRD5wvzxsWrmtnh6RXWzoHKOAh5bnXBIKoSCYd3KjFpxBrgzHoCEwqzXKU8hc9zXOCR0YWrc4YgwtI/JToazSUTfs+F6kXRpjXHEOrFZIiCHtbl2i9yICU0P5vU+BUmG2YEKTYQM8BvRgphRdwTa2pe83RVaO16wX3kZyDo+7IJi+9HmzzQ5Vgpoal/wHOTj1DttlOXufc1V47j6722jb/V X-MS-Office365-Filtering-Correlation-Id: a2f72fee-97fe-4512-564e-08d5b04f92eb X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2018 17:10:14.3782 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a2f72fee-97fe-4512-564e-08d5b04f92eb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2431 Subject: [dpdk-dev] [PATCH v6 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: Wed, 02 May 2018 17:10:17 -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 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