Message ID | 20231123055941.19430-6-gakula@marvell.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp244320vqx; Wed, 22 Nov 2023 22:03:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGITWk5hJX2yrzWl9Edgot5aB27LLtwjqkF344B/kN8kZX/gxWBRzAI4HkiFrSnKIk+tEZv X-Received: by 2002:a05:6a20:7f91:b0:187:29f9:e12e with SMTP id d17-20020a056a207f9100b0018729f9e12emr2463824pzj.29.1700719437843; Wed, 22 Nov 2023 22:03:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700719437; cv=none; d=google.com; s=arc-20160816; b=iY7TpdWIR9Ca2hruJhwCWkEJnleZqyJl2Dt6qU3frsCzNSVAY08zMStCDLrDCMA8TD mubp5iuq9uciekG9horLqnDeHEb8RMehiZd/Mz65d+DX83jZKmxDM9xaNz9LK6d1s7m2 OzgjkVZ5J1y7ne9f1CsxofcIITG/HNg9DK/1nAOInKe/PU3RbJsP3wEiDmsCpOXGnu2Z UXAez/u9icpg2K2+x2sVCKzrPe+AUrhHCdXapELiDJLszVbVjxJFPexHNmK5bt+swGof c7Go6iGaXiVgxiEC+SZ5BhohNWPUSfxsIPHFo5CfZ5xXoJV8VUi2yAvx9Ea8kHXDUHYL ZCbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7LIJqeeeavxIJlfUGC585oLZh9zz+F/+//rd+x9PIUE=; fh=wPv/fmS7iNNmCH0mdUKjkT6XsNx1nMbXFeqwvq2D6q0=; b=rYOKVtiGgU8N7sO7NUFZTQaLjT84Qn7TaD0zYf6hP5u6oKRxqL4hfsTH+gT+1yQmgX dVMeGM2ORP/aUPWhx8H8wlDJmvJW55nbS9bkTH7OW2EaDBtgJCFYZeAHewwTSDUh2MEP 6bicEv2eEdHjiSg+E1ZiqZoOLq5Uv7ftQJsGEO7DYodxAd+88bSu7rdVhNQMKUlE574+ TJIHR/z2TM4BjjAw5+KVvRv/ki9PyhJoDSvJrqTmisIh3j2xyVxqecTdauZU6h7i1xf2 2JibirQyUlWKWY1sjAl5EizPOGM7av4qFYxHivE+UTZqJfUlWvNBkdH+dC2YNh/eOzwp ehGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=M9nsJaVY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z22-20020a63c056000000b005be1e55546esi694099pgi.51.2023.11.22.22.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 22:03:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=M9nsJaVY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id EB79981DA3A2; Wed, 22 Nov 2023 22:01:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344742AbjKWGBE (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Thu, 23 Nov 2023 01:01:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344741AbjKWGAs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 23 Nov 2023 01:00:48 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1F7A9A; Wed, 22 Nov 2023 22:00:54 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AN5YoMi023177; Wed, 22 Nov 2023 22:00:49 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=7LIJqeeeavxIJlfUGC585oLZh9zz+F/+//rd+x9PIUE=; b=M9nsJaVYy0FuGTD6QQQfksTdUkhG/U+l0LhF3dKeJ1FCHiIMHsyJ15BegLfyQn2xgMAo eMxBYFPPtI1adqrsK/gWc9M/K2YZYKnMihn5UoqUo6r0Phsdf2s2IcFMxrZTXk/CDgPo ZcLgA9hhjJgNFMMEU6uHX8I0kU488IQ9+flJ7q/r7IPQbuH5Ugg49jVyiRbZ/Fs6ToHP Gn8kFiRWORDpem45qm2+3FiMG4/WvYRcFmeC8xBLPKue8hiDyD2m94c1i+1Pn0PF68lu I1A+Iw0Iczfma/MK1Uk8MQ+ya63BQo4bp+ZPs/meKubFedLtHw0bwsKZPASGsnu7A9qH 6w== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uhpxn1xkc-11 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 22 Nov 2023 22:00:49 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 22 Nov 2023 22:00:05 -0800 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.48 via Frontend Transport; Wed, 22 Nov 2023 22:00:06 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 561403F708C; Wed, 22 Nov 2023 22:00:01 -0800 (PST) From: Geetha sowjanya <gakula@marvell.com> To: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <kuba@kernel.org>, <davem@davemloft.net>, <pabeni@redhat.com>, <edumazet@google.com>, <sgoutham@marvell.com>, <gakula@marvell.com>, <sbhatta@marvell.com>, <hkelam@marvell.com> Subject: [net PATCH 5/5] octeontx2-af: Update Tx link register range Date: Thu, 23 Nov 2023 11:29:41 +0530 Message-ID: <20231123055941.19430-6-gakula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231123055941.19430-1-gakula@marvell.com> References: <20231123055941.19430-1-gakula@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: OOuhbsZQ-kWSDUyPfSIj2UyNxsME2ovc X-Proofpoint-GUID: OOuhbsZQ-kWSDUyPfSIj2UyNxsME2ovc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-23_03,2023-11-22_01,2023-05-22_02 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 22:01:35 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783333585294624313 X-GMAIL-MSGID: 1783333585294624313 |
Series |
octeontx2-af: miscellaneous fixes
|
|
Commit Message
Geetha sowjanya
Nov. 23, 2023, 5:59 a.m. UTC
On new silicons the TX channels for transmit level has increased. This patch fixes the respective register offset range to configure the newly added channels. Fixes: b279bbb3314e ("octeontx2-af: NIX Tx scheduler queue config support") Signed-off-by: Rahul Bhansali <rbhansali@marvell.com> Signed-off-by: Geetha sowjanya <gakula@marvell.com> --- drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On 23.11.2023 06:59, Geetha sowjanya wrote: > On new silicons the TX channels for transmit level has increased. Will it still work with older silicon? > This patch fixes the respective register offset range to > configure the newly added channels. > > Fixes: b279bbb3314e ("octeontx2-af: NIX Tx scheduler queue config support") > Signed-off-by: Rahul Bhansali <rbhansali@marvell.com> What Rahul's signed-off stands for? > Signed-off-by: Geetha sowjanya <gakula@marvell.com> > --- > drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c > index b3150f053291..d46ac29adb96 100644 > --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c > +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c > @@ -31,8 +31,8 @@ static struct hw_reg_map txsch_reg_map[NIX_TXSCH_LVL_CNT] = { > {NIX_TXSCH_LVL_TL4, 3, 0xFFFF, {{0x0B00, 0x0B08}, {0x0B10, 0x0B18}, > {0x1200, 0x12E0} } }, > {NIX_TXSCH_LVL_TL3, 4, 0xFFFF, {{0x1000, 0x10E0}, {0x1600, 0x1608}, > - {0x1610, 0x1618}, {0x1700, 0x17B0} } }, > - {NIX_TXSCH_LVL_TL2, 2, 0xFFFF, {{0x0E00, 0x0EE0}, {0x1700, 0x17B0} } }, > + {0x1610, 0x1618}, {0x1700, 0x17C8} } }, > + {NIX_TXSCH_LVL_TL2, 2, 0xFFFF, {{0x0E00, 0x0EE0}, {0x1700, 0x17C8} } }, > {NIX_TXSCH_LVL_TL1, 1, 0xFFFF, {{0x0C00, 0x0D98} } }, > }; >
> -----Original Message----- > From: Wojciech Drewek <wojciech.drewek@intel.com> > Sent: Thursday, November 23, 2023 4:28 PM > To: Geethasowjanya Akula <gakula@marvell.com>; netdev@vger.kernel.org; > linux-kernel@vger.kernel.org > Cc: kuba@kernel.org; davem@davemloft.net; pabeni@redhat.com; > edumazet@google.com; Sunil Kovvuri Goutham <sgoutham@marvell.com>; > Subbaraya Sundeep Bhatta <sbhatta@marvell.com>; Hariprasad Kelam > <hkelam@marvell.com> > Subject: [EXT] Re: [net PATCH 5/5] octeontx2-af: Update Tx link register range > > External Email > > ---------------------------------------------------------------------- > > > On 23.11.2023 06:59, Geetha sowjanya wrote: > > On new silicons the TX channels for transmit level has increased. > > Will it still work with older silicon? Yes. This registers accessed based on number of channels supported by silicon. > > > This patch fixes the respective register offset range to configure the > > newly added channels. > > > > Fixes: b279bbb3314e ("octeontx2-af: NIX Tx scheduler queue config > > support") > > Signed-off-by: Rahul Bhansali <rbhansali@marvell.com> > > What Rahul's signed-off stands for? He is the actual author. Will fix the author name in next version. > > > Signed-off-by: Geetha sowjanya <gakula@marvell.com> > > --- > > drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c > > b/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c > > index b3150f053291..d46ac29adb96 100644 > > --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c > > +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c > > @@ -31,8 +31,8 @@ static struct hw_reg_map > txsch_reg_map[NIX_TXSCH_LVL_CNT] = { > > {NIX_TXSCH_LVL_TL4, 3, 0xFFFF, {{0x0B00, 0x0B08}, {0x0B10, > 0x0B18}, > > {0x1200, 0x12E0} } }, > > {NIX_TXSCH_LVL_TL3, 4, 0xFFFF, {{0x1000, 0x10E0}, {0x1600, 0x1608}, > > - {0x1610, 0x1618}, {0x1700, 0x17B0} } }, > > - {NIX_TXSCH_LVL_TL2, 2, 0xFFFF, {{0x0E00, 0x0EE0}, {0x1700, 0x17B0} > } }, > > + {0x1610, 0x1618}, {0x1700, 0x17C8} } }, > > + {NIX_TXSCH_LVL_TL2, 2, 0xFFFF, {{0x0E00, 0x0EE0}, {0x1700, 0x17C8} > } > > +}, > > {NIX_TXSCH_LVL_TL1, 1, 0xFFFF, {{0x0C00, 0x0D98} } }, }; > >
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c index b3150f053291..d46ac29adb96 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.c @@ -31,8 +31,8 @@ static struct hw_reg_map txsch_reg_map[NIX_TXSCH_LVL_CNT] = { {NIX_TXSCH_LVL_TL4, 3, 0xFFFF, {{0x0B00, 0x0B08}, {0x0B10, 0x0B18}, {0x1200, 0x12E0} } }, {NIX_TXSCH_LVL_TL3, 4, 0xFFFF, {{0x1000, 0x10E0}, {0x1600, 0x1608}, - {0x1610, 0x1618}, {0x1700, 0x17B0} } }, - {NIX_TXSCH_LVL_TL2, 2, 0xFFFF, {{0x0E00, 0x0EE0}, {0x1700, 0x17B0} } }, + {0x1610, 0x1618}, {0x1700, 0x17C8} } }, + {NIX_TXSCH_LVL_TL2, 2, 0xFFFF, {{0x0E00, 0x0EE0}, {0x1700, 0x17C8} } }, {NIX_TXSCH_LVL_TL1, 1, 0xFFFF, {{0x0C00, 0x0D98} } }, };