From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03hn0245.outbound.protection.outlook.com [104.47.10.245]) by dpdk.org (Postfix) with ESMTP id 4101D2B83 for ; Wed, 2 May 2018 19:15:52 +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=c1GB4AetseE7dtTqhztKWXwql0bZ4OF7MaKPEHsIHd8=; b=sjG2S1MPg0UT3IrlrFLXsywpRSq0uQzmSydSqoeko4X4Dryg/IUP9/sCaajSz0dw15JmW0iYzyDQWrx6F9Dg14Y0nglqYwNt9rRENfhkK2tyd1+av4j3huz/y6/R+1yjTSAPIwGCa0b+Mus9Lv6FTQGCOgpybcvOZa04mFpoDnE= 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 AM4PR0401MB2419.eurprd04.prod.outlook.com (2603:10a6:200:51::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.715.18; Wed, 2 May 2018 17:15:49 +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:45:22 +0530 Message-Id: <1525281329-27984-1-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524737696-3145-1-git-send-email-nipun.gupta@nxp.com> References: <1524737696-3145-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: MA1PR0101CA0001.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::11) To AM4PR0401MB2419.eurprd04.prod.outlook.com (2603:10a6:200:51::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:AM4PR0401MB2419; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0401MB2419; 3:KnYxEvjrpMrtE1Ygn8lHgYiHllFWPsJu0AELLdPbSJhuZYNK1jGC3vLc0kGjiqqV00y1JvethZXApIcCGA/IbpPZCgZfXsWXJHlHwEkQJUyxS4T0ZNVHwdS1bcbEvOpkfjzChEx7apN7ATy4p3Hh+4xaLAYlSAFFNrtrrQ79Vzahie+ElptfB7P6KYfv7G8anSjrVEzZ0Qvzx+GpsbrV6KN4Pf/t9P42LPILSAI/+MOXlOapg7jv/WLZztnWiL/u; 25:AeW5l717AZ4LvMBGdCa6qd2lx1cGNXQEAXhWTkqzzKAx2iwc97KZrjj/ngPtgpGA30e2plVPEMbbSbc1OKucQfXkCARlqvZrYUfySUFmcocY3sedwkUYi6fPDjihQ9j6N8DdhF3fOwgvB2if1b2j+5/79l2bMg1dIYV7IGE1lBmYmMQenY8aFCa4BiP1Lx8z7b7pL7WQ5J73gyMvdYAmbDJY78rYPxeSSeBPDb8+Ns55FEc+ev9KKlztcbqkTNwuYz0dzkfq/EtRsagwdSyDjGHTNkRiHeDQfeTRs/IKwgQvftjmy99/IW7IljHajT2m+TW288Ip3t1Sjr1tE8z2NQ==; 31:JT+mpc/2nPeviBNAeTrwun/xOihFYjJu+TFihg1nyBW3DiBE8QJJ4SmtbST311HCvVyhKAO3GlihVnC53xUO9tsd11avbSRFFXcVZexQUB9KLA7HksmXHk3twBdzt74q0nDnvsxaItaO4bNB5jLA1whbZTRJkfhJr9iiO86B5qiCkjtsNsZxBK6guINJzS+REmhWgxGQBLszxfNMJKrmHNCPpLU85ummeYj1A5ZG+S8= X-MS-TrafficTypeDiagnostic: AM4PR0401MB2419: X-Microsoft-Exchange-Diagnostics: 1; AM4PR0401MB2419; 20:D0DwS31rycTj0/tR7bAZAVn75C3b4QY6ZeASIPlo/f0/rBnl/6L8ATdFkbpNmms8n3vDLkwcwuvExWd6VHl3Dvig+nw3GZpoFYyGq5puEpR5nzBHFq1W80/pBAS0IuZeVhLrc5Q7tBqCori0lZoTjtByPgIs3pP9kSY8ngVROG++QTHsnW0YoZGiaGhJ8O8FHwOLxnVNnJxdIX2GPR+7V4CUTeapMch452Q8KIV2ULsHqYKAzqEen8XhO/svlqs3MwZz8s/xRa4264rNKR3BuVp8lGVC/+shoBQcg4eEUMYECSZMRuwiOhu2GV8i/IXFvYFUZyXlCI0gYaocl+zYgCvKgLSV7TTBSvYZ3YjlSTkhfDTpXqlkiw4vHuSJpBaKmRwndsIzuI0oytsmkExF8WTped2vfS06tEiCvEiRk836UMp0TYoN5Ud9YLG5j18W9HJY0nJYfBn6M9Ism0IgiModbnXQC67GPufgs7UOMHHtSvbLRBIbJSJQxRKcJxhO; 4:83njVJuGGRhhB8jCXbDmYvsuasDBNKDDSh3f4vTb1luhrU8tcndE40oeliqfGJ9Y5DXLk0q/VKBO/MM+JY06I4ZnSe7MHrjW1xuJoTNE1/nqVxeYtynCId1HC/VG5/Tk1tqxDjwva2UHWATeWhjwX2KbmK1PslY5iqo95PRm7jplrShRYrToLRFAhoPgtrbI6C8kB7HyoYupTq5ODXhA4EuH5BVej6qrMYssok6WIoCehijAJvgq0oxH+2aOJtWSp9CwWiVYCByiMK4BHpEoZuDJEInm3EkR01ZpKfIdk71H9zGCXB61NxA1UrtWs7URs7/ES4Ymo89y5HK8jVAR2r+0PGqbIwVbGg8S5rtBnWjLiI3niV0wgwU/pcLryY1g X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(66839620246622)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(2232076)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:AM4PR0401MB2419; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0401MB2419; X-Forefront-PRVS: 06607E485E X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(396003)(376002)(39860400002)(39380400002)(346002)(366004)(199004)(189003)(956004)(316002)(16586007)(11346002)(3846002)(5009440100003)(6506007)(305945005)(4326008)(6636002)(476003)(97736004)(5660300001)(7736002)(2616005)(48376002)(53936002)(50226002)(86362001)(59450400001)(6512007)(50466002)(6666003)(486006)(446003)(386003)(6116002)(36756003)(55236004)(47776003)(51416003)(6486002)(106356001)(8676002)(6306002)(2906002)(186003)(68736007)(26005)(8936002)(25786009)(81156014)(105586002)(16526019)(44832011)(478600001)(81166006)(966005)(52116002)(66066001)(76176011)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:AM4PR0401MB2419; 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; AM4PR0401MB2419; 23:ptAkXptp0yjpIaLirN+ALP6pxxds0h7LT5mf13A?= =?us-ascii?Q?T9MRHz0CLyu9NWjqpa8gNsRh+tOk0u7lHXD4WMBR+egjURtmxFrVmtrw4ak7?= =?us-ascii?Q?Zo+/FxS72lzaCwvj8eECsd0Wo2+H2564mwCHArIIeLGPCramywBcbfLDkSeq?= =?us-ascii?Q?HOmNcr0lo9cXi9liEi9PK7Z6dtp2/NQLPv+j+evx4hCXd4kwMxDWF/UMBTYJ?= =?us-ascii?Q?5IWxLcUgdzKsdN3sAiLn7TlrJyHFtPhsAD/vC7BrhTbZ3fE8Rg4AXMP7tlFO?= =?us-ascii?Q?c+juu6uhn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EFFyarOpJD3BBbEgyT7qJbnQG9yt+TLRvY+35nynJBj8DL4595IvVuEJv+BPr4Mxvy+cO6WNCfRApclfRmYfB1lqpAN9JHAW7hR2OBcLC74sc3ncbs4vSosFC8kLpG9ghjm5J3zr3xsSTXZzRl7ffVkXxme2oafR+ucoD2TZfUQmDxO/YRYHqXs26Miv9ojdQmQAKloUzbEmcsk6R4msmfZiU8Mlq9cB0XFlpypKrr6TD6awFdLFcVvJthRxHbGAZg5RsF64ye7E1ftGydQmsMrX9ho6qzSV/hftGWw+nfIPvj9VA5sXLSBEVtq8Z3aFwvj3YZvf; 5:839GIlzQOJihG9N64LfbcJMEShKp06RlU94E9eZpakU20EpMfoZWcbdtXKYFtPiggafPX+gX75QFSk7HB+k4I1JIdJniAclgeO35+haIXSsaKFzHDDC81I1+aJPKKUaBF/vIAZQ88UNoekEc91eu/zBoRQI2KX/MiwNf8bkEMoo=; 24:BmjD82umFupmnsYMlZDNM72L+0X5RR8GF8bVlP0gybrIWpq0dJT67WSCNGkPa2WfpT89hFLmF2v9AQ8ByGC8aQ== SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1; AM4PR0401MB2419; 7:0NKrcu/YsvDIcpSycjEgZxNZZcvym6b+8wz3bEH7XuXnFoIYtfPSZP2lAdbUveiAq45qH9Y0Dpx2NKmkZv/+x9Oyo+c+Fbt6fclF9WVD0y6+Ne5S6pG/yGtC7MiPeT9Xn89/+N/oKEvjt7Nur227+OtLUD+p74I71Wx0Rs2Gjh7ublWdLL/L/iCjGFNVt3ltV9xw8/gpIIEaV7XZNxJsyivxdoUqTAZJIHks/9pdO0wl4AYCcsk6jQs4KKWy2Oae X-MS-Office365-Filtering-Correlation-Id: 7a7f647b-0e17-48a8-4ba9-08d5b0505af7 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2018 17:15:49.9560 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7a7f647b-0e17-48a8-4ba9-08d5b0505af7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0401MB2419 Subject: [dpdk-dev] [PATCH v4 0/7] Introduce DPAA2 Command Interface 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:15:52 -0000 This patch set introduces DPAA2 based Command Interface device driver. This driver is provides communication between the GPP and AIOP Firmware. This patchset is based on top of: https://dpdk.org/dev/patchwork/patch/39246/ Patches 1-3: Makes necessary changes and fixes in the DPAA2 bus and mempool region Patches 4-6: Add the DPAA2 CMDIF driver Patches 7: Update the respective documentation Changes in v2: - Move CMDIF compilation to common_linuxapp - Support physical addressing mode Changes in v3: - Rebased over DPAA2 QDMA patches - Updated logging adding Data Path logs too - Fix up error handling in patch 3 - Merged the two separate doc patches (patch 7) Changes in v4: - Added meson build support Nipun Gupta (7): mempool/dpaa2: add functions exposed to DPDK applications bus/fslmc: expose API to free dpci device bus/fslmc: keep Tx queues information for DPCI devices too raw/dpaa2_cmdif: introduce DPAA2 command interface driver raw/dpaa2_cmdif: add attribute get functionality raw/dpaa2_cmdif: support enqueue dequeue operations doc: add DPAA2 CMDIF rawdev guide MAINTAINERS | 5 + config/common_base | 5 + config/common_linuxapp | 1 + doc/api/doxy-api-index.md | 2 + doc/api/doxy-api.conf | 2 + doc/guides/rawdevs/dpaa2_cmdif.rst | 144 ++++++++++ doc/guides/rawdevs/index.rst | 1 + doc/guides/rel_notes/release_18_05.rst | 11 + drivers/bus/fslmc/portal/dpaa2_hw_dpci.c | 86 ++++-- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 3 +- drivers/bus/fslmc/rte_bus_fslmc_version.map | 1 + drivers/event/dpaa2/dpaa2_eventdev.c | 10 +- drivers/mempool/dpaa2/Makefile | 2 + drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 30 +++ drivers/mempool/dpaa2/rte_dpaa2_mempool.h | 53 ++++ .../mempool/dpaa2/rte_mempool_dpaa2_version.map | 8 + drivers/raw/Makefile | 1 + drivers/raw/dpaa2_cmdif/Makefile | 35 +++ drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c | 300 +++++++++++++++++++++ drivers/raw/dpaa2_cmdif/dpaa2_cmdif_logs.h | 46 ++++ drivers/raw/dpaa2_cmdif/meson.build | 9 + drivers/raw/dpaa2_cmdif/rte_pmd_dpaa2_cmdif.h | 35 +++ .../dpaa2_cmdif/rte_pmd_dpaa2_cmdif_version.map | 4 + drivers/raw/meson.build | 2 +- mk/rte.app.mk | 1 + 25 files changed, 767 insertions(+), 30 deletions(-) create mode 100644 doc/guides/rawdevs/dpaa2_cmdif.rst create mode 100644 drivers/mempool/dpaa2/rte_dpaa2_mempool.h create mode 100644 drivers/raw/dpaa2_cmdif/Makefile create mode 100644 drivers/raw/dpaa2_cmdif/dpaa2_cmdif.c create mode 100644 drivers/raw/dpaa2_cmdif/dpaa2_cmdif_logs.h create mode 100644 drivers/raw/dpaa2_cmdif/meson.build create mode 100644 drivers/raw/dpaa2_cmdif/rte_pmd_dpaa2_cmdif.h create mode 100644 drivers/raw/dpaa2_cmdif/rte_pmd_dpaa2_cmdif_version.map -- 1.9.1