From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 306AEA04AD; Tue, 8 Feb 2022 11:06:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A362A41181; Tue, 8 Feb 2022 11:05:25 +0100 (CET) Received: from smtpbgeu1.qq.com (smtpbgeu1.qq.com [52.59.177.22]) by mails.dpdk.org (Postfix) with ESMTP id 813FA41171 for ; Tue, 8 Feb 2022 11:05:24 +0100 (CET) X-QQ-mid: bizesmtp46t1644314716tu4lvnrc Received: from wxdbg.localdomain.com (unknown [183.129.236.74]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 08 Feb 2022 18:05:16 +0800 (CST) X-QQ-SSF: 01400000002000F0L000B00A0000000 X-QQ-FEAT: F3yR32iATbh31n7BjpDvQusAKLIQROcAQedxIs1+mtCpjDF8fEurVBUgfB+Hb nA5GFbGaFZFWDr05Khad490OZe5QtHIig6nEmsZInmhT/AVfwzUmsnL4BBa7PDo+DEtWZ+5 AUlnQCcSNK//zOeK44JWgEUbyO1tBhGuYqFPrszuyu8+kyu7jrBQc7dJ7e6ohZiziLQ57pg UCEartypiKrxv126di1dO13eYR/4VKuNQzfTbdNHk/a+mX4pMUVhAzePHo/tlf2mt4+1WT7 5rm3C6qDI+njRE/SgXDWUhZHSg/05I5ksLfxNzTGFeqHUDiO9dHgCbDjDqlGBPlbtKjDguy 7IiT+wLVeok4qtpTlb2GvYq1chmdK9Z2U1Wi1x/ X-QQ-GoodBg: 2 From: Jiawen Wu To: dev@dpdk.org Cc: Jiawen Wu , stable@dpdk.org Subject: [PATCH 9/9] net/txgbe: fix KR auto-negotiation Date: Tue, 8 Feb 2022 18:11:29 +0800 Message-Id: <20220208101129.69173-10-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220208101129.69173-1-jiawenwu@trustnetic.com> References: <20220208101129.69173-1-jiawenwu@trustnetic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybgforeign:qybgforeign5 X-QQ-Bgrelay: 1 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 Fix failure to enter auto-negotiation mode on some firmware versions for KR NICs. Fixes: f611dada1af8 ("net/txgbe: update link setup process of backplane NICs") Cc: stable@dpdk.org Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_phy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/txgbe/base/txgbe_phy.c b/drivers/net/txgbe/base/txgbe_phy.c index 3f5229ecc2..3fb929f37a 100644 --- a/drivers/net/txgbe/base/txgbe_phy.c +++ b/drivers/net/txgbe/base/txgbe_phy.c @@ -1455,6 +1455,10 @@ txgbe_set_link_to_kr(struct txgbe_hw *hw, bool autoneg) if (!(hw->devarg.auto_neg == 1)) { wr32_epcs(hw, SR_AN_CTRL, 0); wr32_epcs(hw, VR_AN_KR_MODE_CL, 0); + } else { + value = rd32_epcs(hw, TXGBE_PHY_TX_EQ_CTL1); + value &= ~(1 << 6); + wr32_epcs(hw, TXGBE_PHY_TX_EQ_CTL1, value); } if (hw->devarg.present == 1) { value = rd32_epcs(hw, TXGBE_PHY_TX_EQ_CTL1); -- 2.21.0.windows.1