From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id B0B62187 for ; Mon, 30 Apr 2018 16:06:35 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id l1so14480450wmb.2 for ; Mon, 30 Apr 2018 07:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=r6i0Bs+CV8Ob9YkwGPaH1L/XLMVAlM9BuUhfAM84K24=; b=pAPXTRfyjAvZBMih02uzWofeLsgBNH3iJEuY54ogorw4IrUyyMr9a124pVYvTSOOf4 ctW4+zEdgAg2U3g5OIFR6SVDRZgbqBQAu/c52dbyTSp1C09I1e8oxbjp/PgWGF8R0Kw9 QC+1UyEi++qZbz14fK4RDLju0zn0XhI1W1PUBx8Mzd3K3WZtmKsmxXDt5TUpHLKJwZWP vBx9ctCo8SuuPeMjR69+hUVBnR7X0hTxKG4g9Oapr+OR/jdZFyjCuMEaJYMlguvnr2xG MMLaGWzUfPGmqCGcc373Iu5kM0ohPDwiJOu0QOLUCY6Ux6kpAI1czeqRE+XGCfGkJP6H Ruvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=r6i0Bs+CV8Ob9YkwGPaH1L/XLMVAlM9BuUhfAM84K24=; b=ClnkcTCuYSVWx61mzVB38Co0DHSDQ5ZbtRYq/p2HSBexyfph1MhV3KP420EGb0tQPT EffwbsxnleTXXaQHMajbXUH/1rtuK5sAFCml8WV6S2Qx9ULySdoD3GkVejRjpAf0oukY EzA9TWmckEMR9Jsegw288DbHLgaT3uyKWCFmGnJE4QXKTzK8lzhzKLN2AsQ9JV3+WLUi 1qJPXju0qznH7JBPEDb7UmTi6smY106xC+aWe2OuSe3iMdeybDwSv4T6UKuAVkdXdSj7 f8cGw8OYf6fTWP66xmp2xWU9SgP4vTYlt04dAe9JTl9tbILFk+78XkZ8RUXeeTEz7xSY e8jA== X-Gm-Message-State: ALQs6tDKCYgF511m/X2q3gd0RjuO1dLFiSPSNdKmt+p5uT9ayPvUtLb3 4iJ2LJHFoxNJKtb3tLc54Gcncs+t25c= X-Google-Smtp-Source: AB8JxZoU4a3+LIeTqE4sp8ZGeHSYyKhl9qHUAVHXpo3qi11xvdBxLGmB+gidMXRODj3Y7C88Bzll6A== X-Received: by 10.28.20.212 with SMTP id 203mr6985370wmu.130.1525097195425; Mon, 30 Apr 2018 07:06:35 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id m15-v6sm8053271wri.8.2018.04.30.07.06.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:06:34 -0700 (PDT) From: luca.boccassi@gmail.com To: Hemant Agrawal Cc: Shreyansh Jain , dpdk stable Date: Mon, 30 Apr 2018 15:02:44 +0100 Message-Id: <20180430140606.4615-6-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430140606.4615-1-luca.boccassi@gmail.com> References: <20180430140606.4615-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'bus/dpaa: fix big endian build' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 14:06:35 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 9f9628db154498098625e8c7e92427d85e74820c Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Wed, 14 Mar 2018 13:25:58 +0530 Subject: [PATCH] bus/dpaa: fix big endian build [ upstream commit aecb4351311a74801ee9be98798d544b1548b5a8 ] The array pointers were used without index. Fixes: b9083ea5e084 ("net/dpaa: further push mode optimizations") 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(-) diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c index 2b97671bf..2810fdd26 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 7cfa8ee44..66838d25f 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; } -- 2.14.2