From: Simon Horman <horms@kernel.org>
To: Jiawen Wu <jiawenwu@trustnetic.com>
Cc: netdev@vger.kernel.org, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, mengyuanlou@net-swift.com
Subject: Re: [PATCH net] net: txgbe: fix the issue of TX failture
Date: Wed, 25 Jun 2025 10:35:40 +0100 [thread overview]
Message-ID: <20250625093540.GK1562@horms.kernel.org> (raw)
In-Reply-To: <9E4DB1BA09214DE5+20250624093021.273868-1-jiawenwu@trustnetic.com>
On Tue, Jun 24, 2025 at 05:30:21PM +0800, Jiawen Wu wrote:
> There is a occasional problem that ping is failed between AML devices.
> That is because the manual enablement of the security Tx path on the
> hardware is missing, no matter what its previous state was.
>
> Fixes: 6f8b4c01a8cd ("net: txgbe: Implement PHYLINK for AML 25G/10G devices")
> Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
nit: failure is misspelt in the subject
> ---
> drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c b/drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
> index 7dbcf41750c1..dc87ccad9652 100644
> --- a/drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
> +++ b/drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
> @@ -294,6 +294,7 @@ static void txgbe_mac_link_up_aml(struct phylink_config *config,
> wx_fc_enable(wx, tx_pause, rx_pause);
>
> txgbe_reconfig_mac(wx);
> + txgbe_enable_sec_tx_path(wx);
>
> txcfg = rd32(wx, TXGBE_AML_MAC_TX_CFG);
> txcfg &= ~TXGBE_AML_MAC_TX_CFG_SPEED_MASK;
Hi Jiawen,
I am unsure if it is important, but I notice that:
* txgbe_mac_link_up_aml is the mac_link_up callback for txgbe_aml
* Whereas for txgbe_phy txgbe_enable_sec_tx_path() is called in
txgbe_mac_finish(), which is the mac_finish callback
Could you comment on this asymmetry?
next prev parent reply other threads:[~2025-06-25 9:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-24 9:30 [PATCH net] net: txgbe: fix the issue of TX failture Jiawen Wu
2025-06-25 9:35 ` Simon Horman [this message]
2025-06-25 9:51 ` Jiawen Wu
2025-06-25 16:59 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250625093540.GK1562@horms.kernel.org \
--to=horms@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jiawenwu@trustnetic.com \
--cc=kuba@kernel.org \
--cc=mengyuanlou@net-swift.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.