From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01hn0245.outbound.protection.outlook.com [104.47.0.245]) by dpdk.org (Postfix) with ESMTP id 86DE51E2F for ; Thu, 3 May 2018 17:52:28 +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=esm/Z1g50Pcd6sZd7s92L2S9W62G7mbzYQfygtrlbYY=; b=UQOXKTHCxobXQ2reE/FQVc0amQ/KhvU6cUgX3JBwzfKXlo3rQ6qa/2xRIfxN48/lYm7WIJDZyO5WgzCFtfuXapqJ0AVUFgpA21USGwvBnUnsrpfWE2LmhsTqbBrkpMzYJuZG/vFrjgQKwQd2ozFZ4GOmlg9k+2S19IjweY7x2Aw= 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 VI1PR0401MB2429.eurprd04.prod.outlook.com (2603:10a6:800:2a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.24; Thu, 3 May 2018 15:52:25 +0000 From: Nipun Gupta To: thomas@monjalon.net, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Thu, 3 May 2018 21:21:54 +0530 Message-Id: <1525362722-32726-1-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525280972-27736-1-git-send-email-nipun.gupta@nxp.com> References: <1525280972-27736-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: MA1PR0101CA0046.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::32) To VI1PR0401MB2429.eurprd04.prod.outlook.com (2603:10a6:800:2a::22) 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:VI1PR0401MB2429; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2429; 3:BUFiJLYjG1GDGDj/tfU65+zznwaiygb4SNbcwFasy8+OHoeDhlwea1fwOTIQvi8XcKyj2AAynDRm2xYcR+FxC0xeseCGYXJC5KSJAFO+C+mJnde6yHOFcMtYkniiA9cFYGuaTljfc0ljZhqOMbUJ2zlJ0EXkdJU3dikET6KY0RECrqw6aVAtDlDuISSnoXeH4yb9Wy2Rwhl8qCTEALqRNtF/d13tRXU8owkdXBUFDX7r/yaaYkYaCgr3NfWKbV7Q; 25:WKDvHZRPcfhQMekL26lDz7UTMqD1kwFvdsUNMR7HMqwCiDx9tp/3gNCDjEJ7tFrNlmhP0Q1CcEhBJJfXYZi0Vq8zXV7Rpevqkm9ggGHVLiUQ4piEG1Tr5Xv2Z2rKie2WbXLQdx6jm4F3YTQGImAReym6GX8u0E7zrDYhLIKddDAfO58vNvIUGDM/0H4iWALvHHFerK7qxcxhzPw5Eng/UIvmonvT7WaA2CZ5ze7DNoii66yWodssvBYgBMUd3qsmelX7Vu3lWhSUKj/dtVYTN2bx3Y1GweuDGcMYQynQiLKlW9duZoCLXL0uRYRGgN0dJTdS6Rw1vY2qsXIEtWg3Rg==; 31:5ImYGwsSr6J9ef+W4IVXfWVO4sz1XBh+FOac/7FvORgaB3suBbHoGAm9pMCxoeprkoup8eDc2VLeq8nKM28iSEYJLR0je8vYySeqSRSpTP4iw9z7DOdzXBuKCUrCr0jaxCAsV6eImpf+SbIMOI4+8F4E2fbyE4WGyrB5Us0En5Ad1OjjnNlkOsj578eOF96TCtxsi71oaa/Kp/em0PLetndWz20Z0H80PSzvoeOWrzY= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2429: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2429; 20:qGtyFzySAl+95Iroph0D29LdWpOYj8qwrgDQ8kBF8DxSLWMzYFA7Sm/47j8j59hiWaU9dJHVMpJQaxOOhpXgMaZk/NtnSwhVOzsEP6s57BIC2GFmcboE2wNQk+txZ8DJj2tSnf+B+XFaypcB1T37B1jUxrV2TLrP/mnTFQQYR+OrFPukFnC2T/x0Knt8LqTrfvgytP+gBGmcnm17JOg7H9W2mgKv0V357Ziv0DBZuwYS+kHmLNIPN2Tq2oiVqOF4L3MA59O9dmd1M95aKD6vpZzizNkl/oNQirAA740JE4jY/SRnFDER25uyJS9Amul7+UMMO9PUT04GAKi5ji8w+0XEZAMVZ5YScFmzNSquzK2GNFlrEGIhOpEAahK5HLiL3AlT/oQzcG6/jpWWW403OuBVhPwXiQ0LAj5+oLmyWYSNJvG4FHT0wrbC3zriIuCRPWgx7voWP7V9lI6wsF30xbHuPpBGgloqBmatbG9uUsw9azMmOUUb3eQOblZjszIf; 4:7ss5U+JDA9mK2qpCDIugIdLAMXSs3TYSnCGxZB4hpNRshm2B8EnEftJw7rp06Z52XdNMfkJqty7YCRX55cMNB4TXOmnN1hm914pqIaLzGia3O3mJHH3cwQoUgzLiIcaghhiBDBiBzSCIPup8f5p3MGBfctl2ojGWWP3WXWndtGLN0kSnVX5Le12sB9DZB8UFXbmcBE99xmWSJvpTqZYJcBdOCeOw3cZKDfL+p+XE/zxNkwV326jtp0LUbIiiLu+vjfggSMVzDtD4QdscJP3N+rUK5VNDcXnq1DAm/asS9Wc3wNbE7tBcyDDlDUStkEfueYKYac8x1abIP4GoHCvkHnQ0u2QUcmXxdv1TWFjugps= 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)(3231254)(2232076)(944501410)(52105095)(3002001)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:VI1PR0401MB2429; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2429; X-Forefront-PRVS: 066153096A X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(376002)(366004)(396003)(39380400002)(346002)(39860400002)(199004)(189003)(6666003)(50466002)(6636002)(4326008)(68736007)(6512007)(5009440100003)(25786009)(97736004)(551934003)(6486002)(36756003)(106356001)(105586002)(2906002)(81166006)(6506007)(316002)(386003)(52116002)(59450400001)(66066001)(47776003)(86362001)(478600001)(446003)(305945005)(7736002)(48376002)(16586007)(76176011)(51416003)(55236004)(6116002)(486006)(186003)(476003)(16526019)(2616005)(11346002)(956004)(81156014)(3846002)(26005)(5660300001)(44832011)(50226002)(53936002)(8676002)(8936002)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:VI1PR0401MB2429; 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; VI1PR0401MB2429; 23:+e/2CZvhD8i5dspW/A/eFr2Rn6vx8rcEgxOLZjY?= =?us-ascii?Q?otOltbHglQxMxf+zR5vIHFvOC0ZGjm6eiFWlEpshvnc3n1s5OgBEfwe8SQPt?= =?us-ascii?Q?0bzRYHpCQ6FfLYVOP7tS8taa6v/AewXUe026i0LMnA4ooTLfrWKzLHHAemkN?= =?us-ascii?Q?eNMrjoUFmUFY6pRjZ+Aiqsvf3yPxUPsvd6rGb/9LkHS9eqB8TuBUtkjdRL+T?= =?us-ascii?Q?7xA0qaZUkcY6rTq5STHfXFxGXSErDL/aUK7yb9PIEOPcKoH+sVNlEgH7SycV?= =?us-ascii?Q?kdwaDWEIs2rnatk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lHuK5CkiNia3GKxj4oedmPb3EnTo7SIjk9JD5SCyxmfsGPbsTRDigtfrxDagotvRcgS6CSN6CT3PNEbqy7XlGPv7prU1+vIt6QT2l/Ck7Mk+MGL7GxL4P6d2snFRGMPml4PPYEHRr9p575l9Rzi3Rr9o9nOIw7FyzjCf+X6uAP6uBL8l/jPp2QPaMopvQ3B7lYo1cln3ty4jHNqYHmrI6qql+4euCyg2HV9uNjqJLZ5s8XnSDVKBrA+BkB2y7ieKINhs50pqhtLJP6Zij7mTMt/M2mVAVJmRtFM0Usn4ow4eJ4L+Ctf5c8jdH7sn78oq9uorTMp; 5:cyGd4H271Ip3odFkPt6qrDRy6SowHoGA5gyphxeugW3K5rbnDlVtou5DqJjn1gaFYdOv3nxvqogOlbp1rX7UQq2BIaXNSqhsXmBLUBY5trFfz8pnvhqMhxdHfKzf31XfSfblMdi00Wsw12Vjn64i75kT03U40PffyH/ubKwWLgs=; 24:zBZG31tr2DjnDYpQG6uUfPHJi07bHRKBXaD1AnHKEPW0mEw6lSWbvmldXKWKYcyK6qNiK3NG7w0U6bDJkZW0mA== SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2429; 7:AdB/I7CLTKV4eJx2JlVmHdhVqa4a6fkahaVwJjZKta5SaKW2/sw5JJUJjXjihAsDpFw2igYchi6h/rHORd3KSDmr4Hfy55GQtrRto7Q1zOcSvYGRBy/MSYkrxwhtwoUcf+s/+0PAMhEgr9WJpdAd6xAEheDI56IyN0mDMjDO8mPE25MonMHnWv9aq+B+IafMD4k2/F896+jqCvlFewD+FQYt3mD11TQI1pWhMwmROmzXox0ECiL/d0pLYiIFjGCR X-MS-Office365-Filtering-Correlation-Id: f7600537-1f01-4dce-fb1b-08d5b10dde89 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2018 15:52:25.5632 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f7600537-1f01-4dce-fb1b-08d5b10dde89 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2429 Subject: [dpdk-dev] [PATCH v7 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: Thu, 03 May 2018 15:52:28 -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 Changes in v7: - Fix x86 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 | 7 +- config/common_linuxapp | 13 +- 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 | 37 + 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, 2512 insertions(+), 13 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