From nobody Fri Jan 3 02:49:24 2025 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YPShp3BKLz5kHwh for ; Fri, 03 Jan 2025 02:49:30 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YPShp2Yd0z4Vr1; Fri, 3 Jan 2025 02:49:30 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735872570; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uUfNk/m5sNUO6GxfT/XNqW+lMxOgXMraVC1PLO/KPzM=; b=dqJzSvTj5zzPF9B8flHA0d9x5/ziP1812mCDqSzfqxvsSZQCeqS9MJdmrx0oOSYD08+2vL GpUUUIPDKBje/QK+B7RtjYe+KYyqwA8GEQWCuIhkbi4+G00wUO6zVj8M4RuqF7zXpY1cDL 1gfIvBXq5I5aLqxKrBoRCqB2izuoKaVEiFFo2TqadtsmJXmePtanV42JY8k+ufx6kbPvAv p6SOAAXnz1DK9GddayH66Y3k/MjPBHQ75o8q1ccQoek1Tc5sIVGGMX1ed78SuJwUwOw8uX BQ2bKavdBnNLZoWLb/JSv4/IwRtXxR/WPPlLAn4OTeFWple36rnLJGtabzMPwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735872570; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uUfNk/m5sNUO6GxfT/XNqW+lMxOgXMraVC1PLO/KPzM=; b=j0jOeYkiRV886j4NxiPeTWxfgTtBTCEvdnNRwYhYVI4J1l7CdtASuScW91DDfMUd4HLOGV 0rudQwXKxo6fSFwIChZiAJC1S8iWI/7U5grnjeqjXIm0vDcPKSZ1qH2yFTJjMRBp798y+c ruUvbJDRYNYxNA1F1zG+YQ6DxqLIF9oBXvBrT6MZDuV+1qc0p/yd9/9a6XfLH21OLKcf4G soXjqHYIk4DcpB10vmjmCmQwhRZjyPu/zAIEz0x9dVZSBDsrx/XX5ZDx7EwXh4/BcEJh21 /ZNYLtJCMesgTJIbSStIAliasJgD3k+F8nsADp/J9iNAOwbSunCnQcxi22dvwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735872570; a=rsa-sha256; cv=none; b=UNAV+pMMNF4fieIae7O+mNveYUAin5xGQV1yFc4uuU79eDOvmBLn+aTL8ez0BOc6GgsDRD 18Tcr1gYiENd/JvZs5lnfRwaZd3TvUp3LXtX7jAeAxWSJL5qMKUwIT/lq6/TQGF25jwn7J 7gavZl7jCSbSc8yoJSaYIaEoqpXSFk6S+GAm+nlPzgMmQWZ/G8V5UsmUVzMK/ls6BvNHQV G9zDqVkUzk4hhanpm0MTiSUM5NitjFSrjSyNCH4ZeqCQWKaTa87P6v3L6yFALv3JoYlGaY J9sgaV3iMty0DZVAMjVFGcQFvzPZ8BfsVYryDYoyDXtSLErL/+HmkS5EqCNgEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4YPShm5Lb8z138T; Fri, 03 Jan 2025 02:49:28 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=us-ascii List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: Re: if_axp (AMD 10Gb) never detects a link on Ryzen v3000 embedded board (on FreeBSD 14.2) From: Zhenlei Huang In-Reply-To: Date: Fri, 3 Jan 2025 10:49:24 +0800 Cc: "freebsd-net@freebsd.org" , "andrew@freebsd.org" , rajesh1.kumar@amd.com, Franco Fichtner Content-Transfer-Encoding: quoted-printable Message-Id: <478581BA-CC9B-4FEB-9E23-FED19D0C9314@FreeBSD.org> References: To: Rebecca Cran X-Mailer: Apple Mail (2.3696.120.41.1.10) Hi, > On Dec 31, 2024, at 11:10 AM, Rebecca Cran wrote: >=20 > I recently bought a slightly funky device with hopes of using it as a = router: it's a SolidRun Ryzen v3000 = (https://shop.solid-run.com/product/SRRV318S01D64GE000H10IH/) with a = "AMD Ryzen Embedded V3C18I 8-Core Processor". >=20 > It has 2x AMD 10 Gigabit EthernetSFP+ ports built-in, but I'm having = trouble getting FreeBSD to detect a link. I'm using a FS SFP-10GSR-85 = transceiver connected to a Zyxel XS1930-10 switch: the switch shows the = link as active, but FreeBSD never detects it on its end. I've tried = setting dev.ax.{0,1}.link_workaround=3D1 but it doesn't have any effect. >=20 >=20 > = https://solidrun.atlassian.net/wiki/spaces/developer/pages/592904196/Honey= Comb+AMD+V3000+mini+ITX+Quick+Start+Guide mentions that "As of JUL 7 = 2024 (FreeBSD 14.01) the AMD XGBE driver on FreeBSD does not fully = support SFP later version will eventually have the driver fixed" and I'm = wondering if there's any active work on this, any workarounds, or if I = should try 14-STABLE instead? IIRC, Franco reported that those cards work greatly with FS transceivers = ? >=20 >=20 > Boot dmesg shows: >=20 > ax0: mem = 0xfce60000-0xfce7ffff,0xfce40000-0xfce5ffff,0xfce82000-0xfce83fff at = device 0.2 on pci4 > ax0: Using 512 TX descriptors and 512 RX descriptors > ax0: Using 3 RX queues 3 TX queues > ax0: Using MSI-X interrupts with 7 vectors > ax0: Ethernet address: d0:63:b4:05:b4:a7 > ax0: SPH Enabled > ax0: xgbe_config_sph_mode: SPH enabled in channel 0 > ax0: xgbe_config_sph_mode: SPH enabled in channel 1 > ax0: xgbe_config_sph_mode: SPH enabled in channel 2 > ax0: RSS Enabled > ax0: Receive checksum offload Enabled > ax0: VLAN filtering Enabled > ax0: VLAN Stripping Enabled > ax0: xgbe_phy_sfp_signals: port_sfp_inputs: 0x2 > ax0: netmap queues/slots: TX 3/512, RX 3/512 > ax1: mem = 0xfce20000-0xfce3ffff,0xfce00000-0xfce1ffff,0xfce80000-0xfce81fff at = device 0.3 on pci4 > ax1: Using 512 TX descriptors and 512 RX descriptors > ax1: Using 3 RX queues 3 TX queues > ax1: Using MSI-X interrupts with 7 vectors > ax1: Ethernet address: d0:63:b4:05:b4:a8 > ax1: SPH Enabled > ax1: xgbe_config_sph_mode: SPH enabled in channel 0 > ax1: xgbe_config_sph_mode: SPH enabled in channel 1 > ax1: xgbe_config_sph_mode: SPH enabled in channel 2 > ax1: RSS Enabled > ax1: Receive checksum offload Enabled > ax1: VLAN filtering Enabled > ax1: VLAN Stripping Enabled > ax1: netmap queues/slots: TX 3/512, RX 3/512 >=20 >=20 > When I run "ifconfig ax1 up": >=20 > # ifconfig ax1 up > ax1: SPH Enabled > ax1: xgbe_config_sph_mode: SPH enabled in channel 0 > ax1: xgbe_config_sph_mode: SPH enabled in channel 1 > ax1: xgbe_config_sph_mode: SPH enabled in channel 2 > ax1: RSS Enabled > ax1: Receive checksum offload Enabled > ax1: VLAN filtering Enabled > ax1: VLAN Stripping Enabled >=20 >=20 > But "ifconfig ax1" still shows: >=20 > ax1: flags=3D8843 metric 0 mtu = 1500 > = options=3D4e503bb > ether d0:63:b4:05:b4:a8 > media: Ethernet autoselect > status: no carrier > nd6 options=3D29 >=20 >=20 > --=20 > Rebecca Cran >=20 >=20