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=1796158562; b=U/Xhm3ta7wXR9nOhWGAgH9S1Z6wnWxdGZZ9nL2FEH5yZd6Ekp70BBhe/FHo1Hz8sm9Zf 9wSZdE67wZBLBLdkhax2nSmk2GxRWNy+rK86wX/IBIkqSARYzXQfA7bRm1RhvZswmXYye oVLg1UqLMc378NbaqGBxQUk5/rw6dMe/8u2nxGKOopiK/JsRJyMmhHTXbWrX9QuSGE2mI jWQ/5N4U56V1NXX6NSkh3/dJLRrXOoJM0ryZFLXXl2iN8oTHCazTvYpIgimD4nQv/ddU3 4HUOYyeoE1KnEw0yIGkUs1utA82UB9/L+7R4B7Hxeez09QTWmFEdxc1Jtdt06OQIYOg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796158562; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=gHit3urv7pMjFajiGvJwu4072jr6P4zjjsFSZ4Pd2so=; b=ynah1YREIbphaCimznCRAipkVRzxJUstXpFqqln5HwOiMhZPVW+CBI7DcRXF9SpnO5/S 7I31oDHIwccaYVT3oXHtMamkTPF+U4g9P0/fvFORd/hiNF4+USYfP04cWjY+gvAdn3agu 91X2bD6UGpB2BkP7yxU8w/Pg0iF/+I5ChZTKfP96YN6ol4Hi5P3F9F55RfIjJEoaRrX02 EelFUBth1WnOcepRj0RGYuoids4fHBnCNIunCce/WhpSQP7sPikMRdZGT8H1mFl662+Dm 0VU9U+omsF0Rtc5XvnJJY2oq9iW8RffezvoXtjrUe9a9yJzMGaYMMkaPWLtHrWgWSZg== 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=P5QNPVsv; 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 B1467606A31A for ; Tue, 1 Dec 2026 20:56:02 +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=P5QNPVsv Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79B9E1F000C1; Tue, 1 Dec 2026 20:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796158562; bh=gHit3urv7pMjFajiGvJwu4072jr6P4zjjsFSZ4Pd2so=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=P5QNPVsvYZbTTzpjeB80mTpKmK3G0EpG+w5opBa+YWqkHzD4m922Vo3WtNfOdbXjB wU8uJfLCGXhERdfeDbeEbjUwCbNN28hG8hxAKytfRfo+/YHPz/OiHR8c0kMUtj5cFS XO9GODQ/xdCVFWEYSWbleflwhCwyftWfMjeyXQZq8ZK2LGlRVD8HIt9dBenzpfxcCY KW8UswEc5kmoDnBHqdlpFYS6rSkFEPZ1rTIm5lR9cNR/xnFF03TcmPr7NSEu+WxgfW jQVL/9STp6scVeZ4BxfXlMqZPIa6O6zO2kuNcAzqYjDDywDbVLU6YNx1R+VynEQTba cutsdlK6gCIxA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] PCI: Add hotplug bridge quirk for PLX PEX 8616/8617 Reply-To: sashiko-reviews@lists.linux.dev To: "Florian Fainelli" , linux-pci@vger.kernel.org In-Reply-To: <20261201204844.477863-1-florian.fainelli@broadcom.com> References: <20261201204844.477863-1-florian.fainelli@broadcom.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 20:56:02 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] PCI: quirk_plx_hotplug_downstream() forces hotplug on all PEX 8616/8617 ports -- commit 612fc82a4bcb6bed7fd13ad74e78819a0bf1c86c Author: Samyon Furman PCI: Add hotplug bridge quirk for PLX PEX 8616/8617 This commit adds a header fixup that marks downstream ports of PLX PEX 8616 and PEX 8617 PCIe switches as hotplug bridges. > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index fff85df3c301c..c1ca094d6d6cf 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -3307,6 +3307,19 @@ static void quirk_hotplug_bridge(struct pci_dev *d= ev) > } > DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_HINT, 0x0020, quirk_hotplug_bridg= e); > =20 > +/* > + * Treat the PLX PEX 8616/8617 downstream ports as hotplug bridges so th= at > + * resources are reserved for devices hot-added behind them. The size of= the > + * reservation can be set with pci=3Dhpmemsize=3DnnM and pci=3Dhpiosize= =3Dnn. > + */ > +static void quirk_plx_hotplug_downstream(struct pci_dev *dev) > +{ > + if (pci_pcie_type(dev) =3D=3D PCI_EXP_TYPE_DOWNSTREAM) > + quirk_hotplug_bridge(dev); > +} > +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_PLX, 0x8616, quirk_plx_hotplug_do= wnstream); > +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_PLX, 0x8617, quirk_plx_hotplug_do= wnstream); [Severity: Medium] Should quirk_plx_hotplug_downstream() really force is_hotplug_bridge =3D 1 = on every downstream port of every PLX PEX 8616 and PEX 8617 switch? Unlike the HINT HB6 conventional PCI-to-PCI bridge, the PEX 8616 and 8617 are general-purpose PCIe switches where hotplug capability is a per-port board property normally advertised via PCI_EXP_SLTCAP_HPC (configured in switch EEPROM, strapping or firmware) and detected by set_pcie_hotplug_bridge(). Even when no pci=3Dhp* command-line options are passed, marking every downstream port with is_hotplug_bridge =3D 1 causes __pci_bus_size_bridges() to reserve the default hotplug I/O (256B, rounded to a 4KB window), MMIO (2MB) and prefetchable MMIO (2MB) windows on all ports, including unused ports and ports wired to fixed endpoints. Because is_pciehp remains 0, pci_bridge_d3_possible() also disables D3 power management on all PEX 8616/8617 downstream ports across all platforms. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201204844.4778= 63-1-florian.fainelli@broadcom.com?part=3D1