From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0083.outbound.protection.outlook.com [104.47.1.83]) by dpdk.org (Postfix) with ESMTP id DDD5E8E59 for ; Fri, 20 Apr 2018 12:34:30 +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=uML/nEehs5CIqZeSOZPBLfVJNEKww6l/3gbgSBcuJtU=; b=bHdpAKJ7HSRIofHR0JP/C0sdMXXjLSDcHzafTsLignudx5vof0pDDDYSXV5ht43EOpJi48CYCoNxuz9Z+aZQfzp12OBcrR1gYY3ZSHHs12qNtHZhO+/zu90QtZ3TY57Axt5xMMR17RvlMVLTJq8zLi93wLbrT9DZO7gu8Nrnnbc= 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 HE1PR0401MB2427.eurprd04.prod.outlook.com (2603:10a6:3:25::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Fri, 20 Apr 2018 10:34:28 +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 16:00:57 +0530 Message-Id: <1524220264-17281-3-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524220264-17281-1-git-send-email-nipun.gupta@nxp.com> References: <1523114224-9852-1-git-send-email-nipun.gupta@nxp.com> <1524220264-17281-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: BM1PR01CA0102.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::18) To HE1PR0401MB2427.eurprd04.prod.outlook.com (2603:10a6:3:25::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(2017052603328)(7153060)(7193020); SRVR:HE1PR0401MB2427; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 3:mYhoaiZy1BBCkhdc3EVQ1/R5xrtbk46EHX0mjt4z0PLr1r/770VCl3FNEsoA7Jr0zsNwsWlJRyZZfwO377jcItYwAfLOM4OpxDt8FCJI+FE4vA/3aI1v0pvpSpO3kpROTFpPqkM5J3ovh0QEM813yT58hxK/qwxGx0GqhyVIKGSpQ2/DIxnHjy8Z9szuXafbr2rFsfsGouFSkK0n4JCOJVA0T+7+rVLnqH5I0nD6m3ejkzB1HUAB/g50EsBD7Ibh; 25:cNiDZ+Edhqo+YHxmBPIeygs53sxeJzwLoe+paZJBBfQqurhleU72UXoApmK9JTWYry3iDBTJB1b7ouve0LX96HD9uAwLSNMsehuEtf9TB7KivRRqay8Fg8VsH9ZGq52f1/MFxooFmMAnOaqNjZQWEhRNZpf88I6/r5UMWZ+xNO7waKXGdTlVAitnX0q0H3E8BiCeN29bNnaUAAbKtyb9r4yKZ7zFFYcjNGZ8ugnhP4Q1FqkmHRn1itqP6pB09xXsUJBpUew+CfU7/Hi3kTSguL6D2zUoAoizKXuIIqgNKcoqzOtdGBgOVeNjSbCQGKwvmQHhxAbIGPPsv5feB3rdsw==; 31:2XEwHp06IT9mxNI0RCft5QNprvuFiDYkA4LLJjsKHveTzuGIVDIXWT80c0XxAB0fpQw8L+ueJWALs0mn4hGWMYLoeKVRSgCiXirtKFRtK/GqCJTGowj2RE9o/2GN12tF5qN3Bp6t7Y3o2NN1pb4zqnizv3LHWSmg/tVK34OYejuQpRqslHpBzMSSHain3y6CWnDnWONyD5r5Cm7ZySOD9HF9xhQl9k4CzcghH335/+w= X-MS-TrafficTypeDiagnostic: HE1PR0401MB2427: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 20:XaDkqdbIM2nURaBUabpzAMXZVYYEi3HP+dQiXsb1Ok7/kPxPO1RFTrjvYniPpqMm7N4TxZTteL2MJidaPpWIRKJA3rasDpWXyGhQPmDkK+cYD6R8RafJB0fh4uSUJZOoY8YbHBsGzGP9QBMr8bOm3NvxMBlSxr1L0/9A4vVxhqTdy6cdRXLDQ55l6wwq+S/D4JVeDqIRPgTUbYJ4zNEGc+2+HJQcvqRl9ceBy9zDMExI4EiHoiomCAtvnQ4TGg50Y+ZYIhnFD0LM+wpB3pq8wyHInr5oGjF+75RSr1mhcKvkbzStY0CFrnf6+2H7Wwwos5rxiBnnXh+fJ/bWL0O8keZpK5hO8gJkCKsS/iIudVdmC6mAUuyUHY+5gAxF1KxrLPW3JTqN7RRhGCKDzXZa0z7VWFRgdAHNVa+BNfSRyPZSFNAuIayRg9tB3uXpqf+Mg2+WYE4Upjocmjt7nV+TyEFnKJI8bezJyoOpfcxLinK3w2I+x5OFIC41K/Z3npUX; 4:sTOwhA2afEvZKBUFgbg3IuTd6pXdKzSVqmBPZVi0zT3u5JLgFKfa0FJF2ME5lVoj9Dve7cGlWw4qorPImUmsHOvvNi/XXveDiAUtz2rVRC0YNkU+JtMfbvrwiTnxXG4PZoixI5OrOx18W3eH13FCMQyig8zoV2cSf48WQNTVLv5gvInJjb3ec/PKis4gDsCjn0/M/5QW3zNoYwWkzTujwrXrcBeuO48wo6MNkil//z5JNVAJWr7qnj/z0Lu3XV8LF9qbRYE0ivKhEc0yd5Q9ZP5PMXcdBCkOhSoi5ROcDl90bsv7PGD0aQHFeLTqmSmJ 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)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231232)(944501393)(52105095)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:HE1PR0401MB2427; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2427; X-Forefront-PRVS: 0648FCFFA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(396003)(366004)(39860400002)(39380400002)(4326008)(16526019)(6506007)(48376002)(386003)(8936002)(8676002)(81166006)(26005)(36756003)(25786009)(6116002)(3846002)(6486002)(575784001)(86362001)(956004)(11346002)(446003)(476003)(52116002)(2616005)(6666003)(76176011)(6636002)(5009440100003)(51416003)(6512007)(53936002)(2906002)(316002)(16586007)(50226002)(50466002)(305945005)(44832011)(478600001)(7736002)(47776003)(5660300001)(66066001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0401MB2427; H:b27504-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; MLV:nov; PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0401MB2427; 23:/dIcg3Ds0kD81ScTAuViJ30NgmhJjs9v36piBK9?= =?us-ascii?Q?6ZAlk197Et4ObVCLn2NyF03aigbJZ7HWUskHaib4Yd4syUtAMmwbw3cBxbEv?= =?us-ascii?Q?0n8evP5QN9H5tMstuS64cUl03GkaSVPOX3+rINVbx3AH7iK366xBekWySG26?= =?us-ascii?Q?SRMPf/wIA8HXCrbL7sBsyFM060sMMO7+hLiLQvLYSOwQuZ+mKSKa33HrrtDW?= =?us-ascii?Q?ipAnRFfTMAFtJl8Q0CT5kg3sD/mBJTfC5zhWuzWYwppEwzDNDFJfoHftX7Gm?= =?us-ascii?Q?Nca7qy6fukKHRqP6K1jKCOJScc0xvZfEcwQk5FwfVOXkh/D8iT0qRcOw9rHy?= =?us-ascii?Q?ma1vbYv6dFtuqsXA/Ld/p7RpVCAQbJH01ZC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x9uY/xd7m4tgTx+bb8cE7Y5NEvw51auSotcddNOV X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 6:Bb1Kk4t3z0FN1DjSpNBjyH8xU7a/xiUwQ+YCkw0du6v+G9Rya1DjQOQNaMc64Xx0wsQ6YPIKIxQQXZsbhXb2CQWavWb6nSYkCaNJgHf0Dfj1ydXyqN0Kle6YxhUNUQyVvoIIdNIf6dCNPTLFe6JSA2C96+pskqIR6o6PdRxvpLmyiC8qosLJE/Pn9ZJbrGmv8CXhXoXdQJfnJaj01JRj61GfiXJJpp7YQJSdVtDCehzaU3zyT+wr78VaDR84J03i4I14olzw5E9EvZp0CAe5ZiiHKxhwQQgcUaz3djd+23DKTq4E8HOgTb7wgkC49os4kUBoP06dCy3TfS2enk7jQ77h9H0DblFikiePsc3EvJkna2hRrgqaKZfpsICGirbJLwb01Kgk39GLvjAV3Wamcwzk0IqvCcoZ9Nixm5FwYnhT7CAp5wzfqCnHbgE98187y0g3Ha86WvjNQkXquRdwSw==; 5:Ua2/VZexmSHr652HYv1+F9y1kImRrlXhO7BD1tYCJKAU9g2JAc9CNXSp1AzKrVUOIV3143lZAhynmrf2TlA1m3NuN+O9NCuUs7DmqIC4F1uJQ7vVL9DRZGAzqsbHLeFN4+s8TkWq768LW7Tt1UpUSSAcCV+YnUtPLlpbA3gCWqg=; 24:1A7+zRa/1nuAo2pXAghmF1lIOFBragCxelhTUEQglfr1jpJzQu9A7D3GteqI6e85tnDy9AxGPNNwLVIA8+CZVxMegbLz37VLVoOCDGe0ZPw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 7:Y79nPk6mTssRqkxBUgmnjukl/JhRAHNmiDgUSsi59kN2RVzktcQddm5sftdUtJuAbnSV/HIvkIZy/11PhpqNhC6Vg1BbDDsl1wYcPtxeDVNub77tQf103Zqm6GrKmuy1nF/XRvmq576NdXCxeAFEoKdt4IpU6t1yeraMZVX+Ed2DSX2jN+iSqThYxDs2bhpL9WwAQPWuZb7wvSMGwt3eqVFfXiVLfWOx3YZacGoG4vq15+hgollKM5cnPud7LLqd X-MS-Office365-Filtering-Correlation-Id: d62dec14-13d5-427b-b96f-08d5a6aa4c22 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2018 10:34:28.2600 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d62dec14-13d5-427b-b96f-08d5a6aa4c22 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2427 Subject: [dpdk-dev] [PATCH 2/9 v3] 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: Fri, 20 Apr 2018 10:34:31 -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 d0b3261..a3898b5 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 675d160..44d4cba 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