From: "Jiawen Wu" <jiawenwu@trustnetic.com>
To: "'Zaiyu Wang'" <zaiyuwang@trustnetic.com>, <dev@dpdk.org>
Cc: "'Jian Wang'" <jianwang@trustnetic.com>
Subject: RE: [PATCH v3 06/15] net/txgbe: add RX&TX support for Amber-Lite NICs
Date: Mon, 4 Aug 2025 15:07:22 +0800 [thread overview]
Message-ID: <073601dc050e$6ce9b990$46bd2cb0$@trustnetic.com> (raw)
In-Reply-To: <20250626080221.22488-7-zaiyuwang@trustnetic.com>
> diff --git a/drivers/net/txgbe/base/txgbe_regs.h b/drivers/net/txgbe/base/txgbe_regs.h
> index 4777b0335b..7830abac7b 100644
> --- a/drivers/net/txgbe/base/txgbe_regs.h
> +++ b/drivers/net/txgbe/base/txgbe_regs.h
> @@ -318,12 +318,18 @@
> #define TXGBE_LEDCTL_1G MS(2, 0x1)
> #define TXGBE_LEDCTL_100M MS(3, 0x1)
> #define TXGBE_LEDCTL_ACTIVE MS(4, 0x1)
> +#define TXGBE_LINKUP_FILTER 0x014428
> #define TXGBE_TAGTPID(i) (0x014430 + (i) * 4) /* 0-3 */
> #define TXGBE_TAGTPID_LSB_MASK MS(0, 0xFFFF)
> #define TXGBE_TAGTPID_LSB(v) LS(v, 0, 0xFFFF)
> #define TXGBE_TAGTPID_MSB_MASK MS(16, 0xFFFF)
> #define TXGBE_TAGTPID_MSB(v) LS(v, 16, 0xFFFF)
>
> +/*AML LINK STATUS OVERWRITE*/
> +#define TXGBE_AML_EPCS_MISC_CTL 0x13240
> +#define TXGBE_AML_LINK_STATUS_OVRD_EN 0x00000020
> +#define TXGBE_AML_LINK_STATUS_OVRD_VAL 0x00000010
Improve readability and be consistent, use MS() here.
>
> +#define TXGBE_MAC_TX_CFG_AML_SPEED_MASK 0x78000000U
> +#define TXGBE_MAC_TX_CFG_AML_SPEED_50G 0x20000000U
> +#define TXGBE_MAC_TX_CFG_AML_SPEED_40G 0x00000000U
> +#define TXGBE_MAC_TX_CFG_AML_SPEED_25G 0x10000000U
> +#define TXGBE_MAC_TX_CFG_AML_SPEED_10G 0x40000000U
> +#define TXGBE_MAC_TX_CFG_AML_SPEED_1G 0x70000000U
Ditto.
> @@ -4712,11 +4702,18 @@ txgbe_dev_rxtx_start(struct rte_eth_dev *dev)
> for (i = 0; i < dev->data->nb_tx_queues; i++) {
> txq = dev->data->tx_queues[i];
> /* Setup Transmit Threshold Registers */
> - wr32m(hw, TXGBE_TXCFG(txq->reg_idx),
> - TXGBE_TXCFG_HTHRESH_MASK |
> - TXGBE_TXCFG_WTHRESH_MASK,
> - TXGBE_TXCFG_HTHRESH(txq->hthresh) |
> - TXGBE_TXCFG_WTHRESH(txq->wthresh));
> + if (hw->mac.type == txgbe_mac_aml || hw->mac.type == txgbe_mac_aml40)
> + wr32m(hw, TXGBE_TXCFG(txq->reg_idx),
> + TXGBE_TXCFG_HTHRESH_MASK |
> + TXGBE_TXCFG_WTHRESH_MASK_AML,
> + TXGBE_TXCFG_HTHRESH(txq->hthresh) |
> + TXGBE_TXCFG_WTHRESH(txq->wthresh));
> + else
> + wr32m(hw, TXGBE_TXCFG(txq->reg_idx),
> + TXGBE_TXCFG_HTHRESH_MASK |
> + TXGBE_TXCFG_WTHRESH_MASK,
> + TXGBE_TXCFG_HTHRESH(txq->hthresh) |
> + TXGBE_TXCFG_WTHRESH(txq->wthresh));
> }
These...
#define TXGBE_TXCFG_WTHRESH_MASK MS(16, 0x7F)
#define TXGBE_TXCFG_WTHRESH_MASK_AML MS(16, 0x1FF)
#define TXGBE_TXCFG_WTHRESH(v) LS(v, 16, 0x7F)
How to deal with txq->wthresh is greater than 0x7F for aml?
next prev parent reply other threads:[~2025-08-04 7:07 UTC|newest]
Thread overview: 92+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-18 9:41 [PATCH 0/2] *** Wangxun new NIC support *** Zaiyu Wang
2025-04-18 9:41 ` [PATCH 1/2] net/txgbe: add support for Wangxun new NIC Amber-Lite 25g/40g Zaiyu Wang
2025-04-18 9:41 ` [PATCH 2/2] net/txgbe: add basic code for Amber-Liter NIC configuration Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 00/15] Wangxun new NIC support Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 01/15] net/txgbe: add basic information for Amber-Lite 25G/40G NICs Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 02/15] net/txgbe: add new SW-FW mailbox interface Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 03/15] net/txgbe: add identification support for new SFP/QSFP modules Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 04/15] net/txgbe: add basic link configuration for Amber-Lite NICs Zaiyu Wang
2025-08-04 6:34 ` Jiawen Wu
2025-06-25 12:50 ` [PATCH v2 05/15] net/txgbe: add support for PHY configuration via SW-FW mailbox Zaiyu Wang
2025-08-04 6:51 ` Jiawen Wu
2025-06-25 12:50 ` [PATCH v2 06/15] net/txgbe: add RX&TX support for Amber-Lite NICs Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 07/15] net/txgbe: add hardware reset change " Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 08/15] net/txgbe: add MAC reconfiguration to avoid packet loss Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 09/15] net/txgbe: add TX head Write-Back mode for Amber-Lite NICs Zaiyu Wang
2025-08-04 7:15 ` Jiawen Wu
2025-06-25 12:50 ` [PATCH v2 10/15] net/txgbe: add RX desc merge " Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 11/15] net/txgbe: add FEC support for Amber-Lite 25G NICs Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 12/15] net/txgbe: add GPIO configuration Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 13/15] net/txgbe: disable unstable features Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 14/15] net/txgbe: add other hardware-related changes Zaiyu Wang
2025-06-25 12:50 ` [PATCH v2 15/15] doc: update for txgbe Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 00/15] Wangxun new NIC support Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 01/15] net/txgbe: add basic information for Amber-Lite 25G/40G NICs Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 02/15] net/txgbe: add new SW-FW mailbox interface Zaiyu Wang
2025-08-04 6:12 ` Jiawen Wu
2025-06-26 8:02 ` [PATCH v3 03/15] net/txgbe: add identification support for new SFP/QSFP modules Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 04/15] net/txgbe: add basic link configuration for Amber-Lite NICs Zaiyu Wang
2025-08-03 16:42 ` Stephen Hemminger
2025-10-14 9:34 ` Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 05/15] net/txgbe: add support for PHY configuration via SW-FW mailbox Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 06/15] net/txgbe: add RX&TX support for Amber-Lite NICs Zaiyu Wang
2025-08-04 7:07 ` Jiawen Wu [this message]
2025-06-26 8:02 ` [PATCH v3 07/15] net/txgbe: add hardware reset change " Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 08/15] net/txgbe: add MAC reconfiguration to avoid packet loss Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 09/15] net/txgbe: add TX head Write-Back mode for Amber-Lite NICs Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 10/15] net/txgbe: add RX desc merge " Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 11/15] net/txgbe: add FEC support for Amber-Lite 25G NICs Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 12/15] net/txgbe: add GPIO configuration Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 13/15] net/txgbe: disable unstable features Zaiyu Wang
2025-06-26 8:02 ` [PATCH v3 14/15] net/txgbe: add other hardware-related changes Zaiyu Wang
2025-08-04 7:23 ` Jiawen Wu
2025-06-26 8:02 ` [PATCH v3 15/15] doc: update for txgbe Zaiyu Wang
2025-06-30 19:40 ` [PATCH v3 00/15] Wangxun new NIC support Stephen Hemminger
2025-09-30 9:59 ` [PATCH v4 00/20] " Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 01/20] net/txgbe: add basic information for Amber-Lite 25G/40G NICs Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 02/20] net/txgbe: add new SW-FW mailbox interface Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 03/20] net/txgbe: add identification support for new SFP/QSFP modules Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 04/20] net/txgbe: rename raptor to sp for Sapphire-specific code Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 05/20] net/txgbe: add basic link configuration for Amber-Lite NICs Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 06/20] net/txgbe: add support for PHY configuration via SW-FW mailbox Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 07/20] net/txgbe: add RX&TX support for Amber-Lite NICs Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 08/20] net/txgbe: add hardware reset change " Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 09/20] net/txgbe: add MAC reconfiguration to avoid packet loss Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 10/20] net/txgbe: add TX head Write-Back mode for Amber-Lite NICs Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 11/20] net/txgbe: add RX desc merge " Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 12/20] net/txgbe: add FEC support for Amber-Lite 25G NICs Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 13/20] net/txgbe: add GPIO configuration Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 14/20] net/txgbe: disable unstable features Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 15/20] net/txgbe: add support for TX laser enable/disable Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 16/20] net/txgbe: add support for TX queue rate limiting Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 17/20] net/txgbe: add support for getting PHY ID Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 18/20] net/txgbe: add thermal sensor configuration for Amber-Lite NICs Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 19/20] net/txgbe: add RSS " Zaiyu Wang
2025-09-30 9:59 ` [PATCH v4 20/20] doc: update for txgbe Zaiyu Wang
2025-10-15 22:04 ` [PATCH v4 00/20] Wangxun new NIC support Stephen Hemminger
2025-10-16 6:13 ` Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 00/21] " Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 01/21] net/txgbe: add basic information for Amber-Lite 25G/40G NICs Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 02/21] net/txgbe: add new SW-FW mailbox interface Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 03/21] net/txgbe: add identification support for new SFP/QSFP modules Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 04/21] net/txgbe: rename raptor to sp for Sapphire-specific code Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 05/21] net/txgbe: add basic link configuration for Amber-Lite NICs Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 06/21] net/txgbe: add support for PHY configuration via SW-FW mailbox Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 07/21] net/txgbe: add RX&TX support for Amber-Lite NICs Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 08/21] net/txgbe: add hardware reset change " Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 09/21] net/txgbe: add MAC reconfiguration to avoid packet loss Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 10/21] net/txgbe: add TX head Write-Back mode for Amber-Lite NICs Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 11/21] net/txgbe: add RX desc merge " Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 12/21] net/txgbe: add FEC support for Amber-Lite 25G NICs Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 13/21] net/txgbe: add GPIO configuration Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 14/21] net/txgbe: disable unstable features Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 15/21] net/txgbe: add support for TX laser enable/disable Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 16/21] net/txgbe: add support for TX queue rate limiting Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 17/21] net/txgbe: add support for getting PHY ID Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 18/21] net/txgbe: add thermal sensor configuration for Amber-Lite NICs Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 19/21] net/txgbe: add RSS " Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 20/21] doc: update for txgbe guides Zaiyu Wang
2025-10-16 11:17 ` [PATCH v5 21/21] doc: update release notes for Wangxun txgbe driver Zaiyu Wang
2025-10-16 16:59 ` [PATCH v5 00/21] Wangxun new NIC support Stephen Hemminger
2025-10-17 2:08 ` Zaiyu Wang
2025-10-21 16:17 ` Stephen Hemminger
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='073601dc050e$6ce9b990$46bd2cb0$@trustnetic.com' \
--to=jiawenwu@trustnetic.com \
--cc=dev@dpdk.org \
--cc=jianwang@trustnetic.com \
--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 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.