From patchwork Wed May 27 13:22:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 187230 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1120628ilb; Wed, 27 May 2020 06:26:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwadWD1aLBHBXDlF8i9EFusC84F+fGL6/MEzAeZM/m0cKSTwC+RUG59verj/xiv7hwbsug7 X-Received: by 2002:aa7:c418:: with SMTP id j24mr24401631edq.313.1590585990193; Wed, 27 May 2020 06:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590585990; cv=none; d=google.com; s=arc-20160816; b=GKBBA1uFoGi9TQCY7eOBOLQ7pFsjgEKJI/RgRypI/D14IPPXth6VfYgJ2K8w8DC620 z62zCGEgzNuCfIky/fhlJp7AoJ+LAPsRYQj/zuPkm1IQj3rGdo+vKoZBDwJ8FXFQqKg1 YgBFePKEkqFLwEaX2eP0nCe9sGedg5jEyydApGveMjJvXFwFq4VuChPUv9EK0SUfW0rn AXayq9Jiyh4VPuDSgRpoMu0HKKMlGpKrBzrPg5RePmZhHAxjWHaFHPT7hQYzrpbPDGyv HQAaFKZoKiTFUlG6ggtML2HXebEZjQzW0BKV1y/tt+5cvdRdkihtru55YlIpF6ZIMqf0 CcBw== 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:references:in-reply-to :message-id:date:cc:to:from; bh=nDFo4/0gX19lHYcBsLoOmjUtLjdyT5Wg1/xLYtujcp0=; b=v5bkbJkyr9BVjCQQaV6Od5TyrjMtq0LVpKIRwHogdyqDVgcK8HLzJ6ZZxcw43xCL6x UROysIYGSQGCf8OgBLG7eDaMOXHYzaMowVhm/ktjs1hpR4rYcVPaS//2cCAc1H2NBF7I O8vtOJZgmI2potUxGKHr5/t7KYTj8oToRUbGCAvA29ADOqsNvpQ7OX5lnhv6ySv53vGx UMKpsXtUPb0BM/7tJq6g6n8rty7fmQ3I8yQ7Vc/zfAM6OnFCI2bBLlCFuMLFyAr6OWKY 918XeVqip4SR9vHQxntpej/ORwx+QWXh6k1OpfdRUh/VFaVC65P2IsExLymeyNYK/IhH I+6g== ARC-Authentication-Results: i=1; mx.google.com; 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 l17si1152817ejg.358.2020.05.27.06.26.30; Wed, 27 May 2020 06:26:30 -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; 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 720E71D95F; Wed, 27 May 2020 15:26:23 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id AF7421D958; Wed, 27 May 2020 15:26:19 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 63190200775; Wed, 27 May 2020 15:26:19 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 44E0420051D; Wed, 27 May 2020 15:26:17 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 02E124028B; Wed, 27 May 2020 21:26:13 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: stable@dpdk.org, Nipun Gupta Date: Wed, 27 May 2020 18:52:50 +0530 Message-Id: <20200527132326.1382-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200527132326.1382-1-hemant.agrawal@nxp.com> References: <20200527132326.1382-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 01/37] bus/fslmc: fix getting the FD error 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" From: Nipun Gupta Fix the incorrect register for getting error Fixes: 03e36408b9fb ("bus/fslmc: add macros required by QDMA for FLE and FD") Cc: stable@dpdk.org Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Akhil Goyal diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index 4682a5299..f1c70251a 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -286,7 +286,7 @@ enum qbman_fd_format { #define DPAA2_GET_FD_FRC(fd) ((fd)->simple.frc) #define DPAA2_GET_FD_FLC(fd) \ (((uint64_t)((fd)->simple.flc_hi) << 32) + (fd)->simple.flc_lo) -#define DPAA2_GET_FD_ERR(fd) ((fd)->simple.bpid_offset & 0x000000FF) +#define DPAA2_GET_FD_ERR(fd) ((fd)->simple.ctrl & 0x000000FF) #define DPAA2_GET_FLE_OFFSET(fle) (((fle)->fin_bpid_offset & 0x0FFF0000) >> 16) #define DPAA2_SET_FLE_SG_EXT(fle) ((fle)->fin_bpid_offset |= (uint64_t)1 << 29) #define DPAA2_IS_SET_FLE_SG_EXT(fle) \