From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02hn0209.outbound.protection.outlook.com [104.47.5.209]) by dpdk.org (Postfix) with ESMTP id 5BCEE7CFD for ; Fri, 20 Apr 2018 06:05:01 +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=3Y2G8eYsHx8fUTUVzI4F4SOcEieFk1ZQ7u/auJUnjH8=; b=tmrxvriiexaghN/hSogVdint4PqyKECBnYwhLRfo0bOOnTdEdStVjSbOOSZ0yg2h7PJ7Y1g4raq7RVElFrEhKLm+gDbD+jg+CxgRbJCXRFuXkNm7kai7o3Tey9CbG+AKIZEcoVVxLbbY+thcTMjbqd5goR1sggBPtutJVtYdAuk= 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 DB6PR0401MB2422.eurprd04.prod.outlook.com (2603:10a6:4:4a::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.14; Fri, 20 Apr 2018 04:04:59 +0000 From: Nipun Gupta To: shreyansh.jain@nxp.com, thomas@monjalon.net, hemant.agrawal@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Fri, 20 Apr 2018 09:34:13 +0530 Message-Id: <1524197062-1230-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: BM1PR01CA0092.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1::32) To DB6PR0401MB2422.eurprd04.prod.outlook.com (2603:10a6:4:4a::25) 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:DB6PR0401MB2422; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2422; 3:r5x0IHIcqUVMd165z/QRrudZg8TZWmsWfs+IlKegdSFLWlWkf4XzlLs8RZJGZblbjpaiD09bKQkUFo7r3h33f2Dhp4MQBJgYVKfAh79LBOhOUzMroiwBs2tnV7atGQ6sEr0y/xZ+dHmXNtZi7mP6BUWnHQTYL6YbUAxRxvb2NdvoIC1JUQL4+zGesum9WAGebb0Rcn6mVzxdXWMEeiQynQIxfx6brH7PFXkYGi1uhQUZ1ctiT0ZEH75qfaCXXpdk; 25:DVn2GAfaDSqRpxqzQm1AVN0lHsX2Af11wqYTjGE9RK26M0/73ED/j2m80MTBva3egBUVZg4VvdDG6psgbLfneffhMZ2LyZ2KBOk9vhQNU5pBv/LsUVjxwKfUw3uzlCdkofZhC1j3WLeDHGZxn0rquNu5CLUn3htO0A0U1vYryBL2BDdbjmN/vVD7CP31nodsAsoVqxG3GSP0H/RlRDNEp3RLnzLigYt4t1Wr4PiHMGfbwtH45tTBYTyK2dtZvO8Qbk1ffvBcc0mtIaFY6H1tHkLSyKs5s59G+yi2AX9mc+LXOre7oIn+QxXqONeC7a0EjSEV4ym7GfbzY/9zeONAQA==; 31:eNymmyjSqqDkdguG/yaRyaOSfwyhyW5KtS0xfonGHk2r7IBlYX9+MhV9liE4fG2xYxVlJ0moUVUuNuKHYbCHNGtQZXMvWPu9LX5hq3VwV1zouxYcTqb3A5hx4tokIRxgypRfuSPMfyvfwtg0MKuDG+ggGDZDVq+wYA+yGu/IMwgdn4GFFsjrGUlqBox8Npm1dCasP9i+P4yJkPE+fJ3z/85tLA7xZznbDJy/Yk7XBxc= X-MS-TrafficTypeDiagnostic: DB6PR0401MB2422: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2422; 20:tKswLW/W4uUicurc+mZ2UA88Xqn7jRB+P4IGgvYhv153Pq5vtB3BbUou1P10P06puQNMFncjc6FPC4tt6EkxfUIgbUk3uUnkPo2UlgNRxprkcKNjyLMdpPt1UixdYLsJOScEqsbIz8ATC0Tid+lqtFE20cghlHDW2BEeEf9ZaLLYzJndZp/RFUFuTFZEXwljU8ygxcr+DEKuQV3dUPowcC5k1f7Aig8Wa0u9lc20Gg0Z05xo24e4PMLXWwaMOoKAssDNmQIOcL/jNA/uBHoJYyyjSF7iHpf0r9vcpDkoQfBnXof4cwapFps9/tGdOJJoXsLEx8kk2Er+cO0zfGY3AltLXc83UUZtP8Ltv7z3LA4tiU6xHUc4yJK8CX27xO8gKXdO/mdZaBNVtYcF7Ii6FP2wKE6nw6iIK78sV9Wn2B5C6IlyzJs6EQohdkCI6SUK+JefL/obWkpBKZ2Etxjj+P3FUMASvmjaXSyoAic1UbXfV+6vdKYdgrQmIXLg7bQR; 4:/mT177NB0PHmWASX+vjHepOaWTp6tEHDOhXOzlRFF8bAPD5aB1OLDrg0chqABs8PA1ubnL2l+sLaOEMgAQYUd8EwGjS/5pCbHvOXA8AR9wiuMxUoHY7qGUd5wZJga8lrst4GsYsiJjVtupRNUfbvlcn5Hz4YPRZa0jM2si2rPMpbCIHRJ7j37WV65aLgQUiameMWvt62K556J/tZNRgeublXyQIemAxYm3bv5H9hs7SnsJ1Frq1hywiSnhNRzPDKf9U4jRfJwQvLC+YtnKmYtzw1Z13YaKNS92Mih+mtT++mdhZ5eYHv0Jmx8EQIViBRd+8CVx8NBdYsgLogSMW2GmfkkHQNPznOyR8mEupqaW4= 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)(3002001)(93006095)(93001095)(10201501046)(3231232)(2232076)(944501327)(52105095)(6055026)(6041310)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DB6PR0401MB2422; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0401MB2422; X-Forefront-PRVS: 0648FCFFA8 X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(366004)(376002)(39860400002)(39380400002)(396003)(346002)(7736002)(316002)(25786009)(51416003)(50466002)(16586007)(76176011)(66066001)(16526019)(47776003)(48376002)(81166006)(8936002)(8676002)(551934003)(6512007)(50226002)(36756003)(52116002)(2906002)(4326008)(476003)(305945005)(6486002)(53936002)(2616005)(6636002)(956004)(6666003)(44832011)(386003)(11346002)(3846002)(5660300001)(26005)(6116002)(6506007)(5009440100003)(59450400001)(446003)(478600001)(86362001)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:DB6PR0401MB2422; H:b27504-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; MLV:ovrspm; PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0401MB2422; 23:JPn5Wec7mLvzUwj6uLo5IBlsbkH9oExcjgoryaG?= =?us-ascii?Q?3usCY0Vh1D57L0OqW2pOqAQgubelPFbENvGxSNWlZ+O+vVWXNxN4OkwW6IEs?= =?us-ascii?Q?Ug9lBQZK5FjkELgosPgFb3QTXapkBdiuraLsxbtLpAeRZTgjBPluJErRR0sd?= =?us-ascii?Q?ajOOYDFa116oDdc9zx4DTv5A2eGIUUnWfrVOIvc2fE86pGbqdS3lAAWLtNES?= =?us-ascii?Q?WGVqQ67VrQBAZNSxGajVGMAI6V5G5tdmA3wdsiP+ZLKfj3E2Hy2twfkCMe01?= =?us-ascii?Q?Np+HlrINV0paK033UessIb6uQ27CYF5agsW9b6Yo3g7po7Qgih7j/8lCs1gK?= =?us-ascii?Q?RamESSkqeV7+euas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hCIi1yjc3HNMDafUFHu2uorNLbKNVajSUHlg8er9U48q5SaQY3TKLhyAHoghWB2K/cIry262wMuluF694LPOQI+KDz3YxNv3YuwyD+Snwx3Ci3L3wqLjbOKdMjlAbDhrl2nqobO1oZx0hFUAGHnnqZrgUHT1RJMzWzlO0=; 24:/s7d6MNUqrW8nmrkPCxqbiSAKK/lF4TgsqHSR4qlpEndSV5lOocb2Rcq2HLXg6vM8qRsmhNLtwHoPYS2uP0cqA== SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2422; 7:ZEt3JW98EOE9XJxOnO30THzcbjb3/oS1lIRmfjlBORPYpaGwW4AZ2QZtAUPFvWmznD10pynzNHziL69wqTJBUXA2b/SLlunzgc6OfdJKRPwR8bQdNapdw6CzZfNd8/yxB9NcZYN0D+F8uGZAPrNzGCRJH+vSp/76tP1qvWVHTKPFX+SMB6LCJKhpIcvUvcYIVAk51A6XtDbS9lvRl4mfPAVXw+7T1hhNVjEAOh5LZ6x46EDReevDP/37LXYc9agu X-MS-Office365-Filtering-Correlation-Id: 9121d9fb-1d0b-4b24-4580-08d5a673e2ee X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2018 04:04:59.1196 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9121d9fb-1d0b-4b24-4580-08d5a673e2ee X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2422 Subject: [dpdk-dev] [PATCH 0/9 v2] 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: Fri, 20 Apr 2018 04:05:01 -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 Patches 1-4: Makes necessary changes in the DPAA2 bus Patches 5-7: Add the DPAA2 QDMA driver Patches 8-9: Update the respective 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 Nipun Gupta (9): 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 bus/fslmc: fix typecasting in IOVA/virt conversion macros 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 | 9 + config/common_base | 1 + 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/portal/dpaa2_hw_pvt.h | 12 +- drivers/bus/fslmc/rte_bus_fslmc_version.map | 9 + drivers/bus/fslmc/rte_fslmc.h | 2 + drivers/raw/Makefile | 4 + 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/rte_pmd_dpaa2_qdma.h | 286 ++++++ .../raw/dpaa2_qdma/rte_pmd_dpaa2_qdma_version.map | 20 + mk/rte.app.mk | 3 + 26 files changed, 2476 insertions(+), 7 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/rte_pmd_dpaa2_qdma.h create mode 100644 drivers/raw/dpaa2_qdma/rte_pmd_dpaa2_qdma_version.map -- 1.9.1