🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25216

RE: [PATCH net-next v10 08/12] r8152: split RTL_VER_17 into QFN68 and QFN100 package variants

#25216
From: Chih Kai Hsu
Date: Tue, 01 Dec 2026 12:14
71 lines
15043 bytes
> 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
Technical Details
Message-ID: <f3359c643cb245acadae6af46af3ac7b@realtek.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375003-linux-kernel-netdev=dewy.ru
References: <20261130063123.2408-9-nic_swsd@realtek.com> <179610756648.3146.1576349652810734708@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375003-linux-kernel-netdev=dewy.ru
From: hsu.chih.kai@realtek.com (Chih Kai Hsu)
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <f3359c643cb245acadae6af46af3ac7b@realtek.com>
References: <20261130063123.2408-9-nic_swsd@realtek.com>
 <179610756648.3146.1576349652810734708@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Injection-Info: usenet.network;
	logging-data="1706419"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:c17wifRx6YwsMV0qsxybUcvKK5g= sha256:fqAJ9R1zCIrMrJEnbZyFlC7A32LH/ojPIwU8QjMlcFk=
	sha1:W33WDXErcQgBpAQ7D9Ruc1Z5f0g= sha256:DkjDsqqzXbVAXeCXbFyNCSHL0+a5xLcN2DuVBYhD3oo=
Content-Language: zh-TW
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 9C40F117364; Tue,  1 Dec 2026 15:16:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.051
X-Spam-Status: No, score=-2.051 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=realtek.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id l7gMKRuUasLL;
	Tue,  1 Dec 2026 15:16:16 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-375003-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=realtek.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id B1235117240; Tue,  1 Dec 2026 15:16:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id C80FD27D4B; Tue,  1 Dec 2026 12:16:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1796127351;
	b=ielxZ5rZ4Y1SvRjm9PK9c4g0tzfiSOY7WD6vic203bC7dudoFVmCp6pk+kesN8NGBgUh
	 qOuHXFQop0WRZqGzf1U2PASDZo0+nMNCuoYBeom/1cGYqY4QVAbEGnRVsyxJGzU3eQy7C
	 2te0aKNAnhgvpITx+EB9Nmpqobxv5pFuLIAI/tjMGlhjT9m2SaeK7Y8xOwXZerTHXRUf2
	 PeqpB8B0QbuG0yJoHLV8iPs3AQQx/Dv6/+LqsPKX9z+c0n3h3QSqL8/ZeTtSTYVNEVxOe
	 LonhS0e9w4L+0lgb3Nb9Y0avUKnAIqFbPHe64TgxKKbws0YZvXZeq1mNJslVbDO75Cg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796127351;
	h=X-Original-To:Received:DMARC-Filter:X-SpamFilter-By:DKIM-Signature:
	 Received:Received:Received:From:To:CC:Subject:Thread-Topic:
	 Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:
	 Content-Language:Content-Type:Content-Transfer-Encoding:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version;
	bh=+Ywgh09XDY+weyIlcZzZWwfgdlUIhQeIr+NYnJFLvJg=;
	b=Ify1/9HKAe0BdblKAgUsFCl/qa/P28jwSS2DxCgPjtuMXVwmK/9TykNg5NO7UiBxA6cY
	 ydIgfbmtnLcbkRDK+ihsc6xfUSHgMMH64vJ8IbB8oJAgac+2J8PSux7ReMBApjjGZiyjo
	 T1K/VXbaeqP2IM5kid9unP0XHpRFvbz28VOlO34jIzTQ1m8sHr1ZwQW8Aiv8A5zCd62GK
	 asisTrBCZRbXMsOYgizM+Jz5qdVliAPNaHLiIHvYmiLPeMEvEMYI08X7rtqMFk4z47ICG
	 pRrC89uIkYVcSeHfHnb1b3aQmA3qNMqMkXFYEFC3oEkC3+7/x4ATmanRFpIJm9WHIyg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=RcUaqZoT;
	dmarc=pass header.from=realtek.com;
	spf=pass smtp.mailfrom=realtek.com;
	arc=fail smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id A1A2B606A687;
	Tue,  1 Dec 2026 12:15:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=RcUaqZoT
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=211.75.126.72
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796127350;
	b=vnSEb8J5xATIyu8HHfN04EyrnZgobAGIXgCdxG/gWxE8ZbeXmIEQkpY3BNWsES3EsHL5
	 W5DXQb2KLPV1LqEoPlyz0kK+RAegM1UajMhtAY4HT5YCJmE7xrNSUjw3NRSsCLOuXfAH6
	 UbsrgjnG8W4WdHvOQbWX0Q59kWogb6x4HsAvSdqxHtr4IlF3nN49kV5zHtKBLW7F1U4ux
	 fy2jPAA81fbY8aox7d53GMOfsREd1W+lRwRrBqZ+VV7ubb2Y72gZZ5sHtxKuNVCrqmuoM
	 upLtN157n+JlcU2nF/Dw9BJglalr+wOOI2Etixw9S1b3X4ZfuoEc8E1/0bL6y+hrlJA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796127350;
	h=DMARC-Filter:X-SpamFilter-By:DKIM-Signature:Received:Received:
	 Received:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:
	 References:In-Reply-To:Accept-Language:Content-Language:
	 x-originating-ip:Content-Type:Content-Transfer-Encoding:MIME-Version;
	bh=+Ywgh09XDY+weyIlcZzZWwfgdlUIhQeIr+NYnJFLvJg=;
	b=nzV0d3WBMnysufP/zXOWQhoEBzYN9u/U4/8tbIyVDiS/c548Nf8Df/Yk8KRsAeZFPoVM
	 wovTYj+SO8USwjnUMNYoNwQpF6PDtflnIe1VpgqvyW01AJI4Wju64+KzEUdgYQSe4RilZ
	 uKEhY7aZ4U1+HWeb5LilD6V5/ErHOw1GD6Jl1PJ3kOxTQvckJuIfc28jfrchC19Jc5K4R
	 PymAJOXi2Q4U8tPSTAengb8kJ1iCgxhpvmhGgfC9bTQCPuT8ZWafzm+A4ZY/rflYzduK0
	 WvbrvbrivPrEDhCe2Iq8umAiB5i4IsTUkt+QXCgPFr7MWZIT4SshUcPVvfwE8aZZAnA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=realtek.com;
	spf=pass smtp.mailfrom=realtek.com;
	dkim=pass header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=RcUaqZoT;
	arc=none smtp.remote-ip=211.75.126.72
