From patchwork Mon Jun 24 10:36:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Ghosh X-Patchwork-Id: 13709306 X-Patchwork-Delegate: kuba@kernel.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35A4B3BBF2; Mon, 24 Jun 2024 10:37:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.148.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225432; cv=none; b=td/EHTbbs8WzqYYNaTylIha8U9UfqcEz7v2bFEkfDhGIpV1Pb19Vq9DMc85SN2+4eLAfZaOuYyxm58Z7AlzMQstC00b0VjlhQjeJfIXqzTr9FjUA9SIpiLCGHYHaZgqA5JBXgdYJUkg4k8reRxzCTf80+vgV7RbZGKlAu7cLYk8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225432; c=relaxed/simple; bh=dWonAnvgXCYpLpYCeBBTIvXq7be3HkLYcFljvNuk9Yg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=W0eJfImOXB9e1s5ZwFrqXucbHN1BVtzYCQuZ7pnbJZei1MuJcG7o2RwfNHlsSdWVRaYGRchrHEV3vh0rVoYcx3cahOJYLB7OMERBrJb98lO3VzesZOAO5NjLl6JJMNSqVnLNopWa5DumFyyPxEssYbxpgN+9iEyRr+ONe0UqsBA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=MSrhT3SD; arc=none smtp.client-ip=67.231.148.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="MSrhT3SD" Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45OARDOH022070; Mon, 24 Jun 2024 03:37:05 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=3 bIfCbASG1LP1A6v2Sierwpo8X5f6bT24LBRJqjJvNY=; b=MSrhT3SDsJ0qwUoYT zgzchhiWWCs/UZzNbL+5ptXBuBjLCzNP1HH9nPYThq1w9FoqeWsmVdrETEgJfhz9 vbiPEG4Mh11ngA+19ggQKJM7njV7v4bjwYAfwEBkbe8O7NkYDiI8RsAA3ILUyCKT m9exwgX8ELJT+zeO5uo57H/W3v3uYLtf/NaYeXGECJkfZ0rvw+mRrw2MIaL2vHxr elFnprSkS5K8rZ5X3EL49PdLtzL5seSSJjJp5rpkYW3/KqKm3w0D1nmWleKBLjoI Z+WBnxynrpcJmJHtvFLZdrRAyi0iMjYhgSITPTBeBImcC/69FgRF1Dd2+wSrGh5V x8z/A== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3yy72f00t9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2024 03:37:05 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 24 Jun 2024 03:36:50 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Mon, 24 Jun 2024 03:36:50 -0700 Received: from localhost.localdomain (unknown [10.28.36.166]) by maili.marvell.com (Postfix) with ESMTP id CC74B3F7077; Mon, 24 Jun 2024 03:36:46 -0700 (PDT) From: Suman Ghosh To: , , , , , , , , , , , , CC: Suman Ghosh Subject: [net PATCH 1/7] octeontx2-af: Fix klockwork issue in cgx.c Date: Mon, 24 Jun 2024 16:06:32 +0530 Message-ID: <20240624103638.2087821-2-sumang@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240624103638.2087821-1-sumang@marvell.com> References: <20240624103638.2087821-1-sumang@marvell.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 6N1JiL5l4et0rZBrz5VuOJtguHhplLDC X-Proofpoint-GUID: 6N1JiL5l4et0rZBrz5VuOJtguHhplLDC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-24_09,2024-06-24_01,2024-05-17_01 X-Patchwork-Delegate: kuba@kernel.org Fix minor klockwork issue in CGX. These are not real issues but sanity checks. Fixes: 96be2e0da85e ("octeontx2-af: Support for MAC address filters in CGX") Signed-off-by: Suman Ghosh --- drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c index 27935c54b91b..af42a6d23e53 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c @@ -465,6 +465,13 @@ u64 cgx_lmac_addr_get(u8 cgx_id, u8 lmac_id) u64 cfg; int id; + if (!cgx_dev) + return 0; + + lmac = lmac_pdata(lmac_id, cgx_dev); + if (!lmac) + return 0; + mac_ops = cgx_dev->mac_ops; id = get_sequence_id_of_lmac(cgx_dev, lmac_id); @@ -1648,7 +1655,7 @@ unsigned long cgx_get_lmac_bmap(void *cgxd) static int cgx_lmac_init(struct cgx *cgx) { struct lmac *lmac; - u64 lmac_list; + u64 lmac_list = 0; int i, err; /* lmac_list specifies which lmacs are enabled From patchwork Mon Jun 24 10:36:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Ghosh X-Patchwork-Id: 13709307 X-Patchwork-Delegate: kuba@kernel.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 041EA1369A3; Mon, 24 Jun 2024 10:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.148.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225433; cv=none; b=KG/BTsVHKwMrhE40PWSIM79QJO530iLgIPlwKFczTxsaw2PY8Z5Ix6D0yyDSWZP2Fv9OO7W9P5+lsMtu+PfadrnAMYYB0otxF8uEJbmRP2Cku1S93RXNK9/ma/Vsll7WrjO8nMxdST5JNQC/Kjv5HAA9Y/8ICVkzJwEK4Y/Ea3E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225433; c=relaxed/simple; bh=MwR2+x33tL23zCDtW1vXkjUKW66d5cZi7iJ5mbn+RTc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nvoGaY/Hm+36f30nPtHDAR3mURMP+XwWI8Np2ROVHJrNuqhRDmgN17vlqN9YGKz6zockK5Rnqw5qLJZh6hMEJXN5QvbBEVdwD750Tzu3V2zu09mkKCL4bOkJCWLfBep0kt5wZnQCDc1m2tuWShY14bvIvENF3FJ2bZnHaD/GaAs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=EUfPdL6u; arc=none smtp.client-ip=67.231.148.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="EUfPdL6u" Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45OARDOI022070; Mon, 24 Jun 2024 03:37:06 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=s 3jdL6UcGGq24YBU3TnKztOmwHWjNtaB4Og6RDixtc4=; b=EUfPdL6uGRgPdNEkv 8MBYtnLwNuy+rOvPF/dEwJ8mRgbmlHmU4x3WctJTcQvvlmGLaCpF1htxGnt9PcJX 3o1SwkGuOa4WXObLzPaU0l0CIy/oGUVEbodAznj4UMUO6MGfA4JfJHwr7U7n1Vfh /QtU/RjZoo56jG9gK7mNh4K3cgMyThpbIS7rX+UUWFzNZmzFGBUaP7WQPP8zGkyR 9LqY1FcAMLftmqX3lR/Xn2b/aRX+jswnv0EoYTzC8iMWO6N4lsungUJKOdXCf4JI Np8JwFALeBX08cfQHPu7llOUtMgIAEjvK8WaRlj7QC4M65wIMzBOJuRBPu6ifM21 Hp+mw== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3yy72f00t9-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2024 03:37:06 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 24 Jun 2024 03:36:56 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Mon, 24 Jun 2024 03:36:56 -0700 Received: from localhost.localdomain (unknown [10.28.36.166]) by maili.marvell.com (Postfix) with ESMTP id 241883F7077; Mon, 24 Jun 2024 03:36:51 -0700 (PDT) From: Suman Ghosh To: , , , , , , , , , , , , CC: Suman Ghosh Subject: [net PATCH 2/7] octeontx2-af: Fix klockwork issues in mcs_rvu_if.c Date: Mon, 24 Jun 2024 16:06:33 +0530 Message-ID: <20240624103638.2087821-3-sumang@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240624103638.2087821-1-sumang@marvell.com> References: <20240624103638.2087821-1-sumang@marvell.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: ZnVZQ2Q5mY4ZHJmVbgTz7SmFw5vD1teC X-Proofpoint-GUID: ZnVZQ2Q5mY4ZHJmVbgTz7SmFw5vD1teC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-24_09,2024-06-24_01,2024-05-17_01 X-Patchwork-Delegate: kuba@kernel.org These are not real issues but sanity checks. Fixes: cfc14181d497 ("octeontx2-af: cn10k: mcs: Manage the MCS block hardware resources") Signed-off-by: Suman Ghosh --- drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c b/drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c index d39d86e694cc..de4482dee86a 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c @@ -681,7 +681,7 @@ int rvu_mbox_handler_mcs_alloc_resources(struct rvu *rvu, u16 pcifunc = req->hdr.pcifunc; struct mcs_rsrc_map *map; struct mcs *mcs; - int rsrc_id, i; + int rsrc_id = -EINVAL, i; if (req->mcs_id >= rvu->mcs_blk_cnt) return MCS_AF_ERR_INVALID_MCSID; @@ -742,6 +742,8 @@ int rvu_mbox_handler_mcs_alloc_resources(struct rvu *rvu, rsp->rsrc_cnt++; } break; + default: + goto exit; } rsp->rsrc_type = req->rsrc_type; @@ -854,7 +856,7 @@ int rvu_mbox_handler_mcs_ctrl_pkt_rule_write(struct rvu *rvu, static void rvu_mcs_set_lmac_bmap(struct rvu *rvu) { struct mcs *mcs = mcs_get_pdata(0); - unsigned long lmac_bmap; + unsigned long lmac_bmap = 0; int cgx, lmac, port; for (port = 0; port < mcs->hw->lmac_cnt; port++) { From patchwork Mon Jun 24 10:36:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Ghosh X-Patchwork-Id: 13709309 X-Patchwork-Delegate: kuba@kernel.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C960136E35; Mon, 24 Jun 2024 10:37:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.148.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225435; cv=none; b=fXy5Kn5Oz+7AHNoonw0bhEmUJUTPAqFyJQtNxLnwnxH4xlssEB2h+HTFDerXSothvnEVAJrW0aFWhaEvaPefMV0mUDMl6WybTATsUjidTG1E7w4OEbnBvRrt7MPbTF3qNTfE//SG5pBZJRXgQSoA0ddQxVfd4JJMdNDUKkZnMDE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225435; c=relaxed/simple; bh=VseqJN/+YdX7EdXXy1Ak04b+vfdfThAK+wj/JCzqAxo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=R/aPB9xh2xONjVDQF7RmRkPeK7KWmDFxOU+zf4XljmBlh55mk+QXMeATifhhI3qc+2Ohl5/QZcfOFYi5u5S32kZ3szLySv9Gm9twIB0zWpC+MQkfW/1VsnjwaX5h2MErbwyFqrKkMkNpXVm/H2CQzpYTU0MznBtXQAy6jJuSaLk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=YhPnSIi/; arc=none smtp.client-ip=67.231.148.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="YhPnSIi/" Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45OARDOL022070; Mon, 24 Jun 2024 03:37:06 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=O fKMT+Bn5yvlbkiCLAGLB6E7YPRyUwiInDbp8hNGoxE=; b=YhPnSIi/2CvVixBrH EdOHds1AVUXo2k3pBDB1SMDvs12M9hJbEeC7GiQZT92u/Pp2okVwC+6N7LAg3M7a tHT83BSD9iNbWK5/FipSZ3eN7/z0ZLLmHzJLihk62zzgQkD3qepgifTE8e8Q2NXI QxBNVD6L3IVr1OLtXxta/Q1behPib7Ek6ONy49DwOZblNQl9tIvl5t+gVUGor06X 7LbRHO8AP2QARZO9ko2CNLQN61O2uyKJMzK8lLQA3+I8vhurpPkWVXKIMWDyEd7f M4kx1CI+dPhVzGrn/qWG//lelhfc3EdGA0qR7f8Z39LWbcgl/J8EiihSESngizOT 3TdTQ== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3yy72f00t9-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2024 03:37:06 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 24 Jun 2024 03:37:01 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Mon, 24 Jun 2024 03:37:01 -0700 Received: from localhost.localdomain (unknown [10.28.36.166]) by maili.marvell.com (Postfix) with ESMTP id 6CF403F7079; Mon, 24 Jun 2024 03:36:57 -0700 (PDT) From: Suman Ghosh To: , , , , , , , , , , , , CC: Suman Ghosh Subject: [net PATCH 3/7] octeontx2-af: Fixes klockwork issues in ptp.c Date: Mon, 24 Jun 2024 16:06:34 +0530 Message-ID: <20240624103638.2087821-4-sumang@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240624103638.2087821-1-sumang@marvell.com> References: <20240624103638.2087821-1-sumang@marvell.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: mCVELWh2cEvpjboF5NmMt2J5bVloUA95 X-Proofpoint-GUID: mCVELWh2cEvpjboF5NmMt2J5bVloUA95 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-24_09,2024-06-24_01,2024-05-17_01 X-Patchwork-Delegate: kuba@kernel.org These are not real issues but sanity checks. Fixes: 4086f2a06a35 ("octeontx2-af: Add support for Marvell PTP coprocessor") Signed-off-by: Suman Ghosh --- drivers/net/ethernet/marvell/octeontx2/af/ptp.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/ptp.c b/drivers/net/ethernet/marvell/octeontx2/af/ptp.c index bcc96eed2481..0be5d22d213b 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/ptp.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/ptp.c @@ -517,6 +517,7 @@ static int ptp_pps_on(struct ptp *ptp, int on, u64 period) static int ptp_probe(struct pci_dev *pdev, const struct pci_device_id *ent) { + void __iomem * const *base; struct ptp *ptp; int err; @@ -536,7 +537,15 @@ static int ptp_probe(struct pci_dev *pdev, if (err) goto error_free; - ptp->reg_base = pcim_iomap_table(pdev)[PCI_PTP_BAR_NO]; + base = pcim_iomap_table(pdev); + if (!base) + goto error_free; + + ptp->reg_base = base[PCI_PTP_BAR_NO]; + if (!ptp->reg_base) { + err = -ENODEV; + goto error_free; + } pci_set_drvdata(pdev, ptp); if (!first_ptp_block) From patchwork Mon Jun 24 10:36:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Ghosh X-Patchwork-Id: 13709308 X-Patchwork-Delegate: kuba@kernel.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C9A0136E37; Mon, 24 Jun 2024 10:37:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.148.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225434; cv=none; b=X3FQkSFxdKm4OUoVB34lenWE6i27f3ws9Llt7aGUauV+TvHZ9a3EbA1fyNs7A0W0z9fRNfNt9c1zH0szh/NnMHit9WS2uUOB/x4ren8aNyYaD+qU99OivtIOpm0KLsFlQiA5nw2PY+xUzMJZXFtVeUnknmZgg/lvcs+2ZlFkFqI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225434; c=relaxed/simple; bh=dQcdSlxpKLY+y897vmkaShCjcvUMY+dpA0tM7AdUIRo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qAVhpb7069fyWF3T6xp1gqsbwvjGvhV6nW6hTCBcCLbbi5Ry+rVRKGBy9py66bguLZtmXzX7CBpZPxjZzp0hK9ZXTbCg0ib8btTipndLaq0jjyXlxwwThvcTdvlQKJGSvakP3V6JnL+DYEolza/jh4Ovg7550SBHix9ZoG1ghLg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=XlJoRFfR; arc=none smtp.client-ip=67.231.148.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="XlJoRFfR" Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45OARFoU022085; Mon, 24 Jun 2024 03:37:08 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=g AdVWYQGoDIqNPsUw4kGFc4CtLjDM/XRaOmB73haOw4=; b=XlJoRFfRaagsfowgs bQCRt+Q81TF77i6n627/uaOI2gy4/CrFvCAiJVAtpAV1WZBkwo3vpbXQEvUfsSK5 cxRb8y6ujVnJEEuUB+E1BjmEa8RhQ0cw1DgHlKP70qw86LKLeqPfP+2zn6AFX8Dl oZFOnRxL6J8g1l7tmtntlcmsg03ejPHqWDdF3WcuTXZgVWgpQCqgL8PivUMhE1i3 aOHEzeP0g0LJyAkPyvF0Zw6dO+Zy89vRSzFUTuj4lItie9UH9WIenZBda9RJgNon LLCh4xVM5JzXEJ7SeUUdiee6qjgDzJ7e649JZDiJ87s9vorlqZK/VhE/3pf6QtHH PM7Mw== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3yy72f00t8-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2024 03:37:07 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 24 Jun 2024 03:37:07 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Mon, 24 Jun 2024 03:37:07 -0700 Received: from localhost.localdomain (unknown [10.28.36.166]) by maili.marvell.com (Postfix) with ESMTP id C2ED33F7079; Mon, 24 Jun 2024 03:37:02 -0700 (PDT) From: Suman Ghosh To: , , , , , , , , , , , , CC: Suman Ghosh Subject: [net PATCH 4/7] octeontx2-af: Fixes klockwork issues in rvu_cpt.c Date: Mon, 24 Jun 2024 16:06:35 +0530 Message-ID: <20240624103638.2087821-5-sumang@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240624103638.2087821-1-sumang@marvell.com> References: <20240624103638.2087821-1-sumang@marvell.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 1ZIU5weHXxWyGv8ZtgL1lZuO2ZE9bxma X-Proofpoint-GUID: 1ZIU5weHXxWyGv8ZtgL1lZuO2ZE9bxma X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-24_09,2024-06-24_01,2024-05-17_01 X-Patchwork-Delegate: kuba@kernel.org These are not real issues but sanity checks. Fixes: 4826090719d4 ("octeontx2-af: Enable CPT HW interrupts") Signed-off-by: Suman Ghosh --- drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c index f047185f38e0..a1a919fcda47 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c @@ -43,7 +43,7 @@ static irqreturn_t cpt_af_flt_intr_handler(int vec, void *ptr) struct rvu *rvu = block->rvu; int blkaddr = block->addr; u64 reg, val; - int i, eng; + int i, eng = 0; u8 grp; reg = rvu_read64(rvu, blkaddr, CPT_AF_FLTX_INT(vec)); From patchwork Mon Jun 24 10:36:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Ghosh X-Patchwork-Id: 13709310 X-Patchwork-Delegate: kuba@kernel.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 088C51369A3; Mon, 24 Jun 2024 10:37:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.148.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225440; cv=none; b=jTisXDUJ5QUYOZJW3KFaZeYlBui1L3PsZp4q23fQry4ehr/u+PPMP9reqYw+ZRhK4cRAQ54nqXM/aSdTPFkVjrh76euhQrBFpVNCBamhiemgLHrk76OqJPHANadQiME33NBMq7w3rKNRX1PveRm8LgDRtkbdWtcZlyscYoJyuQw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225440; c=relaxed/simple; bh=BU7EHfPZqjUzqx9GS36jlxYiQQ5HK2PD1EaGdqFOeCM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MfN7K2XaPsWgHexiprEwj0Jagryc+gAQkgTN2W7Y4A40dXp+JQqh5E+VNqS2ds4tgxj07fwLU7EMNELaxCdDvU/IXYFHRyQKr8VAQIBaG4nIIRiH8MS0UryUhfOQe0Bnz4C3XHogkP0XsG96AeWesiZLZk+Kb3Y4ucAbUXZF+oQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=gKlAFkQ9; arc=none smtp.client-ip=67.231.148.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="gKlAFkQ9" Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45OARoRJ022321; Mon, 24 Jun 2024 03:37:13 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=x MUJ9tF5v/6qsmLgkWE2hD0Gxixbovk7y/3ORqapGo8=; b=gKlAFkQ9nKhvylbny xFZnDeYUqULN0CVzkG4MXsDjH9+JLeBZfF7ZF21bQNvyszDO6cQsbZi5i81XNyCm XcvdNuPSU1/bpa/G6CYI2qZaceCWUDfxVz8HS2WPAzqgQy+n6gzp5ImvSK/SvmKP ghm6L8d8/MS2rX8KSuFHiD85Kv52rTbpnS7JcJtOk/Vr+SxBVOBsUktf+3LyY+EY ms2I1M5NO44Mn2+IyF/wu0q7nBJ+o54QN0BDBKMoLPA2mm5P71te66r0948eUshp PEjymmQ8pwNIXggfIQvF0osLMeEb9UlxCm0R74jl8IO31TwwSnpge2ZzhFCpEcxo 0FByA== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3yy72f00uk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2024 03:37:13 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 24 Jun 2024 03:37:12 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Mon, 24 Jun 2024 03:37:12 -0700 Received: from localhost.localdomain (unknown [10.28.36.166]) by maili.marvell.com (Postfix) with ESMTP id 175243F7077; Mon, 24 Jun 2024 03:37:07 -0700 (PDT) From: Suman Ghosh To: , , , , , , , , , , , , CC: Suman Ghosh Subject: [net PATCH 5/7] octeontx2-af: Fixes klockwork issues in rvu_debugfs.c Date: Mon, 24 Jun 2024 16:06:36 +0530 Message-ID: <20240624103638.2087821-6-sumang@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240624103638.2087821-1-sumang@marvell.com> References: <20240624103638.2087821-1-sumang@marvell.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: SCStz2mjBsbiIpY9sx2aNuPwvswI0P56 X-Proofpoint-GUID: SCStz2mjBsbiIpY9sx2aNuPwvswI0P56 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-24_09,2024-06-24_01,2024-05-17_01 X-Patchwork-Delegate: kuba@kernel.org These are not real issues but sanity checks. Fixes: d06c2aba5163 ("octeontx2-af: cn10k: mcs: Add debugfs support") Signed-off-by: Suman Ghosh --- drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c index 881d704644fb..292eead7be46 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c @@ -518,13 +518,17 @@ RVU_DEBUG_SEQ_FOPS(mcs_rx_secy_stats, mcs_rx_secy_stats_display, NULL); static void rvu_dbg_mcs_init(struct rvu *rvu) { + char *dname = NULL; struct mcs *mcs; - char dname[10]; int i; if (!rvu->mcs_blk_cnt) return; + dname = kmalloc_array(rvu->mcs_blk_cnt, sizeof(char), GFP_KERNEL); + if (!dname) + return; + rvu->rvu_dbg.mcs_root = debugfs_create_dir("mcs", rvu->rvu_dbg.root); for (i = 0; i < rvu->mcs_blk_cnt; i++) { @@ -568,6 +572,8 @@ static void rvu_dbg_mcs_init(struct rvu *rvu) debugfs_create_file("port", 0600, rvu->rvu_dbg.mcs_tx, mcs, &rvu_dbg_mcs_tx_port_stats_fops); } + + kfree(dname); } #define LMT_MAPTBL_ENTRY_SIZE 16 From patchwork Mon Jun 24 10:36:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Ghosh X-Patchwork-Id: 13709311 X-Patchwork-Delegate: kuba@kernel.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80FCB137742; Mon, 24 Jun 2024 10:37:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.148.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225445; cv=none; b=NrsOT+CB/oWTbsD8GzmuYazJvZq+A5i1qoXaFHIkZaaHZ2TbslGU9MdjK5OhzDwJaxIPicytUw5dZc7jwmj+8rfzJmzWWbTedN0gl6Rgh2WaX2d4AxvTi0Qnf8UdkEAPiowHMAdhaySvUlGWBsOiq63pOBE8G9J8G6e/Je9spIE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225445; c=relaxed/simple; bh=JzOAxrvnDCro6ZKATyZ6sXjEYK2nMcJJWQc6rGq+ao0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qvoUuZRfXtil6v1BnA8lO5HIkZZLkjhfcRuH3bn63LCxpwXRLj148hWapwulYYRtUFIe5u2rxFg5ONbmuOmmblDtqqiH31PgK4xqb3MAPiJr0Z99PsaVwb5uOGtgf+l2QLGO1ugjddLkyZAdS/7S5WzTDEmPXJm5gG583qZQ+pI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=TewndWyE; arc=none smtp.client-ip=67.231.148.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="TewndWyE" Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45OARDOR022070; Mon, 24 Jun 2024 03:37:18 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=Q 6ZgSlapbPS4lQlMstbCCO/YB/W8/coa4qYjkTwj3tg=; b=TewndWyE4iVoBA253 wuOeuFm7UeTaG2xjEsbiRkg/gb18HsD4KRFQQyIjP29aThjVSe3cbf6hwjltOxy+ OZ3/UUilVxRfJWzF+6kPQngjU9bERt2p9cwapEbcJoBEc1Purto9bsqPwwtZxw8p tlU/tkFNcYsMEzHbrmCWDXeXMJ3n875tSelnwMbCeSOsS0Dmpp9p/XeNC9Lq8k38 TcHZTfBHuQEvSfrsSjIJimv3D8FZ3NIAQqDhDYkBnb1PX1bY1uLY1syNNsLEpZmc njxeh/hmeUdeS1fqJywoOl2sZSyo+n5hDUdeHVYx02hTPRvqeTn0ofe4E0qJ3LCy EOF1A== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3yy72f00us-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2024 03:37:18 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 24 Jun 2024 03:37:17 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Mon, 24 Jun 2024 03:37:17 -0700 Received: from localhost.localdomain (unknown [10.28.36.166]) by maili.marvell.com (Postfix) with ESMTP id 869083F7079; Mon, 24 Jun 2024 03:37:13 -0700 (PDT) From: Suman Ghosh To: , , , , , , , , , , , , CC: Suman Ghosh Subject: [net PATCH 6/7] octeontx2-af: Fix klockwork issue in rvu_nix.c Date: Mon, 24 Jun 2024 16:06:37 +0530 Message-ID: <20240624103638.2087821-7-sumang@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240624103638.2087821-1-sumang@marvell.com> References: <20240624103638.2087821-1-sumang@marvell.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: abERue6nrrPh4FPYqDtwR9ae7ZvTxlqz X-Proofpoint-GUID: abERue6nrrPh4FPYqDtwR9ae7ZvTxlqz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-24_09,2024-06-24_01,2024-05-17_01 X-Patchwork-Delegate: kuba@kernel.org These are not real issues but sanity checks. Fixes: 4b5a3ab17c6c ("octeontx2-af: Hardware configuration for inline IPsec") Signed-off-by: Suman Ghosh --- drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c index 00af8888e329..0c59295eaf9d 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c @@ -5375,7 +5375,7 @@ static void nix_inline_ipsec_cfg(struct rvu *rvu, struct nix_inline_ipsec_cfg *r int blkaddr) { u8 cpt_idx, cpt_blkaddr; - u64 val; + u64 val = 0; cpt_idx = (blkaddr == BLKADDR_NIX0) ? 0 : 1; if (req->enable) { From patchwork Mon Jun 24 10:36:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Ghosh X-Patchwork-Id: 13709312 X-Patchwork-Delegate: kuba@kernel.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 294D6137760; Mon, 24 Jun 2024 10:37:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.148.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225451; cv=none; b=L/3JThBwbW6LbmHyZn+9pNzTidpfkMd0Xbx+6H/gUFnKQuAAMk3OX6NPsLjStJz8tmgV2WpK0UbkTTvimJyZbqirXOlupbFTxjfAC+6n8BuK4izxsfAuI/RZTIT1xB2sV6B9Xcwmp7ioWBo1yWKcC70SLu7kz+fLdP78Lkk1jps= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719225451; c=relaxed/simple; bh=CGU1QDWJ43M2oPhIs6csvBX3BUAXD5cKzEdP97LkVCI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iNO+w7wvUukQd75W+p8JvgQY9bKVu+UvU3Scs4QzjmXOgtPwrR2HkXfkONmgL1b3rSaHYB1vEdyjjX2iOZYBdyYry0RnwRuYF2QSNBDXMisONfUXGzmUUdLXHs3Qk7YdBwbdTc86JxIr2GfZUtbeYkaZp1Gcx44Shf1JFVp0jlY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=id3bcHAx; arc=none smtp.client-ip=67.231.148.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="id3bcHAx" Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45OARoRK022321; Mon, 24 Jun 2024 03:37:24 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=9 kSPZPyYXBBKGIFp7BdKNA4qxQ5UjkS8ZofaFxdyy9w=; b=id3bcHAxABAlK6+1I TNCXRgE1MagC2xb2B3ZEbhAH4z36upMrpLQH4z5epJlji0WZTCH+MGePwJUsr8Ld LjBGNMTb7FSG1pU4MRBnFJmIcnV4sYqaP+O7NwVZokFukK1/rAPxfdS11X3Yw2UF uZgEzNkPIytpnQhPrTdcCwfYmVOM7QQmg58YWtB10V56Y6YvwiJSlVGHCuthLtld L/+hOV9NJkY10ve5JKKUa/UW4+E6cNp7/BhFMLGG/Ej5aW/Mm0liMji+7eof3g/n temdau7EUHxlpmSC1GIBs/UwXxz+GzStzBG50bYk1b5wjEDAeSeJf3M+WpiySRfO gjjvg== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3yy72f00v7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2024 03:37:24 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 24 Jun 2024 03:37:23 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Mon, 24 Jun 2024 03:37:23 -0700 Received: from localhost.localdomain (unknown [10.28.36.166]) by maili.marvell.com (Postfix) with ESMTP id EBDF73F7077; Mon, 24 Jun 2024 03:37:19 -0700 (PDT) From: Suman Ghosh To: , , , , , , , , , , , , CC: Suman Ghosh Subject: [net PATCH 7/7] octeontx2-af: Fix klockwork issue in rvu_npc.c Date: Mon, 24 Jun 2024 16:06:38 +0530 Message-ID: <20240624103638.2087821-8-sumang@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240624103638.2087821-1-sumang@marvell.com> References: <20240624103638.2087821-1-sumang@marvell.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: Fbqnz4JDvStzsYQpK6EMeXaXcwZVwmaj X-Proofpoint-GUID: Fbqnz4JDvStzsYQpK6EMeXaXcwZVwmaj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-24_09,2024-06-24_01,2024-05-17_01 X-Patchwork-Delegate: kuba@kernel.org These are not real issues but sanity checks. Fixes: 5d16250b6059 ("octeontx2-af: load NPC profile via firmware database") Signed-off-by: Suman Ghosh --- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c index 97722ce8c4cb..a69438921a8e 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c @@ -1765,6 +1765,7 @@ static void npc_load_kpu_profile(struct rvu *rvu) rvu->kpu_prfl_addr = NULL; } else { kfree(rvu->kpu_fwdata); + rvu->kpu_fwdata = NULL; } rvu->kpu_fwdata = NULL; rvu->kpu_fwdata_sz = 0;