From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20043.outbound.protection.outlook.com [40.107.2.43]) by dpdk.org (Postfix) with ESMTP id DE96C1BBB4; Thu, 21 Jun 2018 11:45:44 +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:X-MS-Exchange-SenderADCheck; bh=6KI8FBcsRl8o9LxpK9jAQv24safcM0wyg+kPy56T44s=; b=JbC63ExpU+BUvTJyaJtKbN/k3Bq7HupRYi6/JZQrI71/f8sQonNAcdXBHR0n0IaF/lcVG6N2lfGGX+QRvSnAr2euqX1zZfuobqqTBHwEWKVLsWznBLDAR9qNycMnkaeR687YJdOmFW8XlV7r41MVzXE6vhJgGBz8F5SZPv/+5H4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Thu, 21 Jun 2018 09:45:42 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, stable@dpdk.org Date: Thu, 21 Jun 2018 15:13:56 +0530 Message-Id: <1529574244-18997-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 28475aad-32e0-4cdc-aaf9-08d5d75bc159 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:6f6VUvy8E6dAytjUdO65/6HbbvJHXQsgZrsVL5Ph0kzliI6ARYiWGQloRJkcO1ZV5xKbnyJLy0ZucdgHejpRbQ/6VFc9l8H+emoUEp68zk98LiYMlZqoStCM6wPWUqzZL/VKs41jgLkeL9+xp0Q/UI8nWS65D5ClVgCcXBwYI4VS2fGVOY8hVJ4zpMgXjIJiCYnhP1bDzYANgsbzUsKF+JSVa4fCjJ9ZPg6I3HSr42jolo0pWC93s2ILr5J+UsId; 25:hcaGhsa7V5TDRdE/PGw7CeVYB12PNZ5hNo/Lw4VXhy5CkUfG2ooL4hhtjzRLztTCeP3kuC+EssJG3l9tW+N0Vst/AUx6KEm7UxKe4kFKFi0vy/IIYILObmDCowSy0Jdev30pSJ2K7EMZj9MUdki2kAqPsXd/csd7gX9ulC8SjlV7Os3KHq8vIB84Gt2LiMhsd+6fwcqnDKGi2hN1RwIQ1R1MIpFQpbHL7TvDSUMy2WFtzJQ2vmVVlsMtx+YubEGu5x3bLQBRA+Ar321ZTw2nLYpf6MW7k+z41Zd+tHa/cDW3udSxnrZB40V3KiqpCUG9OYqt0m3Cg0trztSogO50FQ==; 31:7ZgLTdG3CD6Zt1CQhOo9dbzhFfFEYGQdG62vDIDJNtztAGxBj0VjHC4BqtS/NWlu1X2IH+fps+9KdnEyMRZzNsW6PKza1caVoarPcH80tSye/zbWCuPF4u63Aq1O8A2pIs9cqPqVzllNQmYF5JMxb92kFMuulPE1lq0H0RmhNu54HpEkxaAi3xIq6EDqcF47MErJK59O5t1CJzh1KI5rUE7ZRKS7fWRTZR+/8/+AhCk= X-MS-TrafficTypeDiagnostic: AM2PR04MB0755: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 20:jARF2tM236pl8cru0rjIQh+bRoPTDkuFVUVznrH6D9vM0IWwwG89XWGrEF6Ipg18p60UjgNY8aPC80EY8gjoHYYmRlu6qoTAhZqKn1h2OjBycNbjfMEyPbYq4+kBD779z7bAWUC19Eyxq6M9Ch1P1LUuX1y9tyNWwur/+1Tl+yT5pJ9I66wxdeB6OfwgxdxrQiqDJHjKVtcEgpI0vh78uHFA6cQp5nVgY1VvD4mrI1GJl9/f96IQ/hyD3YFcvuSBMZW5DwSJ5bfQzgrzGJClokd1p55d67WfzZkMeLkn1i+GjN5QpaioB/heUor/ah9BbW7QZ5I3pCYbhtk/Q+VD1ln6ParZ6M/hPSHnWw7M+OdMnwFd5m2px2wXz5CjIZtsLbNzhfEPxBgQlS3PZtZAKVcq0x2fkhA2paCG4kDZmdKkOqq9ZmBEFf2ChhSd2IOgwFQgJ82Kl2Q4qQJko3UJDQM4cxgWk2cnGezw4OeMjbAq1wWHLy2KuGMz9B8yXRKo; 4:2RuZ9lMHMGuOvXG7v8vjUyRmX4DkbFDZaOaGkTYsmp2/pNxWvbRE8SHAlsjKrUDdkadMQiC+TXZzzhUscwvHYcLnJz2y+n1XOA0Mu/XjGNHoYeMkK54iN8mLYJ+4O6S3IB27yDtOmPOP+OGNjQzoR2CRM3Qd54H+Tgoczdbcr3tS/sNPkTx/OCg7XRwLCpQtGxx5N9xEMyc4Ep82dV/YfPZlszEcfiBNNAz7B7JBJbD2KyYLsHe80exlupF0vqoXYeYHFGmQVfThexQwVwJbRlv9HwawFFk3mApwnYD6ylyaiQuiGE0eeBeGuWTIhPcF X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(76176011)(59450400001)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(11346002)(97736004)(2351001)(5009440100003)(386003)(446003)(4326008)(8936002)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(25786009)(5660300001)(316002)(6666003)(66066001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0755; H:bf-netperf1.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; AM2PR04MB0755; 23:ktdepMM5AVrTJCDjJ8/WEYYaqBxKrGAadN/eLphmy?= =?us-ascii?Q?mrkemjpkNwdODrngv6fmuj3TMyu2oXfisZzp9vRxGtlijS+dIIPj9hPEPdUr?= =?us-ascii?Q?YNddESBbuicHQnEDGPM7SsALOzIOyDZch3R2B5IOp/bdzQtD4xowZ5l9hSiR?= =?us-ascii?Q?H5kSOr+oGJWnTmwjLIZGfAOKW81N51oI1GnZ63T2cwpc23D49zQufEuXMwrr?= =?us-ascii?Q?1NpEJThWg5bHRWzzC/EL/gKaTgEyIuHUVQQfdPqcHoYLGpO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jd91iuiF+KKKvcP0M2J/FLD/waGWVw+25vujgGYZFVkFx8NP7g?= =?us-ascii?Q?jh+Gaju8DixF+rso01GXruhWGNYIeKhlBWXyLws7lMXAn4RAudEWPcya1WLa?= =?us-ascii?Q?hpbBfrdpnN22F5z2cCun2wvnWktBOeUNqmUutWntvcKcC4XKAWafCJk9UoB2?= =?us-ascii?Q?/3wiPfgXaMvZu3IIV04AaqrX/hxEGVkVuPgiAgc6SCw?= X-Microsoft-Antispam-Message-Info: A7gvX5PMwypX+0LTyIRSjriky2p1/VJHzqBlc8LdaXD8UawLzq8t4Um7Nr65VS324jegXHUVzq2Rkpw/apPQNIaIdamgpBbPacwFavar66+2pyAAWUPuIE+hByp3JI8Wl+z61eUP7LQFupApNYDIGGrm4NxOoM6VsgP5aK9mUKs2wj/TPHahgAOL6qtdvQCv2RN7OIxZsoJ0MtIXydEGh4tC2juwsknSewmqMcn58s3nDh4o2HwtmySE5FUF3R8J7Sj9x2K9utxzucQmAiKNa/p6rAdjNYBwqkZV0FQQ/sJpB/XEaUpVei8QAalRONr/K/3QVlscrtm5s4p/aX4Q1w== X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 6:apwd7nQfuqqju7OpuOYphx8yDxyUqIyiZwUcopYW+xuuCPkcv91ZCURwIj3GZRLWkCytnNvxLIo09+4lGvdPA/APX2yyppwMgluaO62z4fztoDauDKcfnPsCCSkLQz1DhTo0WS4gozlGhw62Ffy+Dt4EHcheMcIEL7XRw2wBEaqvDTYNKvxi9gl8gLfMhM5mzfKGj1MZ7RowYma2WgvapjSf8uvobrLufDewROvoGxWOn2g8IzMlEF+Ik4W+MaXQ4TRvbNs8fqmYk3jSxJ+CbUDD9J8vpdTqfaW1bbB/jkGwfWEwxHUSieAmhjI54/yXJWF51IPhVVnpgsPfpQWUOy+JLC2Yb8O+NIfZwG0L8FDLnbyu3ZdCVODgol07hFhifnDWUefEcVkSjGbiigSiJFxiM8Ck+isgrKuVYBGAeWASMaPHJv6jDhf/1voUe4mo/+rGbpjC+MoBPadpi1wIEA==; 5:cY1HTLzTyIub0v0su0PzZFmP5HzOItMsXrIxz8/F9xFyRxCq0u9cf/QWOeoCSMsQoPMRsslDjDJJKtgmieMArwH6WhLwhWn4N3QciEw+4/6bVqiKIWeTFSvVVdvwY7iql+uRRGA2FoSWme5ygIK7/660PlLECti/rMPfbuKdUvQ=; 24:JIboWUNsdRS8q4tC0QAaH8Leg29OPT1zL+Oimd9B8qmstl7zWPdorpbu3L0ujAHh3tsifm9U/7vqGNR8wxgo9VwkL4YhF1fncT818xiSAZ4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:D3iiXTI1HamHYanft45dQqJS2fvJB8XY3ZLpEQLh06mKOQ8OwXlTGMJhYlICASuM1xWH3kJHeuih5OiZh94HYo8bx6/ABY+ysQ7HVYVUNdxRajGekc6dJvvudS/YBfwTksjDXPwhiZiLDt7BYA/2UeQfzoPnrbawxCp/6ljvUkeggBQeNSykHcPQeJDK+BVmatJZYEZN8PtJF58ww+3mQ6KI5Oyo151naDNRHDIRTb8X7zKeTowKrLZogfnURYUp X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:42.0051 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 28475aad-32e0-4cdc-aaf9-08d5d75bc159 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0755 Subject: [dpdk-dev] [PATCH 02/10] bus/dpaa: fix svr id fetch location 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, 21 Jun 2018 09:45:45 -0000 Otherwise the SVR may not be avilable for dpaa init. Fixes: 3b59b73dea08 ("bus/dpaa: update platform SoC value register routines") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 2046206..7956bd0 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -539,6 +539,13 @@ rte_dpaa_bus_probe(void) unsigned int svr_ver; int probe_all = rte_dpaa_bus.bus.conf.scan_mode != RTE_BUS_SCAN_WHITELIST; + svr_file = fopen(DPAA_SOC_ID_FILE, "r"); + if (svr_file) { + if (fscanf(svr_file, "svr:%x", &svr_ver) > 0) + dpaa_svr_family = svr_ver & SVR_MASK; + fclose(svr_file); + } + /* For each registered driver, and device, call the driver->probe */ TAILQ_FOREACH(dev, &rte_dpaa_bus.device_list, next) { TAILQ_FOREACH(drv, &rte_dpaa_bus.driver_list, next) { @@ -569,13 +576,6 @@ rte_dpaa_bus_probe(void) if (!TAILQ_EMPTY(&rte_dpaa_bus.device_list)) rte_mbuf_set_platform_mempool_ops(DPAA_MEMPOOL_OPS_NAME); - svr_file = fopen(DPAA_SOC_ID_FILE, "r"); - if (svr_file) { - if (fscanf(svr_file, "svr:%x", &svr_ver) > 0) - dpaa_svr_family = svr_ver & SVR_MASK; - fclose(svr_file); - } - return 0; } -- 2.7.4