From: Vinay Govindaiah <vigovind@amd.com>
To: <dev@dpdk.org>
Subject: [PATCH] net/axgbe:Add support for V4000 Kracken2e
Date: Tue, 2 Dec 2025 12:13:34 +0530 [thread overview]
Message-ID: <20251202064334.312225-1-vigovind@amd.com> (raw)
Add device ID's for Kracken2e to enable
driver to support this device.
Signed-off-by: Vinay Govindaiah <vinay.govindaiah@amd.com>
---
drivers/net/axgbe/axgbe_common.h | 2 ++
drivers/net/axgbe/axgbe_ethdev.c | 16 ++++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/drivers/net/axgbe/axgbe_common.h b/drivers/net/axgbe/axgbe_common.h
index 93e6c177b6..6e4e23027d 100644
--- a/drivers/net/axgbe/axgbe_common.h
+++ b/drivers/net/axgbe/axgbe_common.h
@@ -905,6 +905,8 @@
#define PCS_V2_RV_WINDOW_SELECT 0x1064
#define PCS_V2_YC_WINDOW_DEF 0x18060
#define PCS_V2_YC_WINDOW_SELECT 0x18064
+#define PCS_KR_WINDOW_SELECT 0x8080
+#define PCS_KR_WINDOW_DEF 0x8060
/* PCS register entry bit positions and sizes */
#define PCS_V2_WINDOW_DEF_OFFSET_INDEX 6
diff --git a/drivers/net/axgbe/axgbe_ethdev.c b/drivers/net/axgbe/axgbe_ethdev.c
index cf3b0d9ef5..aa7d332b44 100644
--- a/drivers/net/axgbe/axgbe_ethdev.c
+++ b/drivers/net/axgbe/axgbe_ethdev.c
@@ -185,6 +185,7 @@ static const struct axgbe_xstats axgbe_xstats_strings[] = {
#define Fam17h 0x17
#define Fam19h 0x19
+#define Fam1Ah 0x1A
#define CPUID_VENDOR_AuthenticAMD_ebx 0x68747541
#define CPUID_VENDOR_AuthenticAMD_ecx 0x444d4163
@@ -2291,6 +2292,21 @@ eth_axgbe_dev_init(struct rte_eth_dev *eth_dev)
unknown_cpu = 1;
}
break;
+ case Fam1Ah:
+ /* V4000 (krackan2e) */
+ if (cpu_model == 0x68) {
+ pdata->xpcs_window_def_reg = PCS_KR_WINDOW_DEF;
+ pdata->xpcs_window_sel_reg = PCS_KR_WINDOW_SELECT;
+
+ /* V4000-Krkan2e devices do not need cdr workaround */
+ pdata->vdata->an_cdr_workaround = 0;
+
+ /* V4000-Krkan2e devices do not need rrc */
+ pdata->vdata->enable_rrc = 0;
+ } else {
+ unknown_cpu = 1;
+ }
+ break;
default:
unknown_cpu = 1;
break;
--
2.34.1
next reply other threads:[~2025-12-02 6:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-02 6:43 Vinay Govindaiah [this message]
2025-12-02 7:11 [PATCH] net/axgbe: add " Vinay Govindaiah
2025-12-02 7:37 ` Sebastian, Selwin
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=20251202064334.312225-1-vigovind@amd.com \
--to=vigovind@amd.com \
--cc=dev@dpdk.org \
/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;
as well as URLs for NNTP newsgroup(s).