From patchwork Fri Mar 3 08:10:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 124772 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 05CA841DC3; Fri, 3 Mar 2023 09:12:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4479742D3E; Fri, 3 Mar 2023 09:11:37 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 8CF5042D3E for ; Fri, 3 Mar 2023 09:11:35 +0100 (CET) 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 3234WuWa024918 for ; Fri, 3 Mar 2023 00:11:35 -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-transfer-encoding : content-type; s=pfpt0220; bh=XGGUBgtLqp4nwWoug4efo/Eh8UCvrGxXsW5OPrxhh+s=; b=lF5/Gphy9rA4nA9NG+t1nDgWTxKsNHL8zwT48UBzxZAYSjhcaCQpErkTy2CFDB+ZTpv1 Ao1xFY7nOV0GasJxDwZftktgHxHwaigTq2pF3HkVf3CWPz3s+13mjlZL9BDXvJT10nR/ ZYrlGW9rRkp596h9LFIbUTVln7Yu+eD1ZscWTE7pIAYLSR/5EkM1bFhR89lAlVaoAB0s PKm6V+dfnNfM1esOasym4lqJYo57kSZ0OrNEpHmSKuo1/8xO1QoqKnTrT/FoYjnGrniS MMcxkieZRIjyMJ0LLkat7Y8053744xxy30ta3akjhDs0Krn9YFOSItx2b0KnopTfqjBR Iw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3p1wr9xbm9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 03 Mar 2023 00:11:34 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 3 Mar 2023 00:11:32 -0800 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.42 via Frontend Transport; Fri, 3 Mar 2023 00:11:32 -0800 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 09F6E5B6959; Fri, 3 Mar 2023 00:11:26 -0800 (PST) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , , Veerasenareddy Burru Subject: [PATCH 15/15] common/cnxk: enable SDP channel backpressure to TL4 Date: Fri, 3 Mar 2023 13:40:13 +0530 Message-ID: <20230303081013.589868-15-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230303081013.589868-1-ndabilpuram@marvell.com> References: <20230303081013.589868-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 7CtfbcL8Tg8o_YYtze3ZWqimjoRlijNt X-Proofpoint-GUID: 7CtfbcL8Tg8o_YYtze3ZWqimjoRlijNt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-03_01,2023-03-02_02,2023-02-09_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Veerasenareddy Burru Configure TL4 to respond to SDP channel backpressure. Signed-off-by: Veerasenareddy Burru --- drivers/common/cnxk/roc_nix_tm_utils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/common/cnxk/roc_nix_tm_utils.c b/drivers/common/cnxk/roc_nix_tm_utils.c index a7ba2bf027..5864833109 100644 --- a/drivers/common/cnxk/roc_nix_tm_utils.c +++ b/drivers/common/cnxk/roc_nix_tm_utils.c @@ -582,8 +582,12 @@ nix_tm_topology_reg_prep(struct nix *nix, struct nix_tm_node *node, /* Configure TL4 to send to SDP channel instead of CGX/LBK */ if (nix->sdp_link) { + plt_tm_dbg("relchan=%u schq=%u tx_chan_cnt=%u\n", relchan, schq, + nix->tx_chan_cnt); reg[k] = NIX_AF_TL4X_SDP_LINK_CFG(schq); regval[k] = BIT_ULL(12); + regval[k] |= BIT_ULL(13); + regval[k] |= relchan; k++; } break;