From patchwork Wed Mar 14 07:55:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 131559 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp548076ljb; Wed, 14 Mar 2018 00:58:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELvUsJPhuaFNnsTTOtHpA1jyhFeFw8kiui9rAotwGmi+36q3sqGiqo9Fl7yaX1xtrSmffsWX X-Received: by 10.223.151.1 with SMTP id r1mr2950074wrb.126.1521014313922; Wed, 14 Mar 2018 00:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521014313; cv=none; d=google.com; s=arc-20160816; b=ocTrjImq6yArrznx9DG4uZ6Useo19IhhXW3D9s6SgI20cva7adVl5fKfYOKiZNAFja CzFZrB86jIzqby6VGlCYIGeJ8cuPOodiZw9NPD12qyCXzFZpy7LZ+Nlkx9PshWwvWXdK 8XvPo/rrVNfhWHKLgOMm75TqLCjz/x3BLU/u1O7IgGU285qDxfmga3ld81zk3Wavj8kg /VxKe2wt5BM1swShRG3MhAaQ6+VuTxEvpVuDcpT/m88FZYE/EPSiP7lcWKg53UVx6MIh VnyagUOWYe3JCS77KoTI8dnVLJbZtRlpblmvqjMNEQnKjZgnBib12WNm+fh/4qDT5EPl AIXg== 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=HG05S5rud76hN9Lqj6jOwy+CWuWGVr6E5IdIz2NmlKM=; b=TG+lhwHJjst4H6VN+MWNROK/3PvX70uwr2JSgLK22yLXgArlMdHRtp3SqE7EfQq0u6 5jMElSv7TafpT4aK9JoCdhJBoOHWQjQZ5AJSepPLIa1rbUhAbGF+/izNkNBB+c7IUxIX D9Far5qNGlcfO7wTFvyeg9jc7qPios485zSDvU/G26+xy1qPYA1tov9VhEPQ1IUz6ACc cuYYHDdrtKYfZ6Ke6Tx3nHSgNFPBaLctfYEGJwc6uB/uZm/ZpnVY/kso0wEm/KakkHnQ hMtIBc3SFHqxRhS7zx5J1Dy019GuRAL40xu/lQCLzFRkP4mwyfkNU3nQ2zhhtOdwYj/N 1vhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=dqYHiEoM; 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 f36si1439684wrf.393.2018.03.14.00.58.33; Wed, 14 Mar 2018 00:58:33 -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=dqYHiEoM; 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 B11437CFD; Wed, 14 Mar 2018 08:58:07 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40074.outbound.protection.outlook.com [40.107.4.74]) by dpdk.org (Postfix) with ESMTP id 0EA475B18; Wed, 14 Mar 2018 08:58:02 +0100 (CET) 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; bh=HG05S5rud76hN9Lqj6jOwy+CWuWGVr6E5IdIz2NmlKM=; b=dqYHiEoMtDeEK8vEpIxDAjERtI8TVeCLUTBomnLTQkXdO6pUWchoZXB3RUbzn9fc0NYiP2lMf94blmSJymMqcpnuwHXOri4Jic7ndRabzBuXzx9lMoCp6o5jaDrjxo/4bru5kIIMFknWLto2HQyfy0vnOB0HnY8prkyiaLgUBGo= 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 AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 14 Mar 2018 07:58:00 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net, stable@dpdk.org Date: Wed, 14 Mar 2018 13:25:58 +0530 Message-Id: <1521014166-3201-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> References: <1519889597-5805-1-git-send-email-hemant.agrawal@nxp.com> <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1f998048-c4be-477b-264c-08d589814f5b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:xFUh24qYY4qHKx7s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RekVKEhlUveW7S/widnfqkB3g434Ggfe5dO481LnNhyjlO7QpMh5Jig51mCx/GzkRTfkQ+057Ehk+RuKjVxPDxtMTc83HpyRW448vUUaPZhuiXoQ2dJUpedAEmkfkhRFGUbSEpKvyLpRsp/Ji2TShay7woNQ8+ZmJT10EKU+OKN63cv3p/BV9hASL621QDOXhApbDDqTRjTgODe78knguIQjFklirwBMQYIUNNaU1qJdeRdW2a6Un18dlZPYneWk8QJLq8+/cDbAtngn3bpyz/XgQr+vY+M7SyaPQ4kvQwoajk52Ajal6Qy16qwEULy5o7LOrH3wQ; 4:O426wuwMFOtIDbRWlCqFmTkwsNzsL7lFvJXNuZHKn57saS53LmOtCjhM3OrsEVfDpSnNxmeuTARy2Z5Tsu3VWcHJ9OTXxDjFLkHLGdJ0Luz2/r+6X9qv8AnrbXAHPelt/osYhDkyRe+HUzg166odRIJ5hr9l28ZDcQcSWsrFen2yN36qxuEAwGBZA32kA2XilTlIaheRjObpYJU1Y5OJMfiIZc9vyGUTyMtdKJAIq7IwNOjVYFAUenp+0BAZrLu8aFpaHZbQSGSsqG1CGZ70jioMCYrk3xQJM5BuQntFHbCPxYzzjR0VMq++iHpkv6fg X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(39380400002)(396003)(366004)(199004)(189003)(316002)(4326008)(16526019)(47776003)(6506007)(66066001)(186003)(52116002)(86362001)(386003)(55236004)(59450400001)(48376002)(2906002)(97736004)(68736007)(26005)(5660300001)(25786009)(105586002)(76176011)(51416003)(6512007)(50466002)(5009440100003)(36756003)(16586007)(81166006)(6486002)(8936002)(106356001)(305945005)(7736002)(50226002)(6116002)(53936002)(81156014)(8676002)(2950100002)(3846002)(478600001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:k+Jv+Dhlpc6NgW/Vftmy+vDdYglwTWl//vGQV3nbF?= 429fwzH9tEaaD+LziO89x5G5lr6sUd9cHSs5VqUaSZcvYTSImLVbnYljF4vOXRpe/k5nhP8wD7TvnLfeJhgIvS9TKAux5VV8pXjHQZOASP7BWyMxwC3lEbLd3Lg8Eu1s02j17MkSat5kXQI2btR7odRtJCWzKxQlPewcovIrTEWLdqbGulb7JKJPzxK7ZSELnQ734fbkgRZ4elcoskV8bK0NK/HFDG1topMrABk9NQjGtq1ZJLahLlNP2XLihcVbwHk9JvQS2CeCpbUyB1RKSKtCz8qEDanbzm0PJc5NrbQLcuuumO1jffdXetDiu3aHcfd6eoxsXL+Fv+7/ELlgdJFzKU/JUIjwMIP4JfzzPNWWDUyLpaLxZy07IMRoUYubMfG3Fsi7n4GWP0NGsuPeDjkP04G6kiwRCku02Yqv7jT/OXTkGFtr0EaeejlYJZ94dJh5kI5NBnCNumNQ0ovV58LANPC3NmbhzfUsj6pGebPcbFDJb6k90aEzk1wd4a8c0WoVxH2JhWUViVq1gXlTCp1zEdVOntANVg1opomF+1QKU2fwIz26sj88vGyhuSd6iNL3mIQK9CrK0CJcNKFJmXoPgtSz561Os6QTU5wPgJPHad+CRtZZCmNGVs4014V9Ni/dkY15GgptWkKshStvtss2YQEM0s1nn0o5brM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qpKTWrIo9VwKNJFtsCWutiGbHG+3FU0hLkdspieyj54DeepMW19ptAFVfM1nchwH1uyJMgfAMUo1BGaNoICqLi35YG00ENiAUwbmCxEC5RYXOPNvJU/utLHlyZGrTAwRnMA7CGuz8EneTWWrg2Iow6M/BBsUzOSht4=; 24:sHd5bhcdywd0Kic6rOfHw5daLKB3HNbyecF0H7dTs6Ey5g603OVnrBpnEEvXgiRjJrreXVo2iGWqyuKEv6utCbaOvdSzbz8Opf8JWf012VU=; 7:WDnBmlqAnRg6sKcAGdy73TjxChLpH8wtYV8jZmTn8FqXPv603nYQpFvSFHdbk3QRjPidHi1YIYWnvl1qQHJ7Heba5G2q8Fo6aVd8YlZFCVkIwDofKqwgL2VFDSkK72zK6FuhJrx1bXaros+D0D/9dUfmi6pSa7SIapOFh8j6VoGZYIU3XS3iUT5Ep8iOjjiOp/t6mljE9B8vEbw771J+qAnUv3Quggqr1YW1BoBa6tNwkkXcm/CyujdXiVbuzDyg SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 07:58:00.9046 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f998048-c4be-477b-264c-08d589814f5b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH v3 02/10] bus/dpaa: fix the BE compilation issue 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" The array pointers were used without index. Fixes: b9083ea5e084 ("net/dpaa: further push mode optimizations") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal Acked-by: Shreyansh Jain --- drivers/bus/dpaa/base/qbman/qman.c | 5 +++-- drivers/bus/dpaa/base/qbman/qman_driver.c | 5 +---- 2 files changed, 4 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c index 2b97671..2810fdd 100644 --- a/drivers/bus/dpaa/base/qbman/qman.c +++ b/drivers/bus/dpaa/base/qbman/qman.c @@ -1087,7 +1087,7 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, shadow[rx_number]->fd.opaque = be32_to_cpu(dq[rx_number]->fd.opaque); #else - shadow = dq; + shadow[rx_number] = dq[rx_number]; #endif /* SDQCR: context_b points to the FQ */ @@ -1095,7 +1095,8 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, fq[rx_number] = qman_fq_lookup_table[be32_to_cpu( dq[rx_number]->contextB)]; #else - fq[rx_number] = (void *)(uintptr_t)be32_to_cpu(dq->contextB); + fq[rx_number] = (void *)be32_to_cpu( + dq[rx_number]->contextB); #endif fq[rx_number]->cb.dqrr_prepare(shadow[rx_number], &bufs[rx_number]); diff --git a/drivers/bus/dpaa/base/qbman/qman_driver.c b/drivers/bus/dpaa/base/qbman/qman_driver.c index 7cfa8ee..66838d2 100644 --- a/drivers/bus/dpaa/base/qbman/qman_driver.c +++ b/drivers/bus/dpaa/base/qbman/qman_driver.c @@ -246,7 +246,6 @@ int fsl_qman_portal_destroy(struct qman_portal *qp) int qman_global_init(void) { const struct device_node *dt_node; - int ret = 0; size_t lenp; const u32 *chanid; static int ccsr_map_fd; @@ -352,9 +351,7 @@ int qman_global_init(void) qman_clk = be32_to_cpu(*clk); #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP - ret = qman_setup_fq_lookup_table(CONFIG_FSL_QMAN_FQ_LOOKUP_MAX); - if (ret) - return ret; + return qman_setup_fq_lookup_table(CONFIG_FSL_QMAN_FQ_LOOKUP_MAX); #endif return 0; }