From: Fabio Baltieri <fabio.baltieri@gmail.com>
To: Michael Zimmermann <sigmaepsilon92@gmail.com>,
Heiner Kallweit <hkallweit1@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>,
nic_swsd@realtek.com, Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] r8169: add support for RTL8127ATF
Date: Wed, 19 Nov 2025 10:26:49 +0000 [thread overview]
Message-ID: <aR2baZuFBuA7Mx_x@google.com> (raw)
In-Reply-To: <CAN9vWDKEDFmDiTuPB6ZQF02NYy0QiW2Oo7v4Zcu6tSiMH5Kj9Q@mail.gmail.com>
On Wed, Nov 19, 2025 at 08:00:01AM +0100, Michael Zimmermann wrote:
> I've also done some testing with the out-of-tree driver:
> - (my normal setup) a DAC between the rt8127 and a 10G switch works just fine.
> - RJ45 10G modules on both sides works fine, but HwFiberModeVer stays
> at 1 even after reloading the driver.
> - RJ45 1G modules on both sides works after "ethtool -s enp1s0 speed
> 1000 duplex full autoneg on", but you have to do that while connected
> via 10G because that driver is buggy and returns EINVAL otherwise.
> HwFiberModeVer was 1 as well after reloading the driver.
You are right, did some more extensive testing and it seems like
switching speed is somewhat unreliable.
I've also bumped into
https://lore.kernel.org/netdev/cc1c8d30-fda0-4d3d-ad61-3ff932ef0222@gmail.com/
and sure enough this is affected too, it also does not survive suspend
without the wol flag, but more importantly I've found that the serdes
has to be reconfigured on resume, so I need to send a v2 moving some
code around.
> What this means is that the fiber mode is always enabled on these
> cards, which makes sense given that the out-of-tree driver only reads
> it once when loading the driver. I guess it's either a hardware
> variant, configured in the factory or detected using a pin of the
> chip.
> It also means that it doesn't matter to the linux driver what's
> actually connected beyond the speed you want to use since - as others
> have said before - this seems to be fully handled on the NIC.
Yeah but that make sense, it does not really mean *fiber* mode, it
controls the serdes configuration which is used both by fiber
transceiver and DACs or anything else you plug in the SFP port. It's a
good point though I think it may be a good idea to rename it to
something like "sfp_mode" so it's not ambiguous.
Heiner: if I'm reading the room right you are more keen to have a more
minimal initial support patch: I'm sending a v2 anyway to fix up the
standby support, would you like me to rip off the 1g code and keep it
10g only while at it? Then we can have at least that hopefully working
reliably, as you pointed out that's probably what the vast majority of
users of this nic needs anyway.
next prev parent reply other threads:[~2025-11-19 10:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-17 19:16 [PATCH] r8169: add support for RTL8127ATF Fabio Baltieri
2025-11-17 19:37 ` Andrew Lunn
2025-11-18 11:08 ` Fabio Baltieri
2025-11-18 19:31 ` Andrew Lunn
2025-11-18 20:02 ` Heiner Kallweit
2025-11-18 20:20 ` Fabio Baltieri
2025-11-18 21:31 ` Michael Zimmermann
2025-11-18 22:01 ` Fabio Baltieri
2025-11-19 7:00 ` Michael Zimmermann
2025-11-19 10:26 ` Fabio Baltieri [this message]
2025-11-20 23:17 ` Heiner Kallweit
2025-11-21 12:09 ` Fabio Baltieri
2025-11-21 13:09 ` Heiner Kallweit
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=aR2baZuFBuA7Mx_x@google.com \
--to=fabio.baltieri@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nic_swsd@realtek.com \
--cc=pabeni@redhat.com \
--cc=sigmaepsilon92@gmail.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;
as well as URLs for NNTP newsgroup(s).