DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Zaiyu Wang <zaiyuwang@trustnetic.com>
Cc: dev@dpdk.org
Subject: Re: [PATCH v10 00/17] Wangxun fixes and new features
Date: Fri, 23 Oct 2026 09:01:39 -0700	[thread overview]
Message-ID: <20261023090117.34672036@phoenix.local> (raw)
In-Reply-To: <3C29C180B4E33816+20261023110728.3975-1-zaiyuwang@trustnetic.com>

On Fri, 23 Oct 2026 19:03:38 +0800
Zaiyu Wang <zaiyuwang@trustnetic.com> wrote:

> This series addresses link-related issues on Wangxun Amber-lite 25G/40G NICs (CR/KR training, hot-plug, 10G link state).
> 
> ---
> v10:
>  - P12: check the FFE taps against the register field width of the MAC in
>         use, instead of only for the 40G one. On the Sapphire the main and
>         pre taps are six-bit fields and the post tap is seven-bit, so a
>         larger value spills into the neighbouring field rather than being
>         truncated.
>  - P12/P13: say "Amber-Lite 40G NIC" for bp_capa and laser_off, the only
>         MAC that implements either.
>  - P17: add a new patch to rename fiber_suppport_speed to fiber_support_speed.
>         The field was added with the misspelling in 234ce0d1fa, copied from the
>         out-of-tree base driver.

Most of it is fine, but you still are keeping a driver specific behavior around PHY
control which was identified as not acceptable in an earlier review.

I object to cases where driver writers treat their PMD as a unique and special case
because that would end up tying the user application to a specific PMD
and it makes it harder for users to manage and write code.

If there is a missing feature in the ethdev management layer, then control operations
and offloads should be added there and drivers should all work against that.

The current AI review reflects that.

Subject: Re: [PATCH v10 00/17] net/txgbe: Amber-Lite link fixes

Series applies cleanly to main and every commit builds with
-Dwerror=true. All Fixes: hashes resolve.

The v8 comments on 02, 03, 10, 15 and 16 are addressed. The
NEED_LINK_CONFIG fix in 16 is correct.

Patches 01-11 and 14-17 look good. 12 and 13 still need work.


Errors
------

[PATCH v10 13/17] net/txgbe: add devarg to turn off Tx laser for AML40

NAK on the devarg still stands.

The new paragraph says it is opt-in because link setup resets the
PHY and restarts AN73 on the next link-up. set_link_up() is a
control path operation, and the application asked for the link to
come back up. Renegotiation is the expected cost of that.

Leaving the transmitter on is the bug. With the laser on,
rte_eth_dev_set_link_down() does not take the link down, and the
peer cannot see the loss of signal. Drivers should not each pick
their own meaning for set_link_down.

Remove TXGBE_DEVARG_LASER_OFF and hw->devarg.laser_off. Disable the
transmitter unconditionally on AML40 link down, and in
txgbe_dev_set_link_up() run:

	if (hw->mac.type == txgbe_mac_aml40) {
		speed = hw->phy.autoneg_advertised;
		...
		err = hw->mac.setup_link(hw, speed, true);
		...
	}

Drop the doc and release note entries with it.


Info
----

[PATCH v10 12/17] net/txgbe: add pre2 FFE tap and backplane capability devargs

The new FFE range checks log at ERR level but still store the value.
On Sapphire an ffe_pre above 0x3F still runs into the main field
through "ffe_main << 8 | ffe_pre". Fall back to the default, as is
already done for bp_capa:

	if (ffe_pre > 0x3F) {
		PMD_INIT_LOG(ERR, "devarg '%s' value %u exceeds 0x3F",
			     TXGBE_DEVARG_FFE_PRE, ffe_pre);
		ffe_pre = 8;
	}

