From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796107568; b=unrrWXxyNz2IQk9xEr26/GP9lUUEbMk23iLe6kfupe5LVkjXP17e5b3T3yCfVS78cQ1z 5W6zb963HJoWgAONdU0DmNhitrfhGI3EHEwfxY5jwEEzPo9SzdkgMyP5gnsgy3Pjes+li hjeHtiH5S/aM75v/nlgLWWeh9W/udG7clTok47PPg/CLmxJVvJ7OkkfH4qWHeo+Dftpm4 YoFTXVzcbxgGX30Jz6NveftO/478Hu+jqf4CI14y7iJKUKeuyMIa9CDvltjcecIl8dZwl Tq/eghTWPABSlkilSA6tJl6Um3G3WA7ip/5B50skLPmqWrdenaYW6PXAapahzKxuqww== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796107568; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=yeMEGpYUmyjzjAu+7HNsiykeRE5Z3SULuf3DMjXHV/w=; b=cpec9P96gdm/dCdtFLD6qP/Qg+edjwpN+5+/m7AbcQrTpZZIEIt85ZnL05Ja14unwJcH U5XAVb+lRR1+hT6sJXJd/TMu1Y5Vo8ZIE5x+A3PS+Wr3+84iAYx5MB2TY6/Uv0hgaXIQk VcbLDcGlAPPVwPUkkpAkVVP/rbRcwvkObbgRKKUt8tkM/xA3NlaHAtzXHkCYMWUsSaug3 1QoV30MvJ3ep/7Pmi8VlNz4kRnQf+aD6ZUCdjCv/8l9XUpN+t37iDrF/5SW4D83IXB7Qk Pr977syfCC5YuNaf2mubgBTZ2cS/h8gN8Y/dUtbIEyXxXnzQyzqgI59N/E010ipZjxQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cg8q3AFo; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 276D0606A31A; Tue, 1 Dec 2026 06:46:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cg8q3AFo Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED20C1F0089C; Tue, 1 Dec 2026 06:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796107567; bh=yeMEGpYUmyjzjAu+7HNsiykeRE5Z3SULuf3DMjXHV/w=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=cg8q3AFohsHmvOgSGTVizlhqa3ZUVqQDi2rcjNSmHw+4R7KG5B7DDoZEYlXUMe9WM vLdTgJnlnzL6wmNINqPIkLJmXn+3+KsTFFYnX1D3TYCbRk1yrO3mOuI11NofLsSz8S 9PZiuSQi58536eyV3J8PNbQiiatnnHAqVmAahmgE4MNHtoqh6E+cglzsFSuqF+Cl7N cr7sqEZnxEyL87+lDcWf+W2BOGbOm7LTQhV1YayI9yPwYNweWPFqA145FqmD7J4HXX IJfIkw2HV9UB2O8M2m+NIqB7Iz/+OgSKZSDJHGUGEZ0XoqGptsZWOakAQKJz/8llc3 LfULGeE9p5qKQ== Subject: Re: [PATCH net-next v10 08/12] r8152: split RTL_VER_17 into QFN68 and QFN100 package variants From: netdev-bot+sashiko@kernel.org To: hsu.chih.kai@realtek.com Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, nic_swsd@realtek.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, edumazet@google.com, bjorn@mork.no, pabeni@redhat.com, andrew+netdev@lunn.ch, mail@birger-koblitz.de Date: Tue, 01 Dec 2026 06:46:06 +0000 Message-ID: <179610756648.3146.1576349652810734708@kernel.org> In-Reply-To: <20261130063123.2408-9-nic_swsd@realtek.com> References: <20261130063123.2408-9-nic_swsd@realtek.com> X-sashiko-severity: Medium Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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? [ ... ] -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130063123.2408-1-nic_swsd%40realtek.com