Message ID | 20230426074345.750135-4-saikrishnag@marvell.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp73466vqo; Wed, 26 Apr 2023 00:57:14 -0700 (PDT) X-Google-Smtp-Source: AKy350aw8w82f6IEipEfedXT3AyX7rsS03QvzWziCbGdqECD6lAlU9ju2ueX0q+iL6DZqv+WLQcx X-Received: by 2002:a17:902:ea07:b0:1a9:7707:80c7 with SMTP id s7-20020a170902ea0700b001a9770780c7mr12001495plg.32.1682495834426; Wed, 26 Apr 2023 00:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682495834; cv=none; d=google.com; s=arc-20160816; b=c9fQ3SC7Oom36A+JMJG7rCPWTz6MS34sa0b0aacBa3nqSsbNIsUxFRuc42phz57Arg fKTha/QJr1fMHBMakaBgR3Mv4xCzqYGZPavhTyIal7hwvQ85YdQhPWycLdTZVI3YYcG3 STMV3G6JQjWKzxh4GGFpfs1qLmdnFh0zhvd0bS+88MZX717VxOozRZPh5Hu9p+mBcRPa l6hb8d7b1Kjm5k6LdJKGctRLv1kT3W6ASVKJA+a34BNLORGN9tij9JhSrLv359YJPZ0G YTeoM+nFgNKyxo7SHAvUeq9DFl8xvR72h26y72wLANiuQEomGzIK3olmleUs8url3dJs FBxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oeASTIACqjLqjgo40S/3synelPRRKm5Hez+ARr3FyuI=; b=D/GSHRJ5ph4FX6iSDJ/Bib19d927l+eRNSu0+9+NYOq3W+5xMdc9Z2I5+5EvYsb0/Z nDzqQGggo0gCp+upcxtV2hxL87oCy2GTMy3aReBfxk2kgtWEm5CyPZ+0CU9XQM48uCCF CWpYwvI2rkQY6xHGKcV5JMc1MGT4Lz6HnKlIEbWeUtEiTf7JBb1R4d9ULGmD+TozcbPs QGuYWyahWVEJ3wREZhR0PfiFvxaHCJ+RAiZG3mOSzTOJwC/p112CH+xo3JExinYHnoSe vXDy5N9YdONd4K6bdNY3mVbWUnUM5YhnGiXhwBl6DjI7IdK846aYllRtslU/ymXZBiN7 lk7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=BK5lVq3w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a170902e95000b001a93e74c8b6si14760312pll.595.2023.04.26.00.56.58; Wed, 26 Apr 2023 00:57:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=BK5lVq3w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240059AbjDZHop (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Wed, 26 Apr 2023 03:44:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240051AbjDZHob (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Apr 2023 03:44:31 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F9C144A3; Wed, 26 Apr 2023 00:44:17 -0700 (PDT) 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 33Q6rMgL001960; Wed, 26 Apr 2023 00:44:09 -0700 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-transfer-encoding : content-type; s=pfpt0220; bh=oeASTIACqjLqjgo40S/3synelPRRKm5Hez+ARr3FyuI=; b=BK5lVq3wHhT4NP9KvHF4LdhUlj9KQBaRT4SAQG9y/CpSiwjfdNCIcIqtFpOBub43jr89 4FDbjjEKu/oRHXxpsGwcrYSt7NW5GQq0mTm8nDxsRxOj9MXQHNnDKeJzYkdyeFv2lNVq WQd4lj1ifEIIZ3cMZuQj39NLQdzFuD6roeyfEKKeXSjDUjxkdnaPz7N0GnalAb1R4ICX zhXgEdVeqiv+DOPqFEZqvL9Ut/qwD6Am8LPMVWGw+6lUtl0BKuAOGfTqBR7xoSDbUMr/ BWllfLfKvHk2bGN+GKboRB2dtm+PIoxLKJWklx6MPh0vcHA9cBc6Vh90VbVwKkeOzB/V XQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3q4f3pdm8p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 26 Apr 2023 00:44:09 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 26 Apr 2023 00:44:07 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 26 Apr 2023 00:44:07 -0700 Received: from hyd1425.marvell.com (unknown [10.29.37.83]) by maili.marvell.com (Postfix) with ESMTP id 8F0C95B693A; Wed, 26 Apr 2023 00:44:02 -0700 (PDT) From: Sai Krishna <saikrishnag@marvell.com> To: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <simon.horman@corigine.com>, <leon@kernel.org>, <sgoutham@marvell.com>, <gakula@marvell.com>, <lcherian@marvell.com>, <jerinj@marvell.com>, <hkelam@marvell.com>, <sbhatta@marvell.com> CC: Ratheesh Kannoth <rkannoth@marvell.com>, Sai Krishna <saikrishnag@marvell.com> Subject: [net PATCH v4 03/10] octeontx2-af: Fix depth of cam and mem table. Date: Wed, 26 Apr 2023 13:13:38 +0530 Message-ID: <20230426074345.750135-4-saikrishnag@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230426074345.750135-1-saikrishnag@marvell.com> References: <20230426074345.750135-1-saikrishnag@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: UN1FoLhxF_AhTSUDX0VRye8CBweSb5EC X-Proofpoint-GUID: UN1FoLhxF_AhTSUDX0VRye8CBweSb5EC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-26_02,2023-04-26_01,2023-02-09_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764224752024845103?= X-GMAIL-MSGID: =?utf-8?q?1764224752024845103?= |
Series |
octeontx2: Miscellaneous fixes
|
|
Commit Message
Sai Krishna Gajula
April 26, 2023, 7:43 a.m. UTC
From: Ratheesh Kannoth <rkannoth@marvell.com> In current driver, NPC cam and mem table sizes are read from wrong register offset. This patch fixes the register offset so that correct values are populated on read. Fixes: b747923afff8 ("octeontx2-af: Exact match support") Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com> Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com> Signed-off-by: Sai Krishna <saikrishnag@marvell.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> --- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c index 20ebb9c95c73..6597af84aa36 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c @@ -1868,9 +1868,9 @@ int rvu_npc_exact_init(struct rvu *rvu) rvu->hw->table = table; /* Read table size, ways and depth */ - table->mem_table.depth = FIELD_GET(GENMASK_ULL(31, 24), npc_const3); table->mem_table.ways = FIELD_GET(GENMASK_ULL(19, 16), npc_const3); - table->cam_table.depth = FIELD_GET(GENMASK_ULL(15, 0), npc_const3); + table->mem_table.depth = FIELD_GET(GENMASK_ULL(15, 0), npc_const3); + table->cam_table.depth = FIELD_GET(GENMASK_ULL(31, 24), npc_const3); dev_dbg(rvu->dev, "%s: NPC exact match 4way_2k table(ways=%d, depth=%d)\n", __func__, table->mem_table.ways, table->cam_table.depth);