From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0054.outbound.protection.outlook.com [104.47.2.54]) by dpdk.org (Postfix) with ESMTP id AEF1C2C15 for ; Tue, 24 Apr 2018 13:50:31 +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=qcUCBT7zfISLKdOqxE2F4OnNdnAiTWTenYWUeWkxHhh3KoJtAJrxuludz2kqCCJzPrPHKokAuncfhUAz5yTC/bTMRLZt0EauG19L4h87lsn9z+W9+e3B/kM4D2t5lBEkzj1H+FUdQBi1p9RL+EwdBzFj1XlOqn8erIUG0AWjAwI= 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 DB6PR0401MB2424.eurprd04.prod.outlook.com (2603:10a6:4:4a::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.15; Tue, 24 Apr 2018 11:50:28 +0000 From: Nipun Gupta To: shreyansh.jain@nxp.com, thomas@monjalon.net, hemant.agrawal@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Tue, 24 Apr 2018 17:19:44 +0530 Message-Id: <1524570589-20148-4-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524570589-20148-1-git-send-email-nipun.gupta@nxp.com> References: <1523114224-9852-1-git-send-email-nipun.gupta@nxp.com> <1524570589-20148-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: PN1PR01CA0085.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::25) To DB6PR0401MB2424.eurprd04.prod.outlook.com (2603:10a6:4:4a::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB6PR0401MB2424; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2424; 3:pbu2RMFnY8CGF6BfJh0oGXb3q3v3gbDdKfrnPJu+qa7VzF/ZNFHehwnMXKNorpv/Fh8ZCH9AwnKNDvWl69vQ1mOaXCanjqS43vKpbmVO0umcFc0Kbbrr2NLhlhvQ5LhBM45EapLPTdkTzXF5zLC6NqPAKoyB2oPI5g+02Tolr608Mlmvsm580mcbrCjsIEtIifRJpKjKOupXN0gzbsd0kazfJQ8wyM18yZ33KueYURdAUVPS9qI9hnK/0yWx/q1X; 25:Dl9+1FUueNNcBRJhXCSuaEL3PllcS44c34fNzKOQ7carazFczYc3TsY4W1oFunwFcdwc2MEPszj3OrZm8jOnKMhTb9eI6WDniuI9c71P2ObBicRApvmfkwdoCagKS1f5Vh5mPGwhHOa0Jm47cQLmyHvWTutVWCSz09gPbHjBFIB7o7lLRFxkI48AuRiZs1rV+ruhe8KZnIywTOMSV1tJfr6YjIIlGlhKujTXWUoxWIGKy/4vo6TBjhYW+PvogfmcEz36h0PE0T7xr6XYEO6Jca1ORoqZm+o7UY1HtHxUaLalS7mcvHVFU02jXZ60mn8ehA7oC/msmYv/IwYMWgj9QA==; 31:SfjVPs0C8B6YgVI1kLOKuogsxD77nzWvxh71rQZu+SPiHC8+Ki9MVorYm0KTMO1qlgq5mexOa9PaVkzE+1/crxlOu8Rq2LDZHGxUziQ4RnxL5VIvS21pg7Ykwi79PQHaSQYmSXHqtlVypRnBJpVrfB+qDc83yYGgloYJkD/EvBXgnDScfJtN6DU6QlSygO4ZGvGDJwe95gss4W4qOElFmoPen1iXqdplStnSYXyqp64= X-MS-TrafficTypeDiagnostic: DB6PR0401MB2424: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2424; 20:ptR4LrI2d0EfYgJBvFLUkrfMvRLgqCYIqvcIVPim54u6AHtfW3qQa82hIQ21vA6XfT41Ve8MrpPNzsOmYYwy8kOePo3v5xd5dknFcDRdyVqjk9DAvNMMTl15+3nsZIDktdwamQs/l1hX6Rk4nhahUU2qDEJphf8bNNjmskzVONF/e0kH0ttDw40fJySkMUiA9mWtvGu85duPKZgR2MqPSf7iENG0SRabYSbYSXwy2/XzMSoDXTRQshSrWl7pvZP12+NtBIGikearmZ08OU/j0H6cCDs08rAhLM8jYh34l4iEuYFBHlJjYXhqrQuut+8bXLODixm/sMJa5FXL5ES6mqBSIXqdpKfWU+zs3AN73jzvz8rd5wohPwnXjINqb3b7dHDga8wUCWxWEBpaw1PFM5hpDbrtdWD0YK5syW+J8L7gXS9An8Mn682fo7iWgCq4L9RliVxHSIPLug0F0FTf00MEsk7kVZa9+1t2JTLjO3vUTkOUvEqH9n0baU/xnJVS; 4:P+4PLTwxJtC+liohiiKncLPCKW3eYnh+DXDKe+W3gh85e5DKVgKepmZSc49XHUj8ij/1lzYhTKwiphevCwQErBlcYLmzahg71LmX7Ylfk4F0ZqhILfXCdGupoThusySF9Yp5SQq1dRwjClCUWNHYx/IOVR06mlfcF8aXqmXO5cmorwKFemRIigev94Y+n5oQfFxaFbDEsy7DbNELIF2/+NbS3yn0CnwsvDp/c+HhuEVzdLVmFr53Ml4x2+b7zaMPviDkgAyHbPSNHz6v9Uku+lQzubvFxqfVBmyvJFWvbpn3F/Nys5GsC8YbHRji2RQI 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)(10201501046)(93006095)(93001095)(3002001)(3231232)(944501410)(52105095)(6055026)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:DB6PR0401MB2424; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0401MB2424; X-Forefront-PRVS: 0652EA5565 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(39860400002)(396003)(39380400002)(366004)(199004)(189003)(3846002)(97736004)(316002)(486006)(305945005)(6486002)(6636002)(476003)(2616005)(956004)(4326008)(25786009)(5009440100003)(446003)(575784001)(86362001)(6512007)(6666003)(11346002)(5660300001)(478600001)(44832011)(53936002)(52116002)(16526019)(76176011)(68736007)(7736002)(47776003)(51416003)(6506007)(106356001)(66066001)(26005)(36756003)(386003)(50466002)(81166006)(8676002)(6116002)(105586002)(16586007)(48376002)(50226002)(81156014)(8936002)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0401MB2424; 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; DB6PR0401MB2424; 23:4ZQcJNYJDVltJIyDYBK0X+iYxrbUH997IrrgX4G?= =?us-ascii?Q?OoRl5kCZHZopjesCrRiymhyKXHT8hIGOjGpg5pmmykpam4XquBKa03UHo5WC?= =?us-ascii?Q?FmWXr/aUn0ElQR/4GXVotdVS27ZQ528k7oOl70OGsc0Ei8+t6GFukjbFcFJ6?= =?us-ascii?Q?+TnpRDBoH6JgaI8GMYqiUpVZrXQYsMHrmVXGCP1vUVnquvuFyxQSqEN+JdRa?= =?us-ascii?Q?DQXLYwvVD7iXp+pBxl0xkgR2pUALhpLYXuOoKP8UEc/uIgOnuNJV0LMXsFpI?= =?us-ascii?Q?FnBbqYO7hXJ55T7NzyOj8Qw7mz7BT2ZeGRimepSWGiVDSaO+eGAlETQSmKBY?= =?us-ascii?Q?RmAEnR8nS1PzFrNe5rWz39d9ZzWd6N4Y9RDyvykKsxpRs+YCoTq6YN3vIHD8?= =?us-ascii?Q?7kWnatp/uDd1jisIXrJ6s9b7ckZ2UZlv761yd4tFPQzKMXO/wpRpjqEonHkY?= =?us-ascii?Q?0YGoa5cDVZ+jaxeH55dSeMVfkbeh8hqjEZhbn0lZrX0EUY5JJBKqO8n0JweE?= =?us-ascii?Q?5Fzgi5ZFrC9ZQDuhGe6lWZmMru+AiX61cJZSAePX6jpUvYpo/9dYnBbx06Xa?= =?us-ascii?Q?sFEgukH/OhFxsCD2yVvaDpMalSvUUHqMRZHBkUFqACsS2wh+yTrAK9eXT/H9?= =?us-ascii?Q?uUHkRy74fXHVCk3t3avpTz4PHSvDvxwlZuRjFGTqArEWOJ+WtEpsSYhXL/yj?= =?us-ascii?Q?de46IXQfanfcRP4zZk87/VMztcpx/a734+odlOKHhzBxZ4os720psVHvl8eN?= =?us-ascii?Q?YXvwmmiK1/dPDT3XUVAgjMVf8T045mEhAce8/MSieCllIZNrBEM7F3fHOsoN?= =?us-ascii?Q?06PPsgcnGeHrcmMwYvBF7rnBq68Ay5yYB3XKIcNJyBasZfd6/3jJqViZ0Om0?= =?us-ascii?Q?DrewKTIMX16Uo8wwxosuA1fOcWvFw611svsxpREX52ror1uwxMArLzzyNozb?= =?us-ascii?Q?zd1ghiaRqQN4TbKu8UzkPhKICFD454wAdeoafxhBApAibRL1y5nNozyQCEr3?= =?us-ascii?Q?PG1UKuJep9zm0u9/tzV00cmw9lIzWwh3pLCKICzHAmQhhGElYomUyW1Kl8Rz?= =?us-ascii?Q?rXSu4N8bm3p3t5hTN5H5yl7jr77LsOqJgiPvdcKwRVLsz6Mu+lE0AMXxZmCk?= =?us-ascii?Q?y4N+ImJmxqe72Wv7C6kdH6htPYvdOv9esL2Io4+ovhlj1JrHMDauPQidrgoB?= =?us-ascii?Q?FZ06qjo8wcHhyOnMGfDv4BhiB7gPfRLgufBUH730UtXZ4IlNooJpIc2xPlrS?= =?us-ascii?Q?uKafACy+cPk45jjY3li6fsuwel3V8MKhGi6vDjya1?= X-Microsoft-Antispam-Message-Info: q1XiwYYLL/b+vT7UXIrx+2c+HP+9Jyn9euhk4yfaySdAHw61TFw6FGqhB82CCo4vCfCVfxCZCTV1NmzdYXKZXi47Ggofyz9VOblZ9TfPl+qALCw1g7CqDk5Hkaj+6ekPyIV6QWCRI53mPLWaJSDBaOEqibPFvZlhWnWipfxA1ag/BtN9yGdg2kq6v+firAkn X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2424; 6:qn+QpKldd0q2vy8QP+r1aNVYsO2dRJdQbEPaXn37+b4YMv452HQpqNW66hxEiTiAyW1r6n0MD8Q2wshdQX9jhWy2bKrFXFTPBip8D5AyOYeVZHys5XrJO9UA1zxkFIa+XyrFBonFETxTFLSUrVPq46ozqzVAnNdY6hPAr/yAJUWGBDAoqJaL2tzFUamRFhVZwX0f/78/yjAfgyCrjKdfY51ubVxBoymWmjCtLbTAZr6qkp2gZHzV45J90AQb3OYuSbsVkGfeJfJB6JVUPVlUDV0Jivcgbd58xpt3onK0vafMXta6+tX970nfXVoWRonb+SNI3fWVuQxpfaTS8t9MpNmmbhvgMO0WDDvODTRt7wa0Vy7qWhe9ReYDbtwHiG+QXZyA2k39z1+qxeK/A+1j3q+5F3IWiz4chSpH6VokUk0YrNw6MdvzJ+MHOmAJkO7uGwuE08L1pOEJ63Yo13Y8UA==; 5:4RePO1ym6Jha3XRuCQXeXlrfj2Ew97i5DtZvwCaMHMAJiQJwG1aOj7rxKXNkEeh/q27ErnlyRRAWxNKZNBKdY/wfh5nbZjvUDYrU6SK1DRYlLQXKyMgyin/a6JZR5uB+jEbDabLRyWtDvzq4y9a5JbTOVNhb24AOohHDtjfpsWg=; 24:HX++PeJVaqJZoca36rAvk9LYDxm95Mb48n+ogK8BMfN/e6LXkycKlWNBOOQO/3Ovboh4p/tPLtsxkmAgJPuvGRHLP3qKMLGr51goU4W//iw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2424; 7:TBGTS/+8sOfcioG34iRIkLmAtI9OiNKJ9fthBLqaOKTleQRFtKWbJAIE0I9kQ5jLNPM1ndlPNNY3/f07L6/9JrxVocrVa+uwhqNiAVt2VP9UNcNvttf5/EUgvzH0J271dCh6Qt4hVwcArPg2+m8t0dMhT3ikF2oz2UHSTuByWq83eJkprEpWkOgGVdxpJozB8kXUq7J1iLiQFE8hyvDI92kiwKuPO8JnjibIT/Y3WI+Pdh5mVxGj91IwOZ+uAfxV X-MS-Office365-Filtering-Correlation-Id: b654d360-21a5-484a-0e0f-08d5a9d9941e X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2018 11:50:28.8131 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b654d360-21a5-484a-0e0f-08d5a9d9941e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2424 Subject: [dpdk-dev] [PATCH 3/8 v4] 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: Tue, 24 Apr 2018 11:50:32 -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