From patchwork Thu Nov 30 07:58:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geetha sowjanya X-Patchwork-Id: 171764 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp220664vqy; Wed, 29 Nov 2023 23:59:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIOtQEOimOPmJU42eCiDP5urPpHFcSDUAUge2PjkZsSHZDMfSh/VYQG9nfAk3Zmi5EGCDY X-Received: by 2002:a17:90b:1a89:b0:285:93ef:115d with SMTP id ng9-20020a17090b1a8900b0028593ef115dmr29291040pjb.4.1701331147511; Wed, 29 Nov 2023 23:59:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701331147; cv=none; d=google.com; s=arc-20160816; b=I+UZUFPqnyzMifmGUO2EXJlDgamG4q3bBjqkfxGpHam/SNOjca7uPLD+9EqdtP07nw XDuXdZ8oHqM43nlXH3orQJHvvEg/s+J+bHkBRQ2Ai97zV+on1mJjV32zpPWembx/c5w+ 146HtJeRKBmeAk6cIeUxb1H2Mmi/Ofude6Rsjr5/XcR+Ux0BfmlTQkJ3r2VoxtJIGBpW RvEUTGLcW+LWiXUr3MmQJDuq94UdcIk8NKN9vLHnDHOngNBVd0fr4PYF8YUcqOFz9IS4 TqTaCcxvpJi/SOrNphIRhYG/WOtnV+9r94/7ymxbvOS0WGRM5ZfcSryVh8xYecGcJ2De vWcQ== 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=pqgT8/te6zTWsZfVion+jdpco4hDORcq6oDMHSPiFJM=; fh=HY0X0m8t22/vAHj95xREoxWh6Roau2zCUUWQKPKPfT8=; b=DTGoe4etXnUfVVnqU2IVrEKQ9JeeFwTyPTpwWgZYZWOi5xdeezUiKXlKIXx49JKH1h SKTWVEegIrnRyyBlTX+OFCU9i5tm1FcBkvbn/Qf2E9uz6kqEpAVuVNthUIoI1jWo/agT HVdoYdlFAzL9f/osvSuBuY5LT2S4EBiBiAlsMwxSAfb8sY8KOomMylNjpaw5s9FVUONZ CCjJbVm5PBbHNblxz9Q8HncOpB35AMleUUi9FnKTuuCiXELwC5tMzANQ5eV59o+toxtq s//vvB0AQ8e7myjQl6VpRl/7aNREwACfAyoilyP1cfEiV/kF3css7Gm8rlkDWwYpaZbQ /drw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=CqeTgPiH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id f12-20020a17090ab94c00b0028513871956si812408pjw.73.2023.11.29.23.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 23:59:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=CqeTgPiH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 0CBD480C9223; Wed, 29 Nov 2023 23:59:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231728AbjK3H6y (ORCPT + 99 others); Thu, 30 Nov 2023 02:58:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344820AbjK3H6p (ORCPT ); Thu, 30 Nov 2023 02:58:45 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 024411709; Wed, 29 Nov 2023 23:58:46 -0800 (PST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AU78Xpd027659; Wed, 29 Nov 2023 23:58:41 -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=pqgT8/te6zTWsZfVion+jdpco4hDORcq6oDMHSPiFJM=; b=CqeTgPiH+k9H6NAt9s+j7RmOHK8Ll/+sZC+mgtp3iR5WfTKQCtSQgR3EqyaWLU4jlOTQ LDDG3e9Ju0kDjdxayJkWqSi/FlYGWl+x2LLuezMAJaem0+1aoxrAgnUaozmtoKP138Qk fWUPLbR+Mz6HVQX6vc9HM7APe51kGcsBvdrMuwCMJbaHaFZl+hzUx4oIfA8UJafFDM15 4/foMoCP9alMrBc/altmtXNapuPkQuFqogd8VrR/lwla8FKOrhJJzOU+QIzSZdTYB9o+ L0jUEKDkzIa3ipsKrbsy9quU+GcAPCY1EDAlXEXRpon17ioBJ7OtNQECiMzh3YRTGTjl Sg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3upc1v2j09-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 29 Nov 2023 23:58:41 -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, 29 Nov 2023 23:58:40 -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, 29 Nov 2023 23:58:40 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 5D4323F7044; Wed, 29 Nov 2023 23:58:36 -0800 (PST) From: Geetha sowjanya To: , CC: , , , , , , , , , Subject: [net v3 PATCH 4/5] octeontx2-af: Add missing mcs flr handler call Date: Thu, 30 Nov 2023 13:28:17 +0530 Message-ID: <20231130075818.18401-5-gakula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231130075818.18401-1-gakula@marvell.com> References: <20231130075818.18401-1-gakula@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: 1AGVGIdDU1rdU7UcRjgOsLd9DqTx9lqP X-Proofpoint-ORIG-GUID: 1AGVGIdDU1rdU7UcRjgOsLd9DqTx9lqP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-30_05,2023-11-29_01,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 29 Nov 2023 23:59:04 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783975009209558028 X-GMAIL-MSGID: 1783975009209558028 If mcs resources are attached to PF/VF. These resources need to be freed on FLR. This patch add missing mcs flr call on PF FLR. Fixes: bd69476e86fc ("octeontx2-af: cn10k: mcs: Install a default TCAM for normal traffic") Signed-off-by: Geetha sowjanya Reviewed-by: Wojciech Drewek Reviewed-by: Simon Horman --- v2-v3: Fixed typo error in commit message. drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu.c index 22c395c7d040..731bb82b577c 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu.c @@ -2631,6 +2631,9 @@ static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc) rvu_npc_free_mcam_entries(rvu, pcifunc, -1); rvu_mac_reset(rvu, pcifunc); + if (rvu->mcs_blk_cnt) + rvu_mcs_flr_handler(rvu, pcifunc); + mutex_unlock(&rvu->flr_lock); }