From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0051.outbound.protection.outlook.com [104.47.2.51]) by dpdk.org (Postfix) with ESMTP id CE8961CA6A for ; Sat, 7 Apr 2018 17:17:36 +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=MaQtcASJOFJViC/BSLXeTFetQ7DOfyKHgwfG+xP8tZo=; b=Yw+naD9cu4G4u66gq8lgxLZsPAqoZ9/LCpDb6e67Dot0DCef7t6XIevpZ2awCaqcjwiLaH8jsSJEaBKX3Je1WkLRmHHNtxd59k3fktQ+shM1Oay8YwMXQ4QiGeNozwki0N0AuGvvnWujxWAMVXdUVn07VLDq62oaHi6+thBtiV8= 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 HE1PR0401MB2425.eurprd04.prod.outlook.com (2603:10a6:3:25::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Sat, 7 Apr 2018 15:17:33 +0000 From: Nipun Gupta To: thomas@monjalon.net, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Sat, 7 Apr 2018 20:46:58 +0530 Message-Id: <1523114224-9852-3-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: BM1PR0101CA0058.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::20) To HE1PR0401MB2425.eurprd04.prod.outlook.com (2603:10a6:3:25::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8aaa1043-3d2b-4094-e757-08d59c9ab0b0 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0401MB2425; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2425; 3:CaBY5T0M5WtvdIvz/EjgSrRBQdWjFHUAtYyNSg3SbhRnUOIikwmZAg1rbH29MsF93mgokGVYwEPc2+ihTllMvRzwrEnGRrXX7JyNgXCu0CWD9VS8So05oaPQd4ym9G92UIfF/5dyBMjq4Mp0qnDK9bvBRliH+iZfjxFAxp4ciyyBBduIFKERmqP2dMSa9zEqyWgCOBJKriGI6mTnRZaJ4WMu2YzgUHFOyPU1PlBazPP/tOBjjewwmj5bRwV0Q2fS; 25:OzMuEgHMwGyM7ANiftVZ3h1+EKtoqp3R4P3D/sriFU6pLeFvwdHeA6KhxvY7ygpAP1pFEW0vnWo8oyqIOe2Xr/OLS+ibcbW12Kwt37FbjKnpqa5uuMUT6IucSEslz+t9z192ga15zXAJrN6EwhYj5KWsMdjN8TbTuEOv6LhTPfEN4JEjd1M8Dnzd0gl0NukAP05ioBrvT+e5kqara5iE9d6DU3Wq1zuqHWHe5WWpmw6GKsKfgPzVstMsqxvxC9mrKwnmq5gcKkBO+9Sv00PQS3F02TPLvAara3WhcFyTEKcpwxJGEEn022QXPOrumN7v3Z1vVNgyV1HKFaU/US5+5Q==; 31:8K0JVZEo40XJK2AlAqbgChzODRc54lBtNZGt9rs3HAIPH0moULU6fy8KviKWmfufRM7k0i6Y73cpsnY5Nq8OTIb16m2Rnbjhy8GzctIsKwOszhUOTdzXtgeBTxkAA7zLnTZ0B5TGIc0+R1f9I3DBxj/agmnf+wHcPYqbbCFC8caCpf6yXP5tTYQ7duKcpAIKEf5nZFN4GorSeNYPooUp0S1XCP4V491wtdrv0BOlql0= X-MS-TrafficTypeDiagnostic: HE1PR0401MB2425: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2425; 20:t4skUomFwQTfDCtezOvtQ4p7+gDVXrsAfLuoiTe7k755B3QvIKhn4hQmsBE126QPCICNM3lsnTyIY/M8mIOqX5cD93JtDMNxUddZSTJ2p7Ze4kSJrSoUfJcbHYy8FuwFItg45P2H4vN808t7uskShoRdv4YnyklxHVNOIDRgeKi6jzUmTuo23KVV81wJebnEYf2dACGRAs0KBXeqz34/wXZEOZzDaWvjVQsJM0dyzVh598l68yHgZL6HXJJvRm7uXmYk27gNO/sjEzKBP78C2O2adBBGr5xbn78crsVXyzT4qqS5B9X3Ti3fqJwADnO04twPJ1DcrZE5VJNJyVRXxs+6gXIVv2lyjiTwWD48L/aW/9C24V3NIO7MVK9N4gTgyLOGkmGi8eZM9f63acYYVl2Rwz8io/vaSMKgarqOT3G0S3rTsvJIWz8nkXsFNFUrtNKjF3GAjCOVHlqSos99OoWFfQdJ2P8uBF43bpMYvIrpyrlc8SOPd/Iazm40CaPa; 4:u8DT0jhgHekB4pzgw6rJDy1vFgoRpZ7mXmU5dkWO53y6MYWiM/MP0ruW9FtJtH8JyBUtSpgluDS0Ax/HeR3vAnanOxNrxhja285NyHNE46i6l9V3siz1sIsERUefYWbmjTzkrf3C5yTGSdSuYzxKL5/Eg03yIp8BRI81+BK5Xq1hE3Zt21y+grk8qBDeEvTuanKC5c3VPYI46INQEVTnuh0sVOBs/pGAEXsl5P85Ltnia6LCnEtVamlNl1rRcD3W7s+L5xjO1m1WKGiC2+m03hmWr2RKjfwHT0xYr0SFyMwwUFx7gAQRmAke9OCOPYrM 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)(3231221)(944501327)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:HE1PR0401MB2425; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2425; X-Forefront-PRVS: 0635D5275E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(376002)(39860400002)(366004)(396003)(346002)(199004)(189003)(575784001)(2616005)(36756003)(6506007)(52116002)(6512007)(4326008)(478600001)(50226002)(66066001)(51416003)(76176011)(386003)(8936002)(50466002)(97736004)(6116002)(5660300001)(6666003)(86362001)(7736002)(305945005)(47776003)(6636002)(3846002)(5009440100003)(48376002)(16526019)(316002)(81166006)(106356001)(53936002)(55236004)(16586007)(68736007)(26005)(8676002)(25786009)(6486002)(186003)(2906002)(81156014)(486006)(446003)(476003)(105586002)(956004)(11346002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0401MB2425; 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; HE1PR0401MB2425; 23:Y4WffTwXmcaIc+pyoDwtDO4ETeW8Gu0c3a4/OAl?= =?us-ascii?Q?SvNRC7HZE5QC+Ku3MDmXoi6s5S9WtMoS2L0SZsgfBTtCI4aXZ3EFWeUTZ7Jf?= =?us-ascii?Q?BS5IAWzfYVX3sg6/HDxy2AG38VxF2aXTMuTPIx3f03beuKtMiC1/pSaQ59dN?= =?us-ascii?Q?ICkMfKigmeTlNF7oPPDYCENqze3vfhMJ3UuRlmRUUQpEVJiKPJnENo+LwtbU?= =?us-ascii?Q?W59ZwWrolb7vFrA68uByZHqLt9h8bhBbZlIRhNb3+fA1x0gQPg6g1tDfMlHa?= =?us-ascii?Q?YhhPmD0rvog8+g9ipeNM0ux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WPyAfLUWLuAWpBR3D6lVJ90RqdVIb19ARQ0zc+Q1c0VsURF0/6U78fS3yZNTE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2425; 7:MGgci/D/fA3qTGYn396aHFgsgkLjYyyvO2wITaIPF/3LOBPC6buWcxPMYGjgLrJJzSp/BAJkRW1tqBCjrkbbT1Zi5ZEqiRS8bETAQ4uheVk4at84KP8pQwPlQ1bUmxoKbGge0XaVuPU37TOKeECKQnHFmTThEtFBWmOfHf19XeUxBEj4C7fl1cq/WuJCcZrmK6eSOrsFzLsGVLxdtSrxO4AE44OLVUKhMqmPIAE4HDaSN4NfAkIeKcUokrAy04PJ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2018 15:17:33.2792 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8aaa1043-3d2b-4094-e757-08d59c9ab0b0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2425 Subject: [dpdk-dev] [PATCH 2/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: Sat, 07 Apr 2018 15:17:37 -0000 Signed-off-by: Nipun Gupta --- 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 d6806df..cd27630 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 62499de..6708ad8 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -554,6 +554,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..a454ef5 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; /**< DPAA2 raw Device */ }; enum rte_dpaa2_dev_type dev_type; /**< Device Type */ uint16_t object_id; /**< DPAA2 Object ID */ -- 1.9.1