From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0078.outbound.protection.outlook.com [104.47.33.78]) by dpdk.org (Postfix) with ESMTP id 884E47CFF for ; Fri, 25 Aug 2017 12:10:23 +0200 (CEST) Received: from DM5PR03CA0054.namprd03.prod.outlook.com (10.174.189.171) by CY1PR03MB2268.namprd03.prod.outlook.com (10.166.207.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18; Fri, 25 Aug 2017 10:10:21 +0000 Received: from BY2FFO11FD022.protection.gbl (2a01:111:f400:7c0c::110) by DM5PR03CA0054.outlook.office365.com (2603:10b6:4:3b::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9 via Frontend Transport; Fri, 25 Aug 2017 10:10:21 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD022.mail.protection.outlook.com (10.1.15.211) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Fri, 25 Aug 2017 10:10:21 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v7PAAHBw025398; Fri, 25 Aug 2017 03:10:18 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain Date: Fri, 25 Aug 2017 15:49:48 +0530 Message-ID: <20170825101954.28124-1-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170818125127.22346-1-shreyansh.jain@nxp.com> References: <20170818125127.22346-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131481294214354373; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(54534003)(189002)(48376002)(4326008)(97736004)(5660300001)(305945005)(189998001)(50466002)(77096006)(626005)(8656003)(53376002)(6306002)(47776003)(85426001)(36756003)(50226002)(53936002)(110136004)(54906002)(50986999)(6666003)(2351001)(356003)(5003940100001)(2950100002)(6916009)(2906002)(86362001)(8676002)(966005)(33646002)(1076002)(8936002)(104016004)(81156014)(498600001)(76176999)(81166006)(105606002)(106466001)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2268; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD022; 1:Su7hsrWqSBHmLoqTYGZc2adMbO/hqhxLMTI4JuyZVkH6oesLRNYpVQxQ5hvnp4w4jRacXvi1ey6E/zCp51xzyZm1vX6/QXo2nscyYx4NfpDdPrYKGNY7As2aO7j13Bw5 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd531c06-3fbb-4070-55c5-08d4eba17eb8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR03MB2268; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2268; 3:2p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xIM2eG3JtTmkZfkTIJhvYpyNQMu6sSUcL4zbFFbN+O+dwzawgq4j6yEBhzwtnYHT7tN8lZtBYqx3GHTI+w1Fc4J4xO+kPRkdaXRT1ACPj0ZL3wrXxf7n8b80LAi8B5q3F1gWBkDK2oWcPZUn2deE3U9URW0jXfdVDpjFKylqVyFBMnd0Ll7rDmAKm4QR4ikhxrjvuGd6HtEMRM/JmUMQMiVyVEatOTa9TYHJhIBAz2SwfpI= X-Exchange-Antispam-Report-Test: UriScan:(275809806118684); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123563025)(20161123561025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100)(20161123565025)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR03MB2268; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR03MB2268; X-Forefront-PRVS: 041032FF37 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2268; 23:WriyfkmoCcXAgahr0rebVA1z5iBgeFqZ351owheWO?= =?us-ascii?Q?a6VZ+c2aWi9jtBDsBDBzVxvzgepUD9cVHlsk6yS3pcSKglkw4DR0aWY+DgOs?= =?us-ascii?Q?1X5KRVuYuxMJcrUCeG9M55W+caQ5N4e6bIlhPMzupvkKAj2POmXtHUr45tDS?= =?us-ascii?Q?H/G++ruaDrYt9aYvWLz7cIV04nkNo4w5Nstn66Bhm/TFAYDHOrb570CPZIfO?= =?us-ascii?Q?is9tODozPws096uDDGWoQxgc6QXAxiXvDKlJ1DS9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SXQkTfZ0zQ+bYTL3xdyaYMU4LDrbNZ+cdfxFYaWDH?= =?us-ascii?Q?KAK8hr+eJ8bOvdKpAg9wsqNihazPCt61Fnz856ih2ZvXwxmDVQCa0xQkQ=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2268; 6:Qld7SUz51m4rzRC17GP08oLMhx1c4HKUCQ6/NIwygvxVsgDHEJgN+V3mIDVOawdRMfzPJem3/zTstUFG66SJDIW0XlnlCuFxcBhwCFRBiLPvKbGbZ7J3aA2Uw//1/2uUt95SFjvamyLKff1fJKawPstaMlF4Vd/z/vv1KfBbN6IijYEyZzbVPpwgTyECKbaz+x8PJPc7T4/1RbB+1PFKephBgzQK2CHAC7YSyEPNA+Z5hx3m4rwc5KZveONhsXDRAX2jdwJdiKSLQng0qOWSy4rbb3vN0EuZVW7olkCtLPRGvCgW5SukeuElNywLTTGEWl4hTKcNyMNTbgI3hpgA+w==; 5:rcyYNEwKX/sdC0sJsXgQsXj28Z2aQn5fu6UO/NcRMAGLyalILBphYs7IxeVd7KJ6fidQr6hR0k103wna5nMgm3r0DXnSsySNXagwRQhMiwZMo3imxn484bTiBP4ejpN2nHClry7j01KIDknsdCFH2A==; 24:xWU9vFklBcPR58ZGxs9k7Od58yJMa4J6EocjfVfPhq3jCacRW1jUglc3i8UalBHFe0uQpEBRSPVh3zYjcN+gb3P1xWXDu+NtBUO2vAxBlHk=; 7:F8c7GWINv98fSy4BRuxoZpGN3r4oMy1ipoy9sAgOFPFPsQSlqfL4HYXnnlOtPHUaePmVWKYRb+z1m89USxWCLrFZmELGfC+Oujh8xVDJzYrk2RlpVFrfZ5vRipnV0k1d/V6Hr1oU2EVp2eXxyh2NjEZBZV9Wp9El3KHB6oDceiukEfcr8mXKL1fOEZYv0KWyNdpeI65Ix2At+wolTF5CLaZsq6lBSWZ11jHzDHIEuBQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 10:10:21.2326 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2268 Subject: [dpdk-dev] [PATCH v2 0/6] NXP DPAA2: Refactor bus scan/probe code 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, 25 Aug 2017 10:10:24 -0000 Change Log: ~~~~~~~~~~~ v2: - Minor updates for logging (removed some logs and changed others to make it cleaner when application starts) Brief: ~~~~~~ -- v1 is at [3] -- In [1], during the IOVA Mapping patch set [2] discussion, it was observed that DPAA2 scan was actually doing work meant for probing. This patchset demarcates the roles of FSLMC bus scan and probe functions much more clearly than before: 1. scan now only add devices into a list unlike previously, scan doesn't initialize the devices using the VFIO operations. Now, scan would only add the devices onto a local device list after marking their type and filling in device name. 2. probe would now perform VFIO operations in dpaa2, for the device added in list, an initialization needs to be done so as to enable the devices - before actually API calls can be served. Probe function now initializes the devices as well as links then to the Eth/Crypto drivers. 3. Refactoring some VFIO code This patch improves the overall code contained within DPAA2 bus for DPAA2 VFIO layer. [1] http://dpdk.org/ml/archives/dev/2017-July/071270.html [2] http://dpdk.org/ml/archives/dev/2017-July/070833.html [3] http://dpdk.org/ml/archives/dev/2017-August/073011.html Shreyansh Jain (6): bus/fslmc: support only single group and container bus/fslmc: introduce new device type enumerator crypto/dpaa2_sec: update driver type field net/dpaa2: update driver type field drivers: refactor DPAA2 object definition bus/fslmc: refactor scan and probe functions drivers/bus/fslmc/fslmc_bus.c | 180 +++++++++- drivers/bus/fslmc/fslmc_vfio.c | 520 +++++++++++++--------------- drivers/bus/fslmc/fslmc_vfio.h | 44 +-- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c | 6 +- drivers/bus/fslmc/portal/dpaa2_hw_dpci.c | 8 +- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 8 +- drivers/bus/fslmc/rte_bus_fslmc_version.map | 7 + drivers/bus/fslmc/rte_fslmc.h | 63 +++- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +- drivers/event/dpaa2/dpaa2_hw_dpcon.c | 8 +- drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- 11 files changed, 485 insertions(+), 363 deletions(-) -- 2.9.3