patch 'net/ngbe: prevent NIC from slowing down link speed' has been queued to stable release 22.11.4
Xueming Li
xuemingl at nvidia.com
Sun Oct 22 16:20:57 CEST 2023
Hi,
FYI, your patch has been queued to stable release 22.11.4
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/15/23. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging
This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=12662c8d637ccdbf6aa0bfe476b2596733c2a48b
Thanks.
Xueming Li <xuemingl at nvidia.com>
---
>From 12662c8d637ccdbf6aa0bfe476b2596733c2a48b Mon Sep 17 00:00:00 2001
From: Jiawen Wu <jiawenwu at trustnetic.com>
Date: Thu, 28 Sep 2023 17:47:51 +0800
Subject: [PATCH] net/ngbe: prevent NIC from slowing down link speed
Cc: Xueming Li <xuemingl at nvidia.com>
[ upstream commit 55ff5045dcedec707547b90d0bc8abcdc34fd956 ]
When the signal quality is bad, the internal PHY may slow down to 100M.
Fix this weird behavior by setting dis fall 100M bit.
Fixes: 696a82117875 ("net/ngbe: redesign internal PHY init flow")
Signed-off-by: Jiawen Wu <jiawenwu at trustnetic.com>
---
drivers/net/ngbe/base/ngbe_phy_rtl.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/ngbe/base/ngbe_phy_rtl.c b/drivers/net/ngbe/base/ngbe_phy_rtl.c
index b0eb6c97c0..ba63a8058a 100644
--- a/drivers/net/ngbe/base/ngbe_phy_rtl.c
+++ b/drivers/net/ngbe/base/ngbe_phy_rtl.c
@@ -148,6 +148,11 @@ s32 ngbe_init_phy_rtl(struct ngbe_hw *hw)
hw->phy.write_reg(hw, 27, 0xa42, 0x8011);
hw->phy.write_reg(hw, 28, 0xa42, 0x5737);
+ /* Disable fall to 100m if signal is not good */
+ hw->phy.read_reg(hw, 17, 0xa44, &value);
+ value &= ~0x8;
+ hw->phy.write_reg(hw, 17, 0xa44, value);
+
hw->phy.write_reg(hw, RTL_SCR, 0xa46, RTL_SCR_EXTINI);
hw->phy.read_reg(hw, RTL_SCR, 0xa46, &value);
if (!(value & RTL_SCR_EXTINI)) {
--
2.25.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2023-10-22 22:17:35.478086300 +0800
+++ 0028-net-ngbe-prevent-NIC-from-slowing-down-link-speed.patch 2023-10-22 22:17:34.176723700 +0800
@@ -1 +1 @@
-From 55ff5045dcedec707547b90d0bc8abcdc34fd956 Mon Sep 17 00:00:00 2001
+From 12662c8d637ccdbf6aa0bfe476b2596733c2a48b Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 55ff5045dcedec707547b90d0bc8abcdc34fd956 ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list