The bp_capa explanation in the commit message is fine.

  reply	other threads:[~2026-10-23 16:02 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-27 11:41 [PATCH 00/13] Wangxun fixes and new features Zaiyu Wang
2026-08-27 20:11 ` Stephen Hemminger
2026-09-08 12:43   ` Zaiyu Wang
2026-10-12 10:56 ` [PATCH v8 00/16] " Zaiyu Wang
2026-10-12 21:41   ` Stephen Hemminger
     [not found] ` <20261012110518.1911-1-zaiyuwang@trustnetic.com>
2026-10-12 10:56   ` [PATCH v8 01/16] net/txgbe: fix failure to configure 10G on dual-speed DAC Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 02/16] net/txgbe: use the requested speed in E56 AN setup Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 03/16] net/txgbe: fix e56 PHY configuration error Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 04/16] net/txgbe: fix incorrect link state in 10G forced mode Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 05/16] net/txgbe: do not force reconfig on link retry Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 06/16] net/txgbe: set i2c sda hold time Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 07/16] net/txgbe: fix link speed display info for 10G mode Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 08/16] net/txgbe: remove stale outer UDP checksum offload flag Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 09/16] net/txgbe: fix SFP hot-plug when auto-negotiation is on Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 10/16] net/txgbe: fix DAC hot-plug on 40G NIC with auto-negotiation Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 11/16] net/txgbe: fix 40G FFE tuning applied to first lane only Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 12/16] net/txgbe: add pre2 FFE tap and backplane capability devargs Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 13/16] net/txgbe: add devarg to turn off Tx laser for 40G NIC Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 14/16] net/txgbe: fix CR/KR link training and recovery Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 15/16] net/txgbe: align link capabilities and DAC classification Zaiyu Wang
2026-10-12 10:56   ` [PATCH v8 16/16] net/txgbe: respect manual link-down on Amber-Lite Zaiyu Wang
2026-10-22 11:03 ` [PATCH v9 00/16] Wangxun fixes and new features Zaiyu Wang
2026-10-22 17:17   ` Stephen Hemminger
2026-10-23 11:10     ` Zaiyu Wang
     [not found] ` <20261022111017.3605-1-zaiyuwang@trustnetic.com>
2026-10-22 11:03   ` [PATCH v9 01/16] net/txgbe: fix failure to configure 10G on dual-speed DAC Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 02/16] net/txgbe: use the requested speed in E56 AN setup Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 03/16] net/txgbe: fix e56 PHY configuration error Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 04/16] net/txgbe: fix incorrect link state in 10G forced mode Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 05/16] net/txgbe: do not force reconfig on link retry Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 06/16] net/txgbe: set i2c sda hold time Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 07/16] net/txgbe: fix link speed display info for 10G mode Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 08/16] net/txgbe: remove stale outer UDP checksum offload flag Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 09/16] net/txgbe: fix SFP hot-plug when auto-negotiation is on Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 10/16] net/txgbe: fix DAC hot-plug on 40G NIC with auto-negotiation Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 11/16] net/txgbe: fix 40G FFE tuning applied to first lane only Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 12/16] net/txgbe: add pre2 FFE tap and backplane capability devargs Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 13/16] net/txgbe: add devarg to turn off Tx laser for 40G NIC Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 14/16] net/txgbe: fix CR/KR link training and recovery Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 15/16] net/txgbe: align link capabilities and DAC classification Zaiyu Wang
2026-10-22 11:03   ` [PATCH v9 16/16] net/txgbe: respect manual link-down on Amber-Lite Zaiyu Wang
2026-10-23 11:03 ` [PATCH v10 00/17] Wangxun fixes and new features Zaiyu Wang
2026-10-23 16:01   ` Stephen Hemminger [this message]
     [not found] ` <20261023110728.3975-1-zaiyuwang@trustnetic.com>
2026-10-23 11:03   ` [PATCH v10 01/17] net/txgbe: fix failure to configure 10G on dual-speed DAC Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 02/17] net/txgbe: use the requested speed in E56 AN setup Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 03/17] net/txgbe: fix E56 PHY configuration error Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 04/17] net/txgbe: fix incorrect link state in 10G forced mode Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 05/17] net/txgbe: do not force reconfig on link retry Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 06/17] net/txgbe: set i2c sda hold time Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 07/17] net/txgbe: fix link speed display info for 10G mode Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 08/17] net/txgbe: remove stale outer UDP checksum offload flag Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 09/17] net/txgbe: fix SFP hot-plug when auto-negotiation is on Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 10/17] net/txgbe: fix DAC hot-plug on AML40 with auto-negotiation Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 11/17] net/txgbe: fix 40G FFE tuning applied to first lane only Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 12/17] net/txgbe: add pre2 FFE tap and backplane capability devargs Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 13/17] net/txgbe: add devarg to turn off Tx laser for AML40 Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 14/17] net/txgbe: fix CR/KR link training and recovery Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 15/17] net/txgbe: align link capabilities and DAC classification Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 16/17] net/txgbe: respect manual link-down on Amber-Lite Zaiyu Wang
2026-10-23 11:03   ` [PATCH v10 17/17] net/txgbe: fix typo in the fiber_support_speed field Zaiyu Wang

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=20261023090117.34672036@phoenix.local \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=zaiyuwang@trustnetic.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox