From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50049.outbound.protection.outlook.com [40.107.5.49]) by dpdk.org (Postfix) with ESMTP id BCF677EB4 for ; Fri, 20 Apr 2018 06:05:05 +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=FYCFQJGd06msPrRSz5Lsq1Kck9pQaI++yRB2QxBE8O5dDQHQp1v48CIoWwua1j0h/TcTohrp1+iz2nxadsv+Bny+EudM4H+2S/1TrPjCGEawgliW44/Pgfv3AYmHq6PCNtEk+2282y010HikYTreYtzVDEn7TmkhxnCT5Grnclk= 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 DB6PR0401MB2422.eurprd04.prod.outlook.com (2603:10a6:4:4a::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.14; Fri, 20 Apr 2018 04:05:03 +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 09:34:15 +0530 Message-Id: <1524197062-1230-3-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524197062-1230-1-git-send-email-nipun.gupta@nxp.com> References: <1523114224-9852-1-git-send-email-nipun.gupta@nxp.com> <1524197062-1230-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: BM1PR01CA0092.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1::32) To DB6PR0401MB2422.eurprd04.prod.outlook.com (2603:10a6:4:4a::25) 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:DB6PR0401MB2422; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2422; 3:CqYsFK3JwdEnRDBZxlmFl/62VueFvgSdIEYRN9xzEAyeMxNW9u2jMQkM5areM5huxSnPZ/fx8jw0TyihledmFu5vj5GriIkpVCznLEVY12ZqiAXvi8efK01XpWMVPFhqk5zlO+Wd7LtbcS/UuzVi2bYJXeSZN2CzxTtR0nFjEJQjsfXB/a+9zpDYwXcmq+3L2z0Vdttm/21gX9lA537Y8o2gfHCkGsflppzFSQG48XNSY9lQHRECnrn+35XR2PQ0; 25:LLjnY3Kk5vREXy7lNglbUFfEdMuHoY44TX2kumI6pjXY+q9wSGCC2nghWGOeb1WrcGjJE/gc2zqZbD2Z3c3VpPbNftKBMiN29QnAWRkcKyTnl50Pfr9m/9LCGZTztVPzGgjreC5AEwH31yBfTARgvm85ZXdqTfHglQROrZJmDShzRYVEzOPZAPPM5aro539q+F3S4Q2VlFb1r84I1LO26I6ghANkDweA0P2RGg79Bl5rL5M4ZtH7NcJv8u5/jKTGZhnLANgpotQV7ZPUipfvAoV8khF9W2jl9CU2PFjXnKP+rk2XSPTFMLDBVO16/M9Of4Rm+4EoAa5vr57VjK+k1A==; 31:VlmoGhBSKsjKmAxNlIMdVfKGilT7sd5ki0MsqTDFWmJ0akrHcoI8y7leHJiugvq1Iil1AfLRaYUnyWefoioiSAVYzxyyp/aIaT7bMgAui7RoHf5YWn3Ej1R8LTLQ7i2Y8o/VrMt/deLZHORDOe+lhmuioBLCJOBfuCBtLm2PIQax6vJvsfz1tTCL+cEfikzvpTAgB2MzKbxOLMlbTZF16LHLaoB+EjK2n+kZbQcsMYY= X-MS-TrafficTypeDiagnostic: DB6PR0401MB2422: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2422; 20:XRwCJFN//lhYrY0zav/hKocYwOP8iE1TngzDFX6r7nCpRMAbuIuqCKh02M8J+yRmNv3AB1AF8z+IP0RHsJhEd5SLVHvU6Pljbkh765lm+fQd1Oj3OonkWeT1Kc6nGTgPtZdcU3NEyUodgMpBzpO1+vj110ZleSl3VCT4On1tTks7HFsDLDtfXVDn0gAxghQY0Mg8vC8U0s9qeDYkeSHJIOmOLU5oKAkVqBk+pCy8i8H26/834ctnR22UWoLP3Rtm55G39bWfG5Orzfh0VNaq3ZjXkjNd4xEDTWPXWpbhW6gXduUMOUTJvnY3mWTPoN9Ig/afmavhqtglczSXO7t1isMsoL7jEfabYepTLvH0cYmgadqmywWeFaDsDollu0XQKhXy5SGe9APl39ycF1QBPgD+/v17gOTCvD552jaUAzia3YfcVDzGOblStv/boG+R/ok+lBUQC/OnHS9qcy3qd8D5WvNmDVgt3uJiQFyQwdIsQ7rDVpaMMaRWyGt5IyQ1; 4:ouvNKHOuMTbfJOCzAEoIWlMJFw2NDBbNaCW+Dfee7UMxA9snArlF9/bwQJY2FNva66YzIiOMbJlOS201nSuHox0LiHjq6YYx83c1MnsZzU/cgK7PKH+6XK+AY8YXcjIuCqJAMChj43DhOHI2eIGhEh2n5CBvEJkumNNAzgvzGyKO8pWAPh2ZGoenQuOItrawj8aCmGwSBUG+IPX7sa0xCtX0Juaobg/orZ6//CuA+4CAHtiyX7Vre6plW1VSv5JM05kW3gLPObfKjxj3QeaWTx1o842QVosZu2/yfx0FD6kjVml40o8ZDXv1vaODl6i0 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)(3002001)(93006095)(93001095)(10201501046)(3231232)(944501327)(52105095)(6055026)(6041310)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DB6PR0401MB2422; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0401MB2422; X-Forefront-PRVS: 0648FCFFA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39860400002)(39380400002)(396003)(346002)(7736002)(316002)(25786009)(51416003)(50466002)(16586007)(76176011)(66066001)(16526019)(47776003)(48376002)(81166006)(8936002)(8676002)(6512007)(50226002)(36756003)(52116002)(2906002)(4326008)(476003)(305945005)(6486002)(53936002)(2616005)(6636002)(956004)(6666003)(44832011)(386003)(11346002)(3846002)(5660300001)(26005)(6116002)(6506007)(5009440100003)(446003)(575784001)(478600001)(86362001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0401MB2422; 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; DB6PR0401MB2422; 23:DQt6uw4D7u1rpGUbOXtKm/7Ri7erlBgAVwQ0yBn?= =?us-ascii?Q?qGp+8MbgM/GDJ8FN8sDOiidmbrex7XwxQ4fOp3xKFCNqNjAMrWxNxw2SOszU?= =?us-ascii?Q?HqfWUTRTm4RN2isFCk/aY5xCPQHTCvN+qNxAF2ad8K4xo8xrZfBgCBZ88OV0?= =?us-ascii?Q?33vKFwzNIbp6o3U9SSZQedvZ1vmORtwzQNxbQ5sB2Qv4et2rwWrEB9mfv+hL?= =?us-ascii?Q?tijm7VpGAu8zgkB7+waCfvS4O6IhsB5jC8RN2PhvpjkmzRcYc0jquF5XU5PY?= =?us-ascii?Q?64jfnt1zZ51OFDTUyRa4KcjI86rVqpd6vpIl/j9qXsGR29Go2ofwIpnH3UAJ?= =?us-ascii?Q?Le49z6xQMlcBb3R8JhClqdoH5wSqTPK+Rdpq2/4dRDBMUIGg88wxNBlnMn+H?= =?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M+MXTtLZ3d7Uxlmxye4D9WK09tWT4SWA+o/vsYOMvrJZIwt5IoUY2TP78WOurjn+3H311fvW//zUj/TZ2J5kDfn5l3kyj/tVuQlSbF X-MS-Office365-Filtering-Correlation-Id: d92ccf34-f251-44bb-76bc-08d5a673e5c5 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2018 04:05:03.8853 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d92ccf34-f251-44bb-76bc-08d5a673e5c5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2422 Subject: [dpdk-dev] [PATCH 2/9 v2] 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 04:05:06 -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