X-Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6421606A320;
	Tue,  1 Dec 2026 12:15:49 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C6421606A320
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com
X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 6B1CEvYV2031887, This message is accepted by code: ctloc85258
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realtek.com; s=dkim;
	t=1796127297; bh=+Ywgh09XDY+weyIlcZzZWwfgdlUIhQeIr+NYnJFLvJg=;
	h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding:MIME-Version;
	b=RcUaqZoT1UMCB2UKV8MupZYxXiZu70oDxZ0zGQF8fZ3iGT9ZtfK5ieyG5KCM4CNdM
	 /WbEbLNT7m0fFyA/m73U+abMtqNMHBbx6hVOuL4CYwuUh6X6Fr0oJT4zWs+rk9s8K9
	 Nf+3l4SEbxGKDoHpKqzoNBArAegydGHJDXyroWJ73IqhS7hwjjtDSzYeIM7aEdhBBe
	 jJsHT+Iovi8OCSBCDaLjcLpReBcaq/CiYJlFuQwem+S/WbRJvwXgGHhOi0xgqaWq3a
	 F6JKt/5OhL2ngTTagNwHLf1U4RZluv+AFQGuC/zGVdERThi5hUW5dF8O3FMPoAXf1r
	 Be184yny5fbNA==
X-Received: from mail.realtek.com (rtkexhmbs03.realtek.com.tw[10.21.1.53])
	by rtits2.realtek.com.tw (8.15.2/3.29/5.94) with ESMTPS id 6B1CEvYV2031887
	(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL);
	Tue, 1 Dec 2026 20:14:57 +0800
X-Received: from RTKEXHMBS06.realtek.com.tw (10.21.1.56) by
 RTKEXHMBS03.realtek.com.tw (10.21.1.53) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.2.2562.56; Tue, 1 Dec 2026 20:14:56 +0800
X-Received: from RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef]) by
 RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef%10]) with mapi id
 15.02.2562.056; Tue, 1 Dec 2026 20:14:56 +0800
X-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>
X-Thread-Topic: [PATCH net-next v10 08/12] r8152: split RTL_VER_17 into QFN68
 and QFN100 package variants
X-Thread-Index: AQHdgJRv2l31rPsGPE2GuqrSFtBDmLdHOAIAgADgMcA=
X-In-Reply-To: <179610756648.3146.1576349652810734708@kernel.org>
X-Accept-Language: zh-TW, en-US
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list