From: sashiko-bot@kernel.org
To: "Mikko Perttunen" <mperttunen@nvidia.com>
Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 2/5] PCI/pwrctrl: Add the Tegra264 iGPU to the generic match table
Date: Fri, 04 Dec 2026 03:27:42 +0000 [thread overview]
Message-ID: <sashiko-outbox-249047@kernel.org> (raw)
In-Reply-To: <20261204-b4-t264-igpu-pci-v2-2-e36cd85f4778@nvidia.com>
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 <mperttunen@nvidia.com>
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_match[] = {
> {
> .compatible = "pciclass,0604",
> },
> + /* NVIDIA Tegra264 GB10B GPU */
> + {
> + .compatible = "pci10de,2b00",
> + },
> /* Renesas UPD720201/UPD720202 USB 3.0 xHCI Host Controller */
> {
> .compatible = "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().
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-b4-t264-igpu-pci-v2-0-e36cd85f4778@nvidia.com?part=2
next prev parent reply other threads:[~2026-12-04 3:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 3:05 [PATCH v2 0/5] Tegra264 GB10B boards the bus Mikko Perttunen
2026-12-04 3:05 ` [PATCH v2 1/5] PCI/pwrctrl: Enable pwrctrl for devices powered by a power domain Mikko Perttunen
2026-12-04 3:05 ` [PATCH v2 2/5] PCI/pwrctrl: Add the Tegra264 iGPU to the generic match table Mikko Perttunen
2026-12-04 3:27 ` sashiko-bot [this message]
2026-12-04 3:05 ` [PATCH v2 3/5] PCI: tegra264: Power endpoint devices before enumeration Mikko Perttunen
2026-12-04 3:22 ` sashiko-bot
2026-12-04 3:05 ` [PATCH v2 4/5] arm64: tegra: Add node for the GB10B GPU on Tegra264 Mikko Perttunen
2026-12-04 3:26 ` sashiko-bot
2026-12-04 3:05 ` [PATCH v2 5/5] arm64: tegra: Enable and mark the Tegra264 GPU PCIe controller as ATS supported Mikko Perttunen
2026-12-04 3:18 ` sashiko-bot
2026-12-04 3:27 ` [PATCH v2 0/5] Tegra264 GB10B boards the bus sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-249047@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mperttunen@nvidia.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox