From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0040.outbound.protection.outlook.com [104.47.0.40]) by dpdk.org (Postfix) with ESMTP id 46762DED for ; Wed, 2 May 2018 19:10:26 +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=NhLaSNZvZqb84vcU/IrMG7c5G/jOL+m2f7b1sm1GWt4=; b=Xi3ApPw+QxWbJXoSPhzwwtI2e0dspXeuudF1j9Atgm0uFBpJFlIhhzWIr4e+YTFZdKPiP3D9u+moz0IeVTkYKWdHwNo0hI3wsYclG5bhVDfMONomaqsxb1vA9/vJlnwEqU9tlTFDxnSPDOhKC/RfXwybYAttLAFigk9D8WtGVPA= 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:23 +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:27 +0530 Message-Id: <1525280972-27736-4-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: <1525168731-30912-1-git-send-email-nipun.gupta@nxp.com> <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: 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:r6FnhgYDvFtLESeYUXLXK9ZABEf31+jnGv9JuwnjeC6avWvQKle/NI8/UivnleReIftMnSXN5U+tMnk+vKCyklds2j2JKwVWkA9Lo52MCx428dfelnpWoT0fGhAL2MclPPqDdYvhnsgiZuvQ+uV1A6X1hshF6JWgDokiK7UenWKFQPFHanDoVoyVgnwwD7Hs4PlNQAvTDM3cEkhsRcd7FcB3XT0qRvagWy8LHbJJtbv/GaxxyTwwwcDFmscee6L1; 25:Bo8ETRQ90TwsiFT0yc1cA19rwK6gLqf9OWl/T4NWDMnEzwF/2rDI2vmYtXmfc5hwY3E0w+tQlWrQwSQizl03MBIMGZqSlEolEQQuXJ9u0mie3QyeLfqCXy484PgHKMSitnIc9VVNzJaBMCf71BVQNStapsE80Z+s3zpKn4TbIZUAoyHrOARt3kGju0WJcqDtLwGZbzpWgIJddLyV5mzWfspKMbg0DG4yBBLnZQgvzl++7wLoFXcyqvnX4K6pYNNQJ3EYrsiB7nbs+4sYtPA8B+FVZl1LvTcluE8RuxZ0sHFJ4NKPKVbBJRawkLpvHrXP1oDK0n80A2Ici6fn7r0y2Q==; 31:sZQTpj2PbdNHngABFfbGhMyMcaCh9qqFD0kno1Y8wk1dIsVY1W++kIB3rIYpumACawE1/CDNDKp9SfjOH9Y8Q0WKfa492cHKgJTYtkjblEtzzmUg/cERMaPcJvMWK4Zs5fQsjS0ulM1jQlxikSW7vb5Cog29WjFm1S2In8WE+Q+mImMMFwBKRvvNjsOX1Esdn/Cp0ETLaWR7t+2xRJzqeh4iXHl4bmb4hbaZhihNZCA= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2431: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2431; 20:hq2Da0kRROQjzW31BrmQW7wsicOOrIbZLJT6emUCFfOH1R+XUVQ75VN8OG7Ok8XbkhBSSyae55qG8XhxjRvuCSnpPAvtWH0vb225+n/DI28gx4dY110FRMaVfsaNfuQEb/u3bzmK7S5BogGWyfque3mM29+5RmpcUMUDsglTENA6OfrbZYTX/fMGKAbtBend3s7G/AAldbP6LFrAtWG4yyZYjR7kYph1m2pF5UXm9wZmt+SqxoJgr/SBqk2qcslxjuxXqFQM3j0HE107Iw02CZJtBA4PqIcHApUQ9sE3wAjh3glAojsTRdJwBiMXe1v6hPuz3cJVLqZA+5lenRe1SUhP3HhoXoXZdjnfnCP2QH3fhakUl8uuI0+6Ykh8M5cWgI/ga6porEzfeF9q9AnquaqQWkOEqvEd4Bh9En9PhJSumA+oA4L3oRIqJYLe3tURAwBrIu+HyLVl/EdBRFavnx0V1LERc7MOZKKjfd7KZox5lxvWa8dL2XXMWD5+M5oS; 4:buO3JiedoxfKSn9tRxROs98wxYPdOHpGKLbtmtTXDVHNp1Mwn0jtBRjPuUz6KwgqrKbGNOJjZPOoKNKUUj+szQhCBnTEq4F2MwAmQTq0B4hB06sfgPi6LupgE97x6zAUVOwWugQpbKqRcjTTkUhtVW06X0yKMcLf6FvqA8NdZGYWIXZzXG1SPLBkWgeyiUwNY8Kdc6/i7a2PQiQ9xtMsk5LbIezLmBA6v+UDewOiBEBZ7Y8MGqWvEpO1ZcEbM7m3Irib/uevhNonQpBdNyCXyj1q//FwojqoUFdO9k+SlB2OJMBUB9iY2lEXVN1GynhR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231254)(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:NSPM; SFS:(10009020)(39860400002)(366004)(39380400002)(376002)(346002)(396003)(189003)(199004)(106356001)(2616005)(305945005)(6636002)(16526019)(50466002)(7736002)(5660300001)(48376002)(6486002)(25786009)(478600001)(53936002)(105586002)(97736004)(4326008)(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)(575784001)(81166006)(50226002)(110426005); DIR:OUT; SFP:1101; SCL:1; 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:Q+ARnwFBI0GmQ1CUHqUoMC0Ff1UqHj2gcJNwz+V?= =?us-ascii?Q?4pVuBzPsbz0D3z2BPNX4+T1BlTeiqGErxdy9fZoMXrFjr4WOrW1TE/ISwQV1?= =?us-ascii?Q?hVidqVbnzpGQh8xvlr33JbFQPfVr/ozpS6pzmNU7GP/7sHZ+4t/evuljjv42?= =?us-ascii?Q?hwTT0sI5pYSOjoRg4dPyfsqMyW1ePcCjaJgAx5E2ACiWQfY0JBttOOA6fDeM?= =?us-ascii?Q?ME/duaRYEGZDZhxo2ScVu3qVRFQzGRSVPwZvHaceDKrw7dQYIdEZbQUTHBUI?= =?us-ascii?Q?WGMPl55l5qKLwsNMAR7A9diIP7nnHVFG95xx5XVDXULRR4+pjGvmg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8ytqtaomyqTQRyzgPOpcWsXQacUJBxsMnjyPQjJpPIjqzfrnhtiR9MYnMxUtBsOCasKojF7SWe7NifdU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2431; 7:+UUJP+t1EsF/CKe2M5wHeMacd0ycw1uQv2B/G0g7vIicXBxKuwlwKaDfs4qXJ3ibng91Yqk0otKI0w0JURSrxHAm/SHdcnjOn+igskTAJgQ0W7puHEEAS9qNPEfcB82JrRTspIEaDgnsP17+hpV6SE9hmEkBd2jvrHlmydxe60ZDEk0md9lJNRNfP4JUqKmkLV4nJYLY2rSDpZ+uDLJ/ibPgZ9rGhpgTPpbr4HX2pW7SdUNRIEIzrSDJacjUxRxd X-MS-Office365-Filtering-Correlation-Id: 64ec5aba-3872-4ee0-7de7-08d5b04f987f X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2018 17:10:23.7377 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 64ec5aba-3872-4ee0-7de7-08d5b04f987f 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 3/8] bus/fslmc: support scanning and probing of QDMA devices 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:26 -0000 'dpdmai' devices detected on fsl-mc bus are represented by DPAA2 QDMA devices in DPDK. Signed-off-by: Nipun Gupta Acked-by: Shreyansh Jain --- drivers/bus/fslmc/fslmc_bus.c | 2 ++ drivers/bus/fslmc/fslmc_vfio.c | 1 + drivers/bus/fslmc/rte_fslmc.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index 943c01b..fde5f19 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -164,6 +164,8 @@ dev->dev_type = DPAA2_CI; else if (!strncmp("dpmcp", t_ptr, 5)) dev->dev_type = DPAA2_MPORTAL; + else if (!strncmp("dpdmai", t_ptr, 6)) + dev->dev_type = DPAA2_QDMA; else dev->dev_type = DPAA2_UNKNOWN; diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 749d92d..3800c26 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -661,6 +661,7 @@ int rte_dpaa2_intr_disable(struct rte_intr_handle *intr_handle, int index) switch (dev->dev_type) { case DPAA2_ETH: case DPAA2_CRYPTO: + case DPAA2_QDMA: ret = fslmc_process_iodevices(dev); if (ret) { DPAA2_BUS_DEBUG("Dev (%s) init failed", diff --git a/drivers/bus/fslmc/rte_fslmc.h b/drivers/bus/fslmc/rte_fslmc.h index 69d0fec..7b34368 100644 --- a/drivers/bus/fslmc/rte_fslmc.h +++ b/drivers/bus/fslmc/rte_fslmc.h @@ -61,6 +61,7 @@ enum rte_dpaa2_dev_type { DPAA2_IO, /**< DPIO type device */ DPAA2_CI, /**< DPCI type device */ DPAA2_MPORTAL, /**< DPMCP type device */ + DPAA2_QDMA, /**< DPDMAI type device */ /* Unknown device placeholder */ DPAA2_UNKNOWN, DPAA2_DEVTYPE_MAX, @@ -91,6 +92,7 @@ struct rte_dpaa2_device { union { struct rte_eth_dev *eth_dev; /**< ethernet device */ struct rte_cryptodev *cryptodev; /**< Crypto Device */ + struct rte_rawdev *rawdev; /**< Raw Device */ }; enum rte_dpaa2_dev_type dev_type; /**< Device Type */ uint16_t object_id; /**< DPAA2 Object ID */ -- 1.9.1