> 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…%40realtek.com
Best Regards, Chih-Kai