From: Chih Kai Hsu <hsu.chih.kai@realtek.com>
To: "netdev-bot+sashiko@kernel.org" <netdev-bot+sashiko@kernel.org>
Cc: "davem@davemloft.net" <davem@davemloft.net>,
"kuba@kernel.org" <kuba@kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
nic_swsd <nic_swsd@realtek.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"edumazet@google.com" <edumazet@google.com>,
"bjorn@mork.no" <bjorn@mork.no>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
"mail@birger-koblitz.de" <mail@birger-koblitz.de>
Subject: RE: [PATCH net-next v10 08/12] r8152: split RTL_VER_17 into QFN68 and QFN100 package variants
Date: Tue, 1 Dec 2026 12:14:56 +0000 [thread overview]
Message-ID: <f3359c643cb245acadae6af46af3ac7b@realtek.com> (raw)
In-Reply-To: <179610756648.3146.1576349652810734708@kernel.org>
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue(s) to consider.
>
> Critical: 0 · High: 0 · Medium: 1 · Low: 0
>
> If you believe none of the issues are legitimate, please reply to each issue of
> Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork know
> by including "pw-bot: cr" as a separate line at the end of your reply (one such
> reply per series is enough).
>
> - [Medium] This patch silently changes which firmware every existing
> QFN100 RTL8159 user loads, and the commit message does not explain the…
>
> --
>
> r8152: split RTL_VER_17 into QFN68 and QFN100 package variants
>
> This splits RTL_VER_17 into RTL_VER_17_QFN68 and RTL_VER_17_QFN100.
> The package is detected by reading PLA_PKG_DET in __rtl_get_hw_ver(), and
> parts that cannot be identified are rejected. It also selects a new rtl8159-2.fw
> image for QFN100 and adds a QFN68-only u2phy backup-restore write in
> r8157_init().
>
> > diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index
> > 3e16d0f832bc3..103d8430da424 100644
> > --- a/drivers/net/usb/r8152.c
> > +++ b/drivers/net/usb/r8152.c
>
> [ ... ]
>
> > @@ -10223,9 +10253,12 @@ static int rtl_fw_init(struct r8152 *tp)
> > case RTL_VER_16:
> > rtl_fw->fw_name = FIRMWARE_8157_1;
> > break;
> > - case RTL_VER_17:
> > + case RTL_VER_17_QFN68:
> > rtl_fw->fw_name = FIRMWARE_8159_1;
> > break;
> > + case RTL_VER_17_QFN100:
> > + rtl_fw->fw_name = FIRMWARE_8159_2;
> > + break;
> > default:
> > break;
> > }
>
> [Severity: Medium]
> This changes the firmware that existing QFN100 RTL8159 users load. Before this
> patch every 0x2020 chip became RTL_VER_17, so QFN100 parts loaded
> rtl8159-1.fw. After it, QFN100 requests rtl8159-2.fw, and nothing falls back to
> rtl8159-1.fw.
>
> The commit message only says:
>
> QFN100 uses a different firmware image from QFN68, so rtl_fw_init()
> selects rtl8159-2.fw for it and keeps rtl8159-1.fw for QFN68.
>
> RTL8159 firmware loading has been in the tree since commit a51e171e176c
> ("r8152: Add firmware upload capability for RTL8157/RTL8159"). Released
> kernels have therefore been applying rtl8159-1.fw to QFN100 parts.
>
> Was that harmful on QFN100? If so, this patch fixes a user-visible bug.
> Should the commit message then describe the symptom and carry a Fixes:
> tag?
>
> This also adds a dependency on a new linux-firmware blob. If the blob is missing,
> rtl8152_request_firmware() only warns:
>
> if (rc) {
> rtl_fw->fw = ERR_PTR(rc);
>
> dev_warn(&tp->intf->dev,
> "unable to load firmware patch %s (%ld)\n",
> rtl_fw->fw_name, rc);
> }
>
> Commit a51e171e176c says the RTL8159 needs its PHY firmware to work at
> speeds above 5GBit. A QFN100 user who upgrades the kernel without
> rtl8159-2.fw installed goes from having a PHY firmware patch to having none,
> and only sees a warning in the log. Can that drop links above 5G on QFN100?
>
> Could the commit message mention the new rtl8159-2.fw requirement and
> whether it is already in linux-firmware? If rtl8159-1.fw was not harmful on
> QFN100, would a fallback to it be worth adding when rtl8159-2.fw cannot be
> loaded?
The QFN68 image has not been validated on QFN100. There is no fallback
to it. If rtl8159-2.fw cannot be loaded, the driver warns and continues
without PHY firmware, as for any other missing image.
>
> [ ... ]
>
> --
> Sashiko AI review ·
> https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130063123.2408-1-
> nic_swsd%40realtek.com
Best Regards,
Chih-Kai
next prev parent reply other threads:[~2026-12-01 12:15 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 6:31 [PATCH net-next v10 00/12] r8152: refactor and extend RTL8157/8159 support Chih Kai Hsu
2026-11-30 6:31 ` [PATCH net-next v10 01/12] r8152: fix RTL8156/RTL8156B/RTL8157/RTL8159 up and down settings Chih Kai Hsu
2026-12-01 6:45 ` netdev-bot+sashiko
2026-11-30 6:31 ` [PATCH net-next v10 02/12] r8152: add rtl8157_unload() for RTL8157 and RTL8159 Chih Kai Hsu
2026-12-01 6:46 ` netdev-bot+sashiko
2026-11-30 6:31 ` [PATCH net-next v10 03/12] r8152: add rtl8157_change_mtu() " Chih Kai Hsu
2026-12-01 6:46 ` netdev-bot+sashiko
2026-11-30 6:31 ` [PATCH net-next v10 04/12] r8152: fix flow control for RTL8156/RTL8156B/RTL8157/RTL8159 Chih Kai Hsu
2026-12-01 6:46 ` netdev-bot+sashiko
2026-11-30 6:31 ` [PATCH net-next v10 05/12] r8152: split r8156_init by generation and factor out wait_autoload_done Chih Kai Hsu
2026-11-30 6:31 ` [PATCH net-next v10 06/12] r8152: add new init writes for RTL8156/8156B/8157/8159 Chih Kai Hsu
2026-11-30 6:31 ` [PATCH net-next v10 07/12] r8152: accept PLA and USB firmware blocks for RTL8157 and RTL8159 Chih Kai Hsu
2026-11-30 6:31 ` [PATCH net-next v10 08/12] r8152: split RTL_VER_17 into QFN68 and QFN100 package variants Chih Kai Hsu
2026-12-01 6:46 ` netdev-bot+sashiko
2026-12-01 12:14 ` Chih Kai Hsu [this message]
2026-11-30 6:31 ` [PATCH net-next v10 09/12] r8152: split rtl8156_enable/up/down into per-generation functions Chih Kai Hsu
2026-11-30 6:31 ` [PATCH net-next v10 10/12] r8152: split r8157_hw_phy_cfg into RTL8157 and RTL8159 variants Chih Kai Hsu
2026-12-01 6:46 ` netdev-bot+sashiko
2026-11-30 6:31 ` [PATCH net-next v10 11/12] r8152: add TGPHY register access for RTL8157 and RTL8159 Chih Kai Hsu
2026-12-01 6:46 ` netdev-bot+sashiko
2026-11-30 6:31 ` [PATCH net-next v10 12/12] r8152: enable UPS for RTL8157 and RTL8159 QFN68 Chih Kai Hsu
2026-12-01 6:46 ` netdev-bot+sashiko
2026-12-01 12:21 ` Chih Kai Hsu
2026-11-30 6:35 ` [PATCH net-next v10 00/12] r8152: refactor and extend RTL8157/8159 support netdev-bot+sinfo
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=f3359c643cb245acadae6af46af3ac7b@realtek.com \
--to=hsu.chih.kai@realtek.com \
--cc=andrew+netdev@lunn.ch \
--cc=bjorn@mork.no \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mail@birger-koblitz.de \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nic_swsd@realtek.com \
--cc=pabeni@redhat.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
all inboxes | Powered by JetHome®