From patchwork Fri Aug 21 06:59:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiran Kumar Kokkilagadda X-Patchwork-Id: 75800 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9F15AA04AF; Fri, 21 Aug 2020 08:59:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8709F5F69; Fri, 21 Aug 2020 08:59:39 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id ABB7C4CA6 for ; Fri, 21 Aug 2020 08:59:38 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07L6oWZd003036 for ; Thu, 20 Aug 2020 23:59:37 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=s9jgNagEmHX70+73p2WNgIOECJ6v+ZSrAfzCqVzxe1M=; b=CgTNP5aHeyuvCsOG4XYB6fwTRFu/jojM11G1d61EkZeNuQzwRUvVIO+g9HJo1Ic0jaVG tSKCQaone5YTipXQnk2jQyJ37XX49azTx1bTs10fGeM4LDasbvFhmcOdUjAq4pMXVrvH Cl/F1+ML2RwRjjDchMv/gmeXqPfhDn2FP2hOku80GPqrj4enFaaSyERrlShdx4jDShvR loNCPjODkBz/N61N4Lo9Qw79yfLjQfyYE+tfQ7yaElhcHUfMtkmgg7nQOWiapwRsVEYC l/kMq9xOOWhOlJdYFCQ2yrwdxuRfNOtrO+0F+qUpT1voSybNG83R0lcz8c5fzWCSdtlW Ng== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 3304fj1e3v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 20 Aug 2020 23:59:37 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 Aug 2020 23:59:37 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 Aug 2020 23:59:36 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 20 Aug 2020 23:59:36 -0700 Received: from localhost.localdomain (unknown [10.28.34.15]) by maili.marvell.com (Postfix) with ESMTP id 327963F7044; Thu, 20 Aug 2020 23:59:33 -0700 (PDT) From: To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: Date: Fri, 21 Aug 2020 12:29:30 +0530 Message-ID: <20200821065930.191028-1-kirankumark@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-08-21_05:2020-08-19, 2020-08-21 signatures=0 Subject: [dpdk-dev] [PATCH] net/octeontx2: set max vtag insertion size 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: Kiran Kumar K When TX side VTAG insertion is enabled, As we are not setting the max vtag insertion size an interrupt has been received. This patch will fix the issue by configuring the max vtag insertion size to 8B. Signed-off-by: Kiran Kumar K --- drivers/net/octeontx2/otx2_tm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/octeontx2/otx2_tm.c b/drivers/net/octeontx2/otx2_tm.c index 8ed059549..b76242a60 100644 --- a/drivers/net/octeontx2/otx2_tm.c +++ b/drivers/net/octeontx2/otx2_tm.c @@ -560,8 +560,9 @@ populate_tm_reg(struct otx2_eth_dev *dev, * smaller */ reg[k] = NIX_AF_SMQX_CFG(schq); - regval[k] = BIT_ULL(50) | NIX_MIN_HW_FRS; - regval_mask[k] = ~(BIT_ULL(50) | 0x7f); + regval[k] = BIT_ULL(50) | ((uint64_t)NIX_MAX_VTAG_INS << 36) | + NIX_MIN_HW_FRS; + regval_mask[k] = ~(BIT_ULL(50) | (0x7ULL << 36) | 0x7f); k++; /* Parent and schedule conf */