From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00059.outbound.protection.outlook.com [40.107.0.59]) by dpdk.org (Postfix) with ESMTP id 15EA01C416; Fri, 6 Jul 2018 10:12:00 +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=DWPhtb85NEBwiCrZYZpSF5Zo04OgaqlCJhIj7CmDzP0=; b=X9Sxgm+3COKK/5P3MRCQcCINK3lzyUHvipRAy2k3QI+irTOJxTKeQhXHIi522Dv2eJrjeaRI8CgGusS5L/eMa4i1hq1CotdGY0AxV1zY0142tFNxPRyIooVn0fG5D6Z2651nfLvZ+nCNO9SaKu8e+4QeGJaSoW8cH1DpLTiNQUI= 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.906.23; Fri, 6 Jul 2018 08:11:57 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: shreyansh.jain@nxp.com, stable@dpdk.org Date: Fri, 6 Jul 2018 13:39:59 +0530 Message-Id: <1530864613-11754-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530864613-11754-1-git-send-email-hemant.agrawal@nxp.com> References: <1530697431-1244-1-git-send-email-hemant.agrawal@nxp.com> <1530864613-11754-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: PN1PR01CA0076.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::16) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ed334383-fee8-4598-2c93-08d5e3182548 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:GNSAwKQxmejCYJz95CbW4U33LA82xOYKb36ir439yLaeAlIvBwMF1dBGxHxsDBpJUGcB2a/7epj6/9JzULtkONJUIDjx3MLfYdgK2zyJiyh+cAVwWG8M4L5GwtQtkDhonzkKSUvK+9wO1Jjuy8PsIIGNCbpYYzdmXhSPYvQJc8mA7HIHisMfcuwTlyYrhaPTOK55t78rvFtpfu+xAdOZiHTxujG379x6EDYOS2aWY0vuxT7dFgrVCTFIHkkOLbCW; 25:wG1lXCEaXccRrs78OokDgLh68mN4Keu6Y1NbmOuaSERV6bzwSNScxcwU2KxHHMUBStRF9Wf6pC5rVbSBv1DWa1Yr+WPPsGKT+XNVuwBQFRVG9WBFP/CIqwRRPrBhpQohfMZg75DTn5E6R41Y2OU2yQ/AhSHzdedQO7Tv4/FlYfftwFhvVS4pkwqNiBr1D8YHSElI2dGHSjVnufhkdJqMIoIsLmS5LFFZiMpxk/ZXpXigYLDqmx5u+i4pRxog570oe9JbjBEzjbIJdS2IHdFgcYC00ecS9Bpg1aJlDWm2SNLqEJNoSPb+Dylya3DNlEl+NIt1pLt/DBv8RPlF/5xFYw==; 31:hjoD5z0xwHkIyYCOAkymYI5WNIkJSOVb0nBKsphtxr89+Ht+ng9cMw++zkBBCzugoPZ6gVL15BQVuY6A8WlChYHgRODNkoLHSnO44ie7pWWPeIHv90ZCQNWSgwCpuUat7fMdsZTOqSD7JXObpqRYRIgLe8h88LftJ9jQYHSl/wKSEXk9p6+2SC7dpnH/tEtnvXl+NjSV9sytLRwUVG4dk4C+dwKFJxVepVAsE1981Gs= X-MS-TrafficTypeDiagnostic: AM2PR04MB0755: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 20:w5iRtezj4+p7uXwiEQVOdPdYFnj1WEj6/Bp/dKnODqsLPGRaDOrFIAuq4xtmdLEpMfSLAoMWid4/+8K42drxMcXMGuy2XJTksHdEAWeyAj5yUYCnFljlwN2iyXXDmMt5q6AUUhxbpkx7rGUeowMgim+6oBxnyuozHKjFSG1jmeOMKpWYjrKe0bFokf7Cnj2lpArUwp5fWmZBj2c3wh6WyRexeRZ89AaScW2QfGvnEde8doHC35+GuVkVUkTgetitXdLKbvLF+LP0sUVFqDV6lzIYll3NDZThsN52oYG3iM8yK1FyHNm+coyNj5IhOsF0NMd5Ct3xiJ44xqoVfhnFAVUNMkJa7+RnrjaBVEklzrCpRNMXukzMTxXBodAGlx8M7kJ3L8ayIaHp/vtcMwGcrHqcPO16Qlw7dcWzecYcHBmnOyZYfNyk9UByqvK7ySQaFKtKtWV46Qj59NauT5DGctpqP1y8Xys7Ol+9sPTNtK/O/yiadv1QsYxFGqLzs/yu; 4:ZB716mi0q29AKgUNr+7iPDGGytuUV+m0kp8WvPy8qx5CX3M7ofiBRa/qqR9gPeMkaVYRIyijL4qmnOxBvioNI+u5HlpU9FKZY/E5qDSDr5Cvqw+0HAvxV3iSdORXTSelh8tFAOKhnWmLWM+JNF5PaXYrj63znVJ11Ew8Pa7+p8s7WQe+TcqrL36dqcMq/coiF/GfNkf6a4wf0llvRpNipenme0x5ymKgwFojwgAST4iXUpiB+6qGwaf0TEist0G8LHWtLjyTdq5nplw3nj0YSiIWWymus+8SNPQW/W6CuDQggYMQv0YFjokytFoR8263 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)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 0725D9E8D0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(366004)(346002)(376002)(199004)(189003)(956004)(66066001)(446003)(6116002)(2616005)(476003)(5009440100003)(6916009)(76176011)(186003)(16586007)(14444005)(16526019)(105586002)(478600001)(86362001)(450100002)(44832011)(106356001)(3846002)(4326008)(486006)(11346002)(6486002)(2906002)(25786009)(305945005)(47776003)(50466002)(2361001)(7736002)(5660300001)(6512007)(48376002)(8936002)(68736007)(36756003)(97736004)(55236004)(6506007)(53936002)(26005)(51416003)(50226002)(8676002)(2351001)(81156014)(81166006)(386003)(52116002)(316002)(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:V+idO+dUTx/UG3KfeUXenG46mvGoA2mY/tBFb/jXP?= =?us-ascii?Q?4rt9xdAMNbQ5sAhw2duA7w/+Mw49Tk+0S0cjn7pmdB4Cqf6CQIOwcXZVHYSS?= =?us-ascii?Q?UXCZWJfsaoLLs3EVaLJiJ3p6fnl9TH43vvKVmU/IkZsyP72Pg9scGBFzDp6E?= =?us-ascii?Q?Olh0sbR2hKb3uF9iwmxETizFMPeNBPuB2Fti2uF2RHo5kSpGQ+8r/Db1bvzZ?= =?us-ascii?Q?evAfMhPq5uDr3CRnA5UKAe/QfB/5bZf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8zIbHkN4Ff7aXubMiJudMK3r3RPaYfWu59ZD7ur4eituYBW6cOF3QCL9ZMXjvMEKuZIDWKeoLHBF7BzxhTiOBQfufA==; 5:dE6YVPpZrlx+LYmvnyfcKwe0A0fdghSB3DOmm1dLrhj/C29DYoLw3LPe4wFIcWl5T3q3eDx8Gy5oXAQ3MpkV3i5TZ/E0UqUZrtU099VKyh7eFth/nSuHOKC2X6r/yODCCeUG2QqfC4qyXvRSMT2PTOcdI6PnvZjHbwIABg2dAfc=; 24:bLURvyQf498i7+js6IHVF+WrvSNQ8LWCTxQtLovMps2sJN1AV5+2eo91R8gKCl7BROCVg99Mjhe+aYgEwTGaEycQ8gLd+OpbbmHbtpwPdE4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:/KOWv/ZUsWxn6VXeovty7t3lzuhHcMa1T9lWhCGQdZUBmwfG1rXxGOAvYCQWCsOQB9MHjykieycztuf0bke5lh+CK/ZDHXHu2YVkYw5DusYstQ+ipaQ2lYY6lyU+ZyWIxYgSCHG3oI3rnTsVxdMh7iy18omwuhGO5DqxyO58c8lR5gzAWB3jJ+ryu1xYCzAHKeOM9ypBDg02OLhumEiQzWmxIbZPTS9q5HAQ4IuzSRGkKCA48BngGGEODkJC4ENx X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2018 08:11:57.8083 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ed334383-fee8-4598-2c93-08d5e3182548 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 v3 02/16] 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: Fri, 06 Jul 2018 08:12:00 -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 Acked-by: Shreyansh Jain --- 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