From patchwork Fri Jul 6 08:09:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 141262 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2834587ljj; Fri, 6 Jul 2018 01:12:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdlMOt/M738uIYtYh1DneKn+3NVz/3gwIanRqw0egqGYjdUYU3ZoL13Oax/pAzFK3cLI/20 X-Received: by 2002:adf:a581:: with SMTP id g1-v6mr7053756wrc.233.1530864730939; Fri, 06 Jul 2018 01:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530864730; cv=none; d=google.com; s=arc-20160816; b=V3bCYINGx2w+eR/JoDYH7h/KG4jRPSvpgTR330GfHirbaS5uEm/WkUanKynpaxPnSF +HUqGcIzktYqvB1Xtl3v4Vi89EjB/9B6rOWzXumHvFc/2c+brr8uOvbi9kb4HacmT3Sb 6927C42EU+nV163Ovr1GysCElvXzBYOwuhODS9R1ByXYe/kINocuf63GJukaX0KrjtYj cN0ismCKxhdsWQbHarTX812iShDuYaN8XaImFErQQ/ZnE/hku8o29pA3jQWMAjdRVPNV d5gHCVBwz2HH+dG2Hg6Zo8J5jtCh5JgNDrHyKKO3uSw47AB4eItq0omqHPptbEGEEQRJ pjLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=DWPhtb85NEBwiCrZYZpSF5Zo04OgaqlCJhIj7CmDzP0=; b=hYirxoakcpUJppEKCpGTG1PxfgOvVZZoSeq8DTXa/4qhlWSaXF4yi1kqsMQ7hjbJET Rc3j6VfnrKy9L48ZApAS5oc4/qBZ3wIohskvLRsHgtkxDOzVGZpttlabK2OSdFjhvrqZ XA8WVwiFB1y9s0VHu3T7JCmdhOFS4IeJMK+iarTzbOBYtHi+GlzVvY3XgUP8N/1yRVwA o1xnQA0Ml/7BRYSJqY5uZBoIeCc6l1bleepsh6Sdyy4jTraogVxxDZ5bv5VKvD+e+9cy duPfmO7y9gOOZuYzPRMlkli0dlQ+kDsV4YTWGeBC67Uk1bFEIjihhTkv2QbR1TPUckbD C+Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=X9Sxgm+3; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id s106-v6si6660113wrc.162.2018.07.06.01.12.10; Fri, 06 Jul 2018 01:12:10 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=X9Sxgm+3; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1A9821C43E; Fri, 6 Jul 2018 10:12:03 +0200 (CEST) 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 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-Micro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q6AUUhxbpkx7rGUeowMgim+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?= 4rt9xdAMNbQ5sAhw2duA7w/+Mw49Tk+0S0cjn7pmdB4Cqf6CQIOwcXZVHYSSUXCZWJfsaoLLs3EVaLJiJ3p6fnl9TH43vvKVmU/IkZsyP72Pg9scGBFzDp6EOlh0sbR2hKb3uF9iwmxETizFMPeNBPuB2Fti2uF2RHo5kSpGQ+8r/Db1bvzZevAfMhPq5uDr3CRnA5UKAe/QfB/5bZfBFDXTF+0gFHQbyb2m7EwW0dNqx4hGttz5u0yNLQI9k266xgM/u0z7Hj3WuNdaZ391wT5sBYiJUt7+WPCWiHM8wxiK5sgjhzs8dQ6ir+J2dZblSA0b7jjEemEAfgDqMM/GuIYHXpxHmXptTByXaRTelczIee9D1+ELm3mQqslEeUhD8kqXj7oGZpeam9+W0DMRFapKnUwhUHfRqOEF4a6N0yWhE4jp2TAJFd2eJ65iean0aYsP6tp5wAJHvBtmStk2L8s2uDUnOFeEmH5p86l+VUKhF69RBACxE9lfvXoJxrTp0fsApIFLftD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kYw5DusYstQ+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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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(-) -- 2.7.4 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; }