From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0045.outbound.protection.outlook.com [104.47.1.45]) by dpdk.org (Postfix) with ESMTP id 01391325F for ; Tue, 1 May 2018 11:59:23 +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=uWscQuS2uUJ1C3oN0d++saKQYTGOegRBx0Bn9RuFw9JPG2XUpiL+dM5Cra2Sewjftqx8Dw1Q7aBmptZP1E7CObyFREL8Dz/wR7Os3JIe6fRZfHhQuJkBwlcPVYKqEQobIlxLsctUsNJhqHw/g9nG/3gmCN6OoYpwXPwwpPYpi+Y= 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.715.23; Tue, 1 May 2018 09:59:21 +0000 From: Nipun Gupta To: shreyansh.jain@nxp.com, thomas@monjalon.net, hemant.agrawal@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Tue, 1 May 2018 15:28:46 +0530 Message-Id: <1525168731-30912-4-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525168731-30912-1-git-send-email-nipun.gupta@nxp.com> References: <1524570589-20148-1-git-send-email-nipun.gupta@nxp.com> <1525168731-30912-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: PN1PR0101CA0028.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:c::14) 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:s47MwaSUwUp01u0vXBlK4/btvW9Ay+6VxdA1IPtWyMzal97IBpZsgBw04xXlKWl3e276GJnxr4LZCiRBANIlxIKOb7it+cQPjWyscIjGee0ZKNorgH597wPODNSMLIm/0Yi4GlZPe6WscgEWmEROn/FtVS8J7a9LshUf1qVxYwueafmVDy4Vi7AqsOq2ppy0bwk3CPvDmyrK8cIvQgB7HjMhx7xBHq7Ys17DlcO4gobAuBa8TL+l6aqN74d2fYaD; 25:OQnU0SzObJszajWhbR6GOFb+oDwzvS3bJyuyh+4pdUHKXRVMm4l6A7T8SrynmGElmCKWBqYRGRicV9oqBQQCxuaI2Ar4f4tMNw8jxo8zdYpTLMecQYSM3puxOwI+efZoFAUpo9vrq/0j/Ac3w+Xum0xBQtQ+kUEgiDDkDh/IFiyT7uuG149FlBmQVaP4cfOUCdLCUxQfJjfKUslEYE3+CYtGMoYIL8dXc7YjNvfuxrlkMtpBMQqm9f+1Z1B5Pb7QqzVisbxvoAoPWHOaTojC8rrTxbEgHhPi9ymG9K9rl5o9FEyz+hbY9RqhVEyBvm7xdcmYEqoGtMpiYwjJYno3OA==; 31:V8m73SrOIrm6SmV2ZKGS5p9WHsOA/S/9Z0aUj6YaITixDOTBgHSZy6YmKy0K3Jm8P4BPnq3NcR/xAn5XMRzagJFCIp5722WakHTopfOlJ0ftSmuxjq2yv9zufEyOnfUFl7PeBMvDPngI6njDgIAtxcH54v/wQmFZKrAwQi3Qn3jaoG6LLvPga9Lp5M2NDDXynP4tMZvPoqM6OZR/cZdhWTkJ4HJrDh9g1a/jWzX+QDU= X-MS-TrafficTypeDiagnostic: HE1PR0401MB2427: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 20:FXgetnT6FGDd3mFQnXDCthbXJFhB8T4pxuKeqMeUfz1+bYcbkXn3yGex29FNDckK7MuDZLDTeoN+0Ky2zAw/0vE1l6L/y7BhPpCe7YNMOXUT8vgrpoVCyQIGAP63kw0Jal9PqoZ1E0MVBAdCg/UeaEsCujkZ+k5dxqRo8G35FbaQIvpqjOxQ6yovdmZscGeQ85y45RFUiRZbEDYNqrp/detlLppjILz9g6nxIcQ0evTDXdMbWSRY2WnLAVydMpUajUzLfZqZqVoVYYqn0tRtlNblQl62/vPUu2gd5E9I3SSrYoq73tqa5xYWC/7roTGEUcYb//IHUWDNEuhxKw1HFsjFxN25L0f769ZihnbNCehhSuEJ5vbKmsovNH/TiruPhmnlhkNyMM+1HiPvyAFhDOWP/ZnCzgbZlrWr4wu2sU4YkG2SSnrpyUbRx6zcehtRX1qAOUr2F3fCofAuy6P6GR3KLd1mFSaM5nh4DZALa7XNcocPLkdeMSdmLDtEp4/i; 4:B2pv/gTn+oF7M/cb80Fq8mGk2Go7n55Uhaek6s88vfevQaUcy0Fd1vHKUpUwRDlbT16TO5aYr6+eh6nO9T9FUtnAN5r2KVsFtwKVGesGtO/LnqwPVpOK/9X/1TAz5x2gwcUa37yDaaBoYF06ssjvSlJBfQwTUhSaSFhGMN4j9ebAel1jp05aSeDFTlwLwBWmXArATVD+I1KvYcYssMgs5GmLKKdo+7dBUTQ4sWZNHK41UAVfhC635TnTdKbjkMdYe56Zw7m2HYN0Th/zPCqIcG4bfLJtKQ8eXchmTTTrcLWJMajBywVJfkNqdOkFvZuX 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)(3231254)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:HE1PR0401MB2427; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2427; X-Forefront-PRVS: 06592CCE58 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(366004)(396003)(346002)(376002)(199004)(189003)(81156014)(3846002)(8936002)(97736004)(50226002)(48376002)(81166006)(316002)(50466002)(16586007)(2906002)(36756003)(44832011)(478600001)(5660300001)(8676002)(6116002)(486006)(16526019)(6512007)(53936002)(476003)(4326008)(446003)(956004)(11346002)(386003)(5009440100003)(76176011)(52116002)(51416003)(26005)(305945005)(68736007)(6506007)(105586002)(106356001)(47776003)(6636002)(66066001)(7736002)(86362001)(575784001)(6666003)(25786009)(6486002)(2616005)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0401MB2427; 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; HE1PR0401MB2427; 23:1invry5LkqrwN0KWgcfJTmhUVV6SycthtVtrlx5?= =?us-ascii?Q?V70D1D4hBKBV4ptu4Kb6b0RGJdoHxd/d19Gq38ntYUPRfCKHtAzjONaKJ7Y2?= =?us-ascii?Q?OQRqcUh7pIswa8MzFEywKdIhICtLQIXFTXHz/bhlVQ6Y4IIJpUsLvgoysO0N?= =?us-ascii?Q?RtxdLRqAzNkkbTUjqU/67XlNoU7AxWVm4LlsbA/9gV1sBiupX0fsjoq4xcyN?= =?us-ascii?Q?onWFX9cyOszDjV0YbgxMIk3YEQxovZLeIqrZQVuqDWZpxaO0WLqh3OPDSZU7?= =?us-ascii?Q?7qiD1YrRf11F6zJIf7Cd0x7M2Tuxitx38iecIfuc6qFGliS6MWCYMqQbLHQu?= =?us-ascii?Q?471WP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amDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 7:pwDyzeiZvJ0H5ZUU3Ek4GAyuIZMFz0SuaUdQ/P45Ai72UfXh4JdpZarAaOSZpp1v4uaT8mCbU5xpdasakFZ8IzhEbjvTeKrsZxmQ9gbWGfhEyqtfLnWitRL05f2X4eHioJFvDZ5g59miyTAZOX5J8C5lFIsMttGhzhmnd/YzsyNzwsQQU/TZIbSU0zNLaLRyRUepmmp7eKXIq2rtP1jnJMx8+Vlj7I7W01FUdZ4kY0hcUUl6ixyXNVjieA4Z2NKW X-MS-Office365-Filtering-Correlation-Id: 82fadd9b-f70e-44a6-cffb-08d5af4a36ec X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 09:59:21.4848 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 82fadd9b-f70e-44a6-cffb-08d5af4a36ec 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 v5 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: Tue, 01 May 2018 09:59:24 -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