From patchwork Tue Feb 27 18:55:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harman Kalra X-Patchwork-Id: 137370 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 5CF1C43C06; Tue, 27 Feb 2024 19:55:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E151F40279; Tue, 27 Feb 2024 19:55:29 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 8B9F440150 for ; Tue, 27 Feb 2024 19:55:28 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41RFh1RL005683 for ; Tue, 27 Feb 2024 10:55:27 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:mime-version:content-type; s= pfpt0220; bh=jtv6CtA3W3ZWlidhaZhyhYADnU/bKb9Os3ePDeaOMT4=; b=Lnv 2C1GATyUVqcDN7cGLxRABDtxT55BAytafBLkJkGwu1DT74WNI6m/o9kuaCE+7oO0 VvQPBAKFIzG3UJsBGKSo/0hfA45dyxBwfPEz5EJPVzOW0raPKRelHRh2lGenOLBu yIRuayjBKeoGb/2Zyn9etuXPEbC9uSGuhIcZ/11FlB/1G3Ogkm8CNLdFfCqbuil3 z8ltn24JV78CK5s+Q4C1HL4ZiAyP7AJQXfDwyr819X80r0ZbEfZVo77cxiGwGP/p NCkyJB5Y+CtNJFVJY0E9UfOzjJCbqMReq0VTi9p4+04sJS6L8JymhuF3ltahD2Mn 8cV5kB9brC8/JLJaP/w== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3whjm691ya-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Feb 2024 10:55:27 -0800 (PST) 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.1258.12; Tue, 27 Feb 2024 10:55:26 -0800 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.1258.12 via Frontend Transport; Tue, 27 Feb 2024 10:55:26 -0800 Received: from localhost.localdomain (unknown [10.29.52.211]) by maili.marvell.com (Postfix) with ESMTP id 5B66E3F711C; Tue, 27 Feb 2024 10:55:24 -0800 (PST) From: Harman Kalra To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Harman Kalra Subject: [PATCH] common/cnxk: fix link cfg for sdp Date: Wed, 28 Feb 2024 00:25:19 +0530 Message-ID: <20240227185519.7711-1-hkalra@marvell.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: xqRAEAofwuqmEhIDGRLzoPVc1CO5Z58d X-Proofpoint-GUID: xqRAEAofwuqmEhIDGRLzoPVc1CO5Z58d X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-27_06,2024-02-27_01,2023-05-22_02 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 Link configure registers are invalid and should not be accessed for SDP ports. But while on txq release which does SQ flush calls backpressure disable API which configures these link registers. Fixes: 58debb813a8d ("common/cnxk: enable TM to listen on Rx pause frames") Signed-off-by: Harman Kalra --- drivers/common/cnxk/roc_nix_tm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/common/cnxk/roc_nix_tm.c b/drivers/common/cnxk/roc_nix_tm.c index 6a61e448a1..4e6a28f827 100644 --- a/drivers/common/cnxk/roc_nix_tm.c +++ b/drivers/common/cnxk/roc_nix_tm.c @@ -328,6 +328,9 @@ nix_tm_bp_config_set(struct roc_nix *roc_nix, uint16_t sq, uint16_t tc, uint8_t k = 0; int rc = 0, i; + if (roc_nix_is_sdp(roc_nix)) + return 0; + sq_s = nix->sqs[sq]; if (!sq_s) return -ENOENT;