Message ID | 1530697431-1244-2-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp595179ljj; Wed, 4 Jul 2018 02:45:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeANftZeF0JnLj6TXKtRfZMDZQcq3OMRmT9INbpiaj5CVWKvZm00g2Drf0DOksS9Va57Mjy X-Received: by 2002:a1c:e043:: with SMTP id x64-v6mr1153070wmg.58.1530697529967; Wed, 04 Jul 2018 02:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530697529; cv=none; d=google.com; s=arc-20160816; b=A4wGoUVHxQY3TAFvWQFimdm5dRyOSW+VVsJaemDFGDrJvSGBPYibMMg2t3+pR5JRdP dm5UqvnxzdE9dAEyNkpp/i51iGgrMYS35npaAFBoe90Q5SA95euWhObPn6ZR7AWdTXK0 u0Aue4oQ978bj3nY9ola5fwBxbtACr7P2NMrPL3VONcWVqDljgdk4pXRwObZTsGXgj03 szWOibRBPO0V1imjA/3uM5OK8lU2DTAfM2+LGquAX2ACCeU/BDjQO+p8Bkp25RbIGz31 P12OQVmacjVxQOUIgMKctBm9h9cKyBjo67tKGvALuJSzXTK4nY8jzsuPmN9Za2EQIs4t Gn/Q== 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=6KI8FBcsRl8o9LxpK9jAQv24safcM0wyg+kPy56T44s=; b=V7u1pm7TWBs/eflxI0hLKTg7yvi0v29iUEi4JiFpM176/7Il2ZLrEIWU+IbhPnR1tU 8TrxaPd3v/oOkrvpI8amD9YyRK2niTeiZPzPaCgYBtl3TJaYDzNK2cACOAEzS4YgCyc0 6+dDAMgnzcJh6spi2TEw/QaU5p3XmHjW26iIFJLJdWVnSsriChmtxDUP4r2GN0Mup6cO f8jKaG+clNdaaV1UH35u0sQhU6eLCzD+uL/6RAgUYEgpmQbSgJOi5SRjfKs5F/ZXnfm0 h24CjezYeneIjdvhxDKGDA8gbxMP3ZuJ4QVihKjd6x771DPssxT8T98pTEJDAphZ+als Ec1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=nSrWsCKd; 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: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id 194-v6si2508120wmx.22.2018.07.04.02.45.29; Wed, 04 Jul 2018 02:45:29 -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=nSrWsCKd; 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 218021B51E; Wed, 4 Jul 2018 11:45:29 +0200 (CEST) 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 <hemant.agrawal@nxp.com> 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; DB4PR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Ey3XC5sfu99hFf6zmvBAFvYcgsf3PwxuB/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: <DB4PR04MB07654722AFE8924938AAB0EE89410@DB4PR04MB0765.eurprd04.prod.outlook.com> 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?= V29mTWYwxoEzypOxUQ53uXbSEH7860YkuIwN3q2CpErt5v9kG976sKr7nkW9YCVTvU9lF3+hrXTS4waV+tk9VeSmU7bERR2uYI/0imT5uAlJBZBDymJqqt5udLdL5BiiTSWIU06E2bQIL0BQPNJ1QZ6/NYlDM7wncJis08FKFVTq+a0V7TmuOiaGwRR5sU2Rch6okwqJ7vhvFr6A+lF8Zd2cY72x6BZ1CLVNIAKnOUHrmGZaw0RiqSArQmMAgLt+ts99ycKJdHeO6Ix3Kti/bdKgW00r9xjx8du6DCTe/hVdP1IseFPsOWwrIe1HkmpJ6fqOHdcYsKpI9bhPs1MfQW0b1ACJNgGHvjqhgrLOqMISa4z2EO47PvubU0SozWD61wRZO8tDgVDDgTIETOFEo2oAXR6kjjqGEki/FZHKwuhJW+iX+BBsRVMc30F4IKgngv9kaF88HtK5MlLxGqY2akhHv3N8YS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pl5YmaTFORm3WBmjAgjqgszdvjQ71AQpgJob1EiOWB8ua0hyFuRfZ3PIMmbD4hwPo8H9nM4ZeefQbqwLnavgerMwxLbv++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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[v2,01/16] bus/dpaa: fix phandle support for kernel 4.16
|
expand
|
On Wednesday 04 July 2018 03:13 PM, Hemant Agrawal wrote: > 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 <hemant.agrawal@nxp.com> > --- Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
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; }
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 <hemant.agrawal@nxp.com> --- drivers/bus/dpaa/dpaa_bus.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.7.4