From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0041.outbound.protection.outlook.com [104.47.2.41]) by dpdk.org (Postfix) with ESMTP id 5C0E958C3; Wed, 4 Jul 2018 11:45:28 +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=nSrWsCKd/4KDaCcEUJXYVRUOEZLNK2OaOnPIlzBRYlL+t+5+P0tWHEMwvGyP01JWr0jdBTB+JhLI8cpdfxpfYqgCT1ksDKC3Agj/dkeWsSqxuAPAT/+h7EpfqekTs7+dzrzikjTjgzWsWuHeWt7ZQ+W50nBb4yATgPxLjBXHHGg= 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 DB4PR04MB0765.eurprd04.prod.outlook.com (2a01:111:e400:984d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.25; Wed, 4 Jul 2018 09:45:26 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: stable@dpdk.org Date: Wed, 4 Jul 2018 15:13:37 +0530 Message-Id: <1530697431-1244-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530697431-1244-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> <1530697431-1244-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: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To DB4PR04MB0765.eurprd04.prod.outlook.com (2a01:111:e400:984d::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ec69da2-5809-4e8d-73e3-08d5e192df2c 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:DB4PR04MB0765; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0765; 3:BmXx4bohpQHsc6Ma3laJhBZCTFjLGNSpVEbbyrJABryoZJ+skf3fODX9K3X6w9AKWcl+Tzt+IpLVmAmfUx120RYZfLVoTGW8gC9+v9L78f+emneUuJS8QWOPXP8t0AxJSRB2/Zg5sfteLYpK/RoOGaFbC08J3EHexgJ/a3zIXP3UJ43sAr/faOA82lztcbR4wPgfLpNa86KXayBm4R9NX332YzDztOhWDTlP10I3s6/lGmu7gSr2ZjS6bdhXGwCR; 25:Edv8MbR2gWvAQ/df5KywC3TH5f6Zyg8wS1V3fsL8O67X1M2zB3fCT2m7fgQJ3RMQw32yXK2PdERJkOdSPoRFr812Xc5SBGw1TuluYHhNAPqEVaOYGQUkJ0Dva8IxfuOZVbZ7uNVOAvuwrKZJEw+JNC1xHPNc+M750qM9Op6wturBNrDWSKYgxpb2gEQTn8e/nUqLBkWVgP4kIhigD8lUVTFKX9Pmg1H6YOQX+uvQbALQNOevVsJAJgyK4JEjQUGCxxP8OWuZRCPBEPKsjWRNZfD4PlJn1kTi9XSFdCqrQOwXWfqwDogcNy6tMIHT+aadKjiwNKQJ4D+Mnp5dxWK3xw==; 31:L6milBR18KZvzCr1MmNZ2ngFxpMUMLCaNrm9H0AB0IOLFT0cDpvuVJpfCCA6Vsmmpa4TWo4pMD8itdQ/R2Lju7/pMSqnLg2BvINN/KTTvdD3VoXfpJ6MQRxRZrjF2AclI+ji/6qGOKYiga3mOP5jRG2h4esRQ6m4VHbGpht+7+Y6Iw6lrUGCzb41ebxnKlndp1/edc73MzonwXqT/2/oCP5dzdcMwuAvPQgwhHADtbc= X-MS-TrafficTypeDiagnostic: DB4PR04MB0765: X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0765; 20:Bg5e2F0O4cHRspEzsb9jg4b3IEFEC0HsAIzr1st1DHQgnTwddzFQByq8Up6WaGRwq4QzJrs9jYlJLM8o3ytrLQHl3seQTzHZcwVwIXB15tHQ/hCxaZxHB3hZwsG5ztO822giRj8YAdn5wpCSTEy3XC5sfu99hFf6zmvBAFvYcgsf3PwxuB/B5G2AsMJPqo+z64QOHpH3KpnGiXoliMgRvpJdpWyKU0CLAsKTKY92RBMdE2AO0BMx8ilrwsjhB4q3fbcftxxTCyUmC+OXp3E5AKjQHbNZYfeKk65R1jtzsudSlsRc+zikQMU33anCSTjM/Tk7eWZkvmfJF0kdjlXh4BQSKZOubkM+zHK1bkF2jXfG1XPMgYC/YmuBHOb6AOaII+LxUgbhwx0htxiEcuqBhf8Qadh8dKFxLC9A+KrpxQiT2QHE4t5c0loMRbgiWN+Y1mOLbnc1WOOjW6TperlitGNpIQSTfYX5/M9v0PXGAMhqZ3dgLOnuFcX7m/Z6r2qm; 4:ffjNtXP791K+H9mpbXGaV6ja0+6dbAg+LCQOMPVS3DoRVNCLDdxqv6pMPk3wGguLafRtu4oRnvDXXlHEq0oyZUWjG5g0WAv5l0QwNmHP1as1vLxom1tEw1x/T3xnoi2lIrRtgo1dlnDRLnzwYhaLANNm8ngVS90V3wA8L4a3e5FXCIgJqXH41AADvwRGC0KpNEdh3XtFE/uwqRptp6rYuAflKDiJ5I7OA+Byi1Tvd1faIEiKNVhLTYn2NDwH7zgepoEJrF1Kvy8MGnGv8bo+fhQtC+8parMx/r0X42B4X1XvHXBdoTYBKY2OvWk/8W4H 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)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:DB4PR04MB0765; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0765; X-Forefront-PRVS: 0723A02764 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(376002)(136003)(346002)(366004)(199004)(189003)(6512007)(11346002)(476003)(386003)(6506007)(4326008)(55236004)(956004)(2616005)(5660300001)(44832011)(105586002)(68736007)(16526019)(53936002)(446003)(50226002)(316002)(6666003)(5009440100003)(36756003)(16586007)(2351001)(6916009)(106356001)(14444005)(186003)(86362001)(450100002)(26005)(6486002)(97736004)(305945005)(81166006)(7736002)(8936002)(66066001)(8676002)(478600001)(25786009)(51416003)(486006)(76176011)(3846002)(6116002)(81156014)(48376002)(50466002)(52116002)(2906002)(47776003)(2361001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0765; 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; DB4PR04MB0765; 23://Y7wmZM6NXc3apViz/vjM6k/UvKC55GNL9o928ep?= =?us-ascii?Q?V29mTWYwxoEzypOxUQ53uXbSEH7860YkuIwN3q2CpErt5v9kG976sKr7nkW9?= =?us-ascii?Q?YCVTvU9lF3+hrXTS4waV+tk9VeSmU7bERR2uYI/0imT5uAlJBZBDymJqqt5u?= =?us-ascii?Q?dLdL5BiiTSWIU06E2bQIL0BQPNJ1QZ6/NYlDM7wncJis08FKFVTq+a0V7Tmu?= =?us-ascii?Q?OiaGwRR5sU2Rch6okwqJ7vhvFr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0eaqRdnnv0zIC4Zt5WIT/IsnHDWUlPEtIZQoAGnyiy3SNUUoZRHdC158xNIL/kYdEvUfF1w4+OS5mQwgJvhR1x/zmnWbt7VCASTWN/9GAmf3os2jUXqMXg==; 5:yleGA5wl9f4a9tt+NspfyLcXwDIQmFZ5PIcq9GD3dXFT6XWQj937Q7wwNa9KH+AHNtu6HGYqanHd+diEgYXC/XIe7R+ZzuwaAXou1pH7oPp6PCxDwfNNAy/3eB4RcYHg2plAent78fh2n7Ocd6fHg8FGJTyxyc83GjXwOGCdIQk=; 24:cFGfSqDzRl5cp1a2ZJ3TZWU3m5YcaIqC5sJnt8rI6yTfQUmfNd66inVDt4HyGDLqYjq4IGqYrKxaoXGF2ZawY/FTwpoZreY/zPspvAgG4fg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0765; 7:x1gjuwY328o4HrPXL3oHsQUEh0EEkAhduPjsBIwxjhocBlRLx8Fpl5YmaTFORm3WBmjAgjqgszdvjQ71AQpgJob1EiOWB8ua0hyFuRfZ3PIMmbD4hwPo8H9nM4ZeefQbqwLnavgerMwxLbv++oDumUNuMwLgEn8CYnw47ZjZ1rX5mgCJ/JepMNFmU+Ray2CY6dzpSeCoWlyf9orCtGJEdMA5iOHx8AFnaWX6mbASPj+96stoLOPmL+BDoT8Cuqfk X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2018 09:45:26.2405 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ec69da2-5809-4e8d-73e3-08d5e192df2c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0765 Subject: [dpdk-dev] [PATCH v2 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: Wed, 04 Jul 2018 09:45:28 -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