From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0088.outbound.protection.outlook.com [104.47.0.88]) by dpdk.org (Postfix) with ESMTP id 105352BE5 for ; Thu, 3 May 2018 17:52: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=NhLaSNZvZqb84vcU/IrMG7c5G/jOL+m2f7b1sm1GWt4=; b=Z65IFSqjxPw7g9T9HczcXvfZFXXfdbu+IU/c3W4ymE3bj6Eu+oCkl/QGSXsAg/XfelLIRf8DA64N7eGavpm7c/pTq9DN1QNm/+TTuan1vnMaQhtHSLPbo61jQBSTqR+abJNjQ+Z0zco0kCGcKO4ToHNy92DTbMIWI6EI3Cog61w= 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 VI1PR0401MB2429.eurprd04.prod.outlook.com (2603:10a6:800:2a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.24; Thu, 3 May 2018 15:52:33 +0000 From: Nipun Gupta To: thomas@monjalon.net, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Thu, 3 May 2018 21:21:57 +0530 Message-Id: <1525362722-32726-4-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525362722-32726-1-git-send-email-nipun.gupta@nxp.com> References: <1525280972-27736-1-git-send-email-nipun.gupta@nxp.com> <1525362722-32726-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: MA1PR0101CA0046.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::32) To VI1PR0401MB2429.eurprd04.prod.outlook.com (2603:10a6:800:2a::22) 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:VI1PR0401MB2429; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2429; 3:SJO5WI+5U++N87y2+/ySHcwAi09jkMtXemJ1ePh5NRoOFTs/r2dU8tTPikom6Zp7Wr96ZEo1qnWv4x8MUP4M16P6SBgX+qZNteKjwypQaVA8eomsIAVmFW/38NDP6Hve3oNYswuxDPOwuLdA4GxjfV+DBgcnsenIVE2YXDlVu/R5G8l76Z0FLsbPK0QjNDBdh34aUdELde6VsIHDebCGvUFAUsbVULuk+I8gMIcf/ZS4RMsEpEuGpoJ39hlBjy9Q; 25:xzeMgcyOraI2V1dTp1XZE8TGx+o0LDrmReIo6a70o3EYfJcd4ES5iM10y9JX+1P6qrOCYNC7tgcK/yh4VT406oL6/16Wmy9qpEJ+zrzoB4m38dpX2P+eO8+vlnwTg0+48ejJrwRN9VIW1hHv/WwDg6+AcSjNsycnTDsB130TAI4tm8J9Idnw64tLv+sLayBk9mtJLYMu21fmNZyTDaban8BSCGHCI7S5srjUIGTisOgDbvFOsB/+oPiEJJbWjt+Nq8VeTb5eCN22K9BI946F3N0ESxPBdDWZ3+fdnczHGP3Pix/ogLJ6oWuHF83G06KK+4QrBED5BxOkFXV0dldn4A==; 31:8qm4pi45U3rSS2bp8LwU/pO3mend9v1jeOpf0xT8E7HoqKB7ceq6gQdOmO5YoFIvLJJu1Syb0QN56MdZeB2rwbUaTSttylJel9eiCLa/4sNRQq2K2xKCmclSoyE111Sjg6H9SwHIFleO+lQZp0RgsbwH0oP20nTVLrFubFU9Pib9Z2qLojQtFS/GVOifqvxbefZ/G6woO2IQNsskUxFGxIfRgaHoCqWY+zdz6R8cMVw= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2429: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2429; 20:bUoWbf9XSBd/gMuAlyPqXgutwtSr+rTGUADh6bZt2fuFOTVcIrm1f919a3aoomLgLnxCOJ/tVzOAZORlVftktRBDKo/71Y/9LWU88uxnCdGMk7rKLazz03H7TBJH0pVaIuYWkguPBBOJHN9hxDex9XbvaQC9l5e/Yu+N+LUV9tY01WjNNeG+ouw8O+1ov7gOMksSijqyl9Hqg6OxTTwLRoNM+qQNoXFzVURHoTUu+P9qqMHtT5AcExcHnXRv9DRXnplCeaE5qOdqe8W6fQugIuLX8q8B0s4RhQyEkNa8A+YxbToy61xsmss/wF3dAP36QIeekyVn+VyW0LJhF5GnbFgwZ3hpOYKUpe332dlQbVaFAouUeRyLloohGJ3HBR8SBjJN4kkH/MkCEG9eRhzA3N1Uo/XcZK4k2gUJ8g28frwPfb6VLGWW2HWTGW1FdmU56KMUBhdKMaTJzNylTFT4d/3G79u9O5gUFh3SLbshD/nHUzeX24r7bjfVtimbOqNo; 4:mdWKQ8ptEUI8ekUgg3MqH22PzM6duTqNU4QHb0A9ielFqdo3JDB/SZkagEIw14kAtdjnPqwdYo/pbc2TTQQY255tOXtjW1td0j85ei+2TrsKhVCgEzgZvw/Y8VTrYRWETOE3eUeukeSulIq7bhhrb5eg84LOL33jirN6PNPn+wiLE0+SAAmu0Bgn5ZhMNOYOC68j7e6BcsEIK9ovpmsBHItFMhhotntKwXfFrMPqhgOGqu1Cm9xrM61TDXTKlkpne+hxzwzZZs8BFZKNsrqU2b2V+tS7hVuv7x06K9DqF1xzg2GSfhBG+SjBiyNUA0J3 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)(3231254)(944501410)(52105095)(3002001)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:VI1PR0401MB2429; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2429; X-Forefront-PRVS: 066153096A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(366004)(396003)(39380400002)(346002)(39860400002)(199004)(189003)(6666003)(50466002)(6636002)(4326008)(68736007)(6512007)(5009440100003)(25786009)(97736004)(6486002)(36756003)(106356001)(105586002)(2906002)(81166006)(6506007)(316002)(386003)(52116002)(66066001)(47776003)(86362001)(478600001)(446003)(305945005)(7736002)(48376002)(16586007)(76176011)(51416003)(55236004)(6116002)(486006)(186003)(476003)(16526019)(2616005)(11346002)(956004)(81156014)(3846002)(26005)(5660300001)(44832011)(50226002)(53936002)(8676002)(8936002)(575784001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2429; 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; VI1PR0401MB2429; 23:gz7dYEyPtzOrsfy3adW822G72riQ7IWnj4r1OiQ?= =?us-ascii?Q?oRr3Ee/iP/GqyghpZTSaucxR2sJa2aPsyG+5nzuA0ciu7YgAPZ2NUOodHkgv?= =?us-ascii?Q?wsp8eXfaiPduaXl8eDY948xRVSUEkssk/9n7jysnns/LRumA9VItScWD/Go3?= =?us-ascii?Q?eE33YYVyYiSy7nseZNxmbZU9ZVtFBCGJbZw5mPMG/1zchLa0OXue0xeV8Vt/?= =?us-ascii?Q?xf0eEJXNqriTVBdqOOdR7pT8mm/U2XI7tNZMdI5wkWH4fVv5IvmpBhPKHvR2?= =?us-ascii?Q?Ie/tKwXeci8Dg9b3VEoNhFWtfMb/VUaI0w3LRXZ4jU4YP/RdffeyfAHDk2iV?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6YctoL9OVrdaHhPx3FTT10v1mt52dBQIxc/5EZFLx7S73ykMFy3mrRrQoISkaO4HzdVGV4z9wU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2429; 7:sT9CE962Dk9j4m0Ve0Sina+olP5ps0xkUja8nEhqcKz+2FDNi8xTgkNwIMV8VctDzk+9uuRxtanUtlHaoZvlZgS5/g8Sk7al45BCn0Celel5t4D2WpWUg7hcxruXDwYbmcvzaRq57xYAvvwvWGq8+l2fYp4QV2Hj6iL++D5rFHl2NX7oa8LMQHdqMPEqH4UDLE82cgXkU1t0Lo6YHbtNuvLNGjS3zG/BDCl+ReMqCQ1CN8DS1T4FWdzoOzeEg93O X-MS-Office365-Filtering-Correlation-Id: b47658a2-10e6-4e84-1ee9-08d5b10de339 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2018 15:52:33.4219 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b47658a2-10e6-4e84-1ee9-08d5b10de339 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2429 Subject: [dpdk-dev] [PATCH v7 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: Thu, 03 May 2018 15:52:36 -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