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=1796354863; b=qE6QojlE94GUqxR8OwDYqoKSM0JN/kcsz8Ae9mPskap+UNOv4NiL2zitu2wiObVIUzuU LSOt+VRx+G8AFd8uExeNn5WYYzShxZqVFX1bhBflRinGZf17C88kq7/7fx1qRALWRr1E6 VHhJY8hzUoIFAgMbX6z2n8u915pHyy4dnVwAR08U5+k/t9y0Li/cIh9oBicFEP4tHdU/S xBEm36xYrQRg2a/St5U1ui8GBFk62KQqHVM4aIfeH8xjbfAjBG/iS7BT4Q83r1vGwSnWS 5WAbOvzhzgG6weTGuhtjcu/7jlRhNHE0wVkqOLi22G9yFc7867rd3zgY77iAxUymXTA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796354863; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=KfVgXoSs4IiZvNhKh6UIoQDdtES/OfUpBRzGK1KUgVU=; b=KZgbLlVpzDX2JGU1JrMgDBTsq3zTbpHSw0qMFVzixpdhTGy7S4AQgeLO1kgvM79XIffs IEEm2TMfd2aXH2G/lAtKQIvcm3cJx/nJnbkWXylx9H91nXhm7LZnVN8EQKtmz2eOc081L bwWc/s3xuwBWOL9CYCfFgLD1TTfXDlU6nSccINjXjWBT8XnWKN4IEaIAResnn8GwFislP pI0nYctstX3KZbF+Tlwf/IP4Ce84wHiF7Sgc1Qp28kYONqLE53mjer5waA5GKWjSo3Sto swdxWneWNPJRmEgk4eP+Jep5Vo2dBFqCE0TsTVC6EyhBI0C0sF6fHJPf3YxX24soA7w== 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=Us5VyXzP; 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 66B97606A322; Fri, 4 Dec 2026 03:27:43 +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=Us5VyXzP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 101FA1F000CE; Fri, 4 Dec 2026 03:27:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796354863; bh=KfVgXoSs4IiZvNhKh6UIoQDdtES/OfUpBRzGK1KUgVU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Us5VyXzPaSvPr8Z6ceHo58X58D72qoy/fpsPkiCAX9hMYUgGKw3XdFb5DRGCRTWv8 rVKOS41SXAXZqSb9ro0O6JbOJGrpP2v7jDyriVjUPUeLSmAaB7EWHRcHVnJjLkQoak gkQOhpOlOFSYv7cUAgLTJjpwPzUUov0w6VvgzQkCkrMIRrCKrMhCz2oxrY9F3hl0i6 pHhXMwi9O323YrQLP1IfIMIsXfd1t5HnKgOovBthPTTzjGwEVWNiSTgkEa8aqMYHGp 52cCk3EzFfzpKBCBQ291Xwc6/lKmq/t0eRfxBZgoD2yTL1brMiBJg1NVy4UpZTET8q lQ6vFfxrP3b6Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 2/5] PCI/pwrctrl: Add the Tegra264 iGPU to the generic match table Reply-To: sashiko-reviews@lists.linux.dev To: "Mikko Perttunen" Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204-b4-t264-igpu-pci-v2-2-e36cd85f4778@nvidia.com> References: <20261204-b4-t264-igpu-pci-v2-0-e36cd85f4778@nvidia.com> <20261204-b4-t264-igpu-pci-v2-2-e36cd85f4778@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 03:27:42 +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: - [High] PCI/pwrctrl: slot_pwrctrl_power_on/off() lack power-domain control -- commit 1bafcd2e006741d3689d96eb13759cb82bf489d9 Author: Mikko Perttunen PCI/pwrctrl: Add the Tegra264 iGPU to the generic match table This commit adds "pci10de,2b00" to slot_pwrctrl_of_match[] so the generic PCI power-control driver binds to the Tegra264 GB10B GPU platform device. > diff --git a/drivers/pci/pwrctrl/generic.c b/drivers/pci/pwrctrl/generic.c > index 04aa52ef7fe2b..9c0d3baafb95e 100644 > --- a/drivers/pci/pwrctrl/generic.c > +++ b/drivers/pci/pwrctrl/generic.c > @@ -118,6 +118,10 @@ static const struct of_device_id slot_pwrctrl_of_mat= ch[] =3D { > { > .compatible =3D "pciclass,0604", > }, > + /* NVIDIA Tegra264 GB10B GPU */ > + { > + .compatible =3D "pci10de,2b00", > + }, > /* Renesas UPD720201/UPD720202 USB 3.0 xHCI Host Controller */ > { > .compatible =3D "pci1912,0014", [Severity: High] Does binding pci-pwrctrl-generic to pci10de,2b00 break the Tegra264 GPU across system suspend and resume because generic.c does not manage power domains? slot_pwrctrl_power_on() and slot_pwrctrl_power_off() only handle pwrseq, regulators, and clocks. TEGRA264_POWER_DOMAIN_GPU is therefore powered on only as a side effect of platform_probe() calling dev_pm_domain_attach(), which leaves genpd's noirq sleep callbacks hooked to the pwrctrl device. On system suspend (s2idle or mem), genpd_suspend_noirq() -> genpd_finish_suspend() -> genpd_sync_power_off() powers off the GPU domain while the PCIe link is active, because tegra264_pcie_driver has no system PM ops to quiesce the link or retrain it on resume. Under s2idle when the GPU stayed in D0, pci_pm_resume_noirq() also skips pci_pm_default_resume_early(), leaving the cold-powergated GPU with uninitialized PCI configuration space. More broadly, because pci_pwrctrl_create_device() registers the pwrctrl device as a child of the PCI host controller, implicit genpd noirq callbacks cut endpoint power before the parent's suspend_noirq quiesces the link and restore it after resume_noirq calls slot_pwrctrl_power_on(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-b4-t264-ig= pu-pci-v2-0-e36cd85f4778@nvidia.com?part=3D2