* [PATCH v2 1/5] PCI/pwrctrl: Enable pwrctrl for devices powered by a power domain
2026-12-04 3:05 [PATCH v2 0/5] Tegra264 GB10B boards the bus Mikko Perttunen
@ 2026-12-04 3:05 ` Mikko Perttunen
2026-12-04 3:05 ` [PATCH v2 2/5] PCI/pwrctrl: Add the Tegra264 iGPU to the generic match table Mikko Perttunen
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Mikko Perttunen @ 2026-12-04 3:05 UTC (permalink / raw)
To: Bartosz Golaszewski, Manivannan Sadhasivam, Bjorn Helgaas,
Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
Thierry Reding, Jonathan Hunter, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-pci, linux-kernel, linux-tegra, devicetree, Mikko Perttunen,
Bartosz Golaszewski
Update pci_pwrctrl_is_required to return true for devices that require a
power domain specified by the power-domains property, such as the
integrated GPU on Tegra264.
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
---
drivers/pci/pwrctrl/core.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/pwrctrl/core.c b/drivers/pci/pwrctrl/core.c
index 0e2387cf4657..437507699beb 100644
--- a/drivers/pci/pwrctrl/core.c
+++ b/drivers/pci/pwrctrl/core.c
@@ -146,8 +146,8 @@ EXPORT_SYMBOL_GPL(devm_pci_pwrctrl_device_set_ready);
* 1. Presence of compatible property with "pci" prefix to match against the
* pwrctrl driver (AND)
* 2. At least one of the power supplies defined in the devicetree node of the
- * device (OR) in the remote endpoint parent node to indicate pwrctrl
- * requirement.
+ * device (OR) in the remote endpoint parent node (OR) a power-domains
+ * property in the device node to indicate pwrctrl requirement.
*/
static bool pci_pwrctrl_is_required(struct device_node *np)
{
@@ -165,6 +165,9 @@ static bool pci_pwrctrl_is_required(struct device_node *np)
if (of_pci_supply_present(np))
return true;
+ if (of_property_present(np, "power-domains"))
+ return true;
+
if (of_graph_is_present(np)) {
for_each_endpoint_of_node(np, endpoint) {
struct device_node *remote __free(device_node) =
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH v2 2/5] PCI/pwrctrl: Add the Tegra264 iGPU to the generic match table
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 ` Mikko Perttunen
2026-12-04 3:27 ` sashiko-bot
2026-12-04 3:05 ` [PATCH v2 3/5] PCI: tegra264: Power endpoint devices before enumeration Mikko Perttunen
` (2 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Mikko Perttunen @ 2026-12-04 3:05 UTC (permalink / raw)
To: Bartosz Golaszewski, Manivannan Sadhasivam, Bjorn Helgaas,
Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
Thierry Reding, Jonathan Hunter, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-pci, linux-kernel, linux-tegra, devicetree, Mikko Perttunen,
Bartosz Golaszewski
Tegra264 exposes its integrated GB10B GPU as PCI device 10de:2b00.
Its power domain must be enabled before enumeration.
Match pci10de,2b00 to let the generic power-control driver bind to the
GPU's platform device and enable its power domain before enumeration.
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
---
drivers/pci/pwrctrl/generic.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/pci/pwrctrl/generic.c b/drivers/pci/pwrctrl/generic.c
index 04aa52ef7fe2..9c0d3baafb95 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",
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH v2 2/5] PCI/pwrctrl: Add the Tegra264 iGPU to the generic match table
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
0 siblings, 0 replies; 10+ messages in thread
From: sashiko-bot @ 2026-12-04 3:27 UTC (permalink / raw)
To: Mikko Perttunen; +Cc: linux-pci, devicetree, robh, conor+dt
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 3/5] PCI: tegra264: Power endpoint devices before enumeration
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:05 ` 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:05 ` [PATCH v2 5/5] arm64: tegra: Enable and mark the Tegra264 GPU PCIe controller as ATS supported Mikko Perttunen
4 siblings, 1 reply; 10+ messages in thread
From: Mikko Perttunen @ 2026-12-04 3:05 UTC (permalink / raw)
To: Bartosz Golaszewski, Manivannan Sadhasivam, Bjorn Helgaas,
Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
Thierry Reding, Jonathan Hunter, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-pci, linux-kernel, linux-tegra, devicetree, Mikko Perttunen,
Bartosz Golaszewski
Add calls into the PCI pwrctrl framework to do required power sequencing
for endpoint devices before attempting to enumerate them, and select
PCI_PWRCTRL_GENERIC in Kconfig.
This is required for the integrated GB10B GPU on Tegra264 that requires
a power domain to be enabled before it appears on the PCI bus.
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
---
drivers/pci/controller/Kconfig | 1 +
drivers/pci/controller/pcie-tegra264.c | 22 ++++++++++++++++++++--
2 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig
index d246bbe37948..ab8cb1be28ba 100644
--- a/drivers/pci/controller/Kconfig
+++ b/drivers/pci/controller/Kconfig
@@ -261,6 +261,7 @@ config PCIE_TEGRA264
tristate "NVIDIA Tegra264 PCIe controller"
depends on ARCH_TEGRA || COMPILE_TEST
select PCI_ECAM
+ select PCI_PWRCTRL_GENERIC
help
Say Y here if you want support for the PCIe Host Controller found
on NVIDIA Tegra264 SoCs.
diff --git a/drivers/pci/controller/pcie-tegra264.c b/drivers/pci/controller/pcie-tegra264.c
index c97576ab4a31..1d65ed5d0381 100644
--- a/drivers/pci/controller/pcie-tegra264.c
+++ b/drivers/pci/controller/pcie-tegra264.c
@@ -17,6 +17,7 @@
#include <linux/of_pci.h>
#include <linux/of_platform.h>
#include <linux/pci-ecam.h>
+#include <linux/pci-pwrctrl.h>
#include <linux/pci.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
@@ -391,6 +392,14 @@ static int tegra264_pcie_probe(struct platform_device *pdev)
bridge->sysdata = pcie->cfg;
pcie->ecam = pcie->cfg->win;
+ err = pci_pwrctrl_create_devices(dev);
+ if (err)
+ goto err_free_ecam;
+
+ err = pci_pwrctrl_power_on_devices(dev);
+ if (err)
+ goto err_destroy_pwrctrl;
+
tegra264_pcie_init(pcie);
/*
@@ -402,17 +411,23 @@ static int tegra264_pcie_probe(struct platform_device *pdev)
"PCIe #%u link is down and not hotplug-capable, turning off\n",
pcie->ctl_id);
tegra264_pcie_power_off(pcie);
- goto err_free_ecam;
+ goto err_power_off;
}
err = pci_host_probe(bridge);
if (err < 0) {
dev_err_probe(dev, err, "failed to register Host Bridge\n");
- goto err_free_ecam;
+ goto err_power_off;
}
return 0;
+err_power_off:
+ pci_pwrctrl_power_off_devices(dev);
+err_destroy_pwrctrl:
+ /* Keep devices registered so their drivers can bind before we retry. */
+ if (err != -EPROBE_DEFER)
+ pci_pwrctrl_destroy_devices(dev);
err_free_ecam:
pci_ecam_free(pcie->cfg);
err_put_pm:
@@ -437,6 +452,9 @@ static void tegra264_pcie_remove(struct platform_device *pdev)
pci_remove_root_bus(pcie->bridge->bus);
pci_unlock_rescan_remove();
+ pci_pwrctrl_power_off_devices(&pdev->dev);
+ pci_pwrctrl_destroy_devices(&pdev->dev);
+
pm_runtime_put_sync(&pdev->dev);
tegra_bpmp_put(pcie->bpmp);
pci_ecam_free(pcie->cfg);
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH v2 3/5] PCI: tegra264: Power endpoint devices before enumeration
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
0 siblings, 0 replies; 10+ messages in thread
From: sashiko-bot @ 2026-12-04 3:22 UTC (permalink / raw)
To: Mikko Perttunen; +Cc: linux-pci, devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] PCI: tegra264: tegra264_pcie_remove() cuts endpoint power
with PERST# high
- [Medium] PCI: tegra264: pci_host_probe() error path cuts power with
PERST# deasserted
- [Medium] PCI: tegra264: missing T_PVPERL delay before PERST#
deassertion after power-on
--
commit 9c6be8859c31ca1a1483c10b5694670e67b6b030
Author: Mikko Perttunen <mperttunen@nvidia.com>
PCI: tegra264: Power endpoint devices before enumeration
This commit integrates the Tegra264 PCIe host controller driver with the
PCI pwrctrl framework to power on endpoint devices before enumeration and
power them off on probe failure or removal, and selects
PCI_PWRCTRL_GENERIC in Kconfig.
> diff --git a/drivers/pci/controller/pcie-tegra264.c b/drivers/pci/controller/pcie-tegra264.c
> index c97576ab4a316..1d65ed5d0381b 100644
> --- a/drivers/pci/controller/pcie-tegra264.c
> +++ b/drivers/pci/controller/pcie-tegra264.c
[ ... ]
> @@ -391,6 +392,14 @@ static int tegra264_pcie_probe(struct platform_device *pdev)
> bridge->sysdata = pcie->cfg;
> pcie->ecam = pcie->cfg->win;
>
> + err = pci_pwrctrl_create_devices(dev);
> + if (err)
> + goto err_free_ecam;
> +
> + err = pci_pwrctrl_power_on_devices(dev);
> + if (err)
> + goto err_destroy_pwrctrl;
> +
> tegra264_pcie_init(pcie);
[Severity: Medium]
Should PERST# be asserted before pci_pwrctrl_power_on_devices() and held
for PCIE_T_PVPERL_MS before tegra264_pcie_init() deasserts it?
slot_pwrctrl_power_on() enables regulators and REFCLK without sleeping, and
tegra264_pcie_init() sets XTL_RC_MGMT_PERST_CONTROL_PERST_O_N immediately.
Without the 100 ms T_PVPERL stabilization delay, pwrctrl-managed slots and
endpoints can fail link training and cause probe to return -ENODEV.
[ ... ]
> @@ -402,17 +411,23 @@ static int tegra264_pcie_probe(struct platform_device *pdev)
> "PCIe #%u link is down and not hotplug-capable, turning off\n",
> pcie->ctl_id);
> tegra264_pcie_power_off(pcie);
> - goto err_free_ecam;
> + goto err_power_off;
> }
>
> err = pci_host_probe(bridge);
> if (err < 0) {
> dev_err_probe(dev, err, "failed to register Host Bridge\n");
> - goto err_free_ecam;
> + goto err_power_off;
> }
>
> return 0;
>
> +err_power_off:
> + pci_pwrctrl_power_off_devices(dev);
> +err_destroy_pwrctrl:
> + /* Keep devices registered so their drivers can bind before we retry. */
> + if (err != -EPROBE_DEFER)
> + pci_pwrctrl_destroy_devices(dev);
[Severity: Medium]
Can the pci_host_probe() failure path cut endpoint power while PERST# is
still deasserted and the link is active?
Unlike the link-down path above, this jumps straight to err_power_off
without asserting PERST# or calling tegra264_pcie_power_off(). Powering
off endpoint supplies, REFCLK, and PM domains with PERST# high violates
PCIe power-down sequencing and forces a surprise link down.
[ ... ]
> @@ -437,6 +452,9 @@ static void tegra264_pcie_remove(struct platform_device *pdev)
> pci_remove_root_bus(pcie->bridge->bus);
> pci_unlock_rescan_remove();
>
> + pci_pwrctrl_power_off_devices(&pdev->dev);
> + pci_pwrctrl_destroy_devices(&pdev->dev);
[Severity: Medium]
Does powering off and destroying the pwrctrl devices here drop the link and
break unbind/rebind?
tegra264_pcie_remove() intentionally leaves PERST# deasserted so the link
stays up for rebind. Here pci_pwrctrl_power_off_devices() cuts endpoint
supplies and REFCLK, and pci_pwrctrl_destroy_devices() powers off the
endpoint PM domain via device_unbind_cleanup() while PERST# remains high.
This violates PCIe power-down sequencing and forces a surprise link down.
On rebind, XTL_RC_MGMT_PERST_CONTROL_PERST_O_N is already set, so
tegra264_pcie_init() emits no reset pulse and link re-establishment fails
without a controller reset.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-b4-t264-igpu-pci-v2-0-e36cd85f4778@nvidia.com?part=3
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 4/5] arm64: tegra: Add node for the GB10B GPU on Tegra264
2026-12-04 3:05 [PATCH v2 0/5] Tegra264 GB10B boards the bus Mikko Perttunen
` (2 preceding siblings ...)
2026-12-04 3:05 ` [PATCH v2 3/5] PCI: tegra264: Power endpoint devices before enumeration Mikko Perttunen
@ 2026-12-04 3:05 ` 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
4 siblings, 1 reply; 10+ messages in thread
From: Mikko Perttunen @ 2026-12-04 3:05 UTC (permalink / raw)
To: Bartosz Golaszewski, Manivannan Sadhasivam, Bjorn Helgaas,
Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
Thierry Reding, Jonathan Hunter, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-pci, linux-kernel, linux-tegra, devicetree, Mikko Perttunen
While the integrated GB10B GPU on Tegra264 is on the PCI bus, it
requires a BPMP power domain to be enabled or it won't enumerate on the
bus. Therefore, describe it and the power domain in the device tree to
allow the power domain to be enabled prior to enumeration.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
---
arch/arm64/boot/dts/nvidia/tegra264.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/nvidia/tegra264.dtsi b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
index 5ab34cd09a3d..4c8b320ecc40 100644
--- a/arch/arm64/boot/dts/nvidia/tegra264.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
@@ -3597,6 +3597,12 @@ pcie@0 {
#address-cells = <3>;
#size-cells = <2>;
ranges;
+
+ gpu@0 {
+ compatible = "pci10de,2b00";
+ reg = <0x00010000 0x0 0x0 0x0 0x0>;
+ power-domains = <&bpmp TEGRA264_POWER_DOMAIN_GPU>;
+ };
};
};
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH v2 4/5] arm64: tegra: Add node for the GB10B GPU on Tegra264
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
0 siblings, 0 replies; 10+ messages in thread
From: sashiko-bot @ 2026-12-04 3:26 UTC (permalink / raw)
To: Mikko Perttunen; +Cc: linux-pci, devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: tegra264: missing DT schema for pci10de,2b00 GPU
node
--
commit bb7dfec38a138e5ea16ca6a0403e0a5c26bbf67e
Author: Mikko Perttunen <mperttunen@nvidia.com>
arm64: tegra: Add node for the GB10B GPU on Tegra264
This commit adds a gpu@0 PCI device node for the GB10B GPU with its BPMP
power domain to the Tegra264 device tree so the power domain can be enabled
before PCI enumeration.
> diff --git a/arch/arm64/boot/dts/nvidia/tegra264.dtsi b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> index 5ab34cd09a3d0..4c8b320ecc403 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> @@ -3597,6 +3597,12 @@ pcie@0 {
> #address-cells = <3>;
> #size-cells = <2>;
> ranges;
> +
> + gpu@0 {
> + compatible = "pci10de,2b00";
> + reg = <0x00010000 0x0 0x0 0x0 0x0>;
> + power-domains = <&bpmp TEGRA264_POWER_DOMAIN_GPU>;
> + };
[Severity: Low]
Should there be a DT binding schema under Documentation/devicetree/bindings/
for "pci10de,2b00"?
Commit "PCI/pwrctrl: Add the Tegra264 iGPU to the generic match table" adds
"pci10de,2b00" to slot_pwrctrl_of_match in drivers/pci/pwrctrl/generic.c,
while this node pairs it with power-domains. Without a schema, make
dtbs_check and make dt_compatible_check fail on the undocumented compatible.
For comparison, the other PCI endpoint in slot_pwrctrl_of_match
("pci1912,0014") has a dedicated schema in
Documentation/devicetree/bindings/usb/renesas,upd720201-pci.yaml.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-b4-t264-igpu-pci-v2-0-e36cd85f4778@nvidia.com?part=4
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 5/5] arm64: tegra: Enable and mark the Tegra264 GPU PCIe controller as ATS supported
2026-12-04 3:05 [PATCH v2 0/5] Tegra264 GB10B boards the bus Mikko Perttunen
` (3 preceding siblings ...)
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:05 ` Mikko Perttunen
2026-12-04 3:18 ` sashiko-bot
4 siblings, 1 reply; 10+ messages in thread
From: Mikko Perttunen @ 2026-12-04 3:05 UTC (permalink / raw)
To: Bartosz Golaszewski, Manivannan Sadhasivam, Bjorn Helgaas,
Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
Thierry Reding, Jonathan Hunter, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-pci, linux-kernel, linux-tegra, devicetree, Mikko Perttunen
PCIe C0 connects to the integrated GPU and is internal to the SoC.
Therefore enable it directly in the SoC device tree file.
At the same time, mark it as ats-supported -- the GPU issues ATS
requests and this is required to enable their handling.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
---
arch/arm64/boot/dts/nvidia/tegra264.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/nvidia/tegra264.dtsi b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
index 4c8b320ecc40..9f39b5c52a01 100644
--- a/arch/arm64/boot/dts/nvidia/tegra264.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
@@ -3580,6 +3580,7 @@ pci@c000000 {
iommu-map = <0x0 &smmu2 0x10000 0x10000>;
msi-map = <0x0 &its 0x210000 0x10000>;
dma-coherent;
+ ats-supported;
ranges = <0x81000000 0x00 0x84000000 0xd0 0x84000000 0x00 0x00200000>, /* I/O */
<0x82000000 0x00 0x20000000 0x00 0x20000000 0x00 0x08000000>, /* non-prefetchable memory (128 MiB) */
@@ -3587,7 +3588,6 @@ pci@c000000 {
bus-range = <0x0 0xff>;
nvidia,bpmp = <&bpmp 0>;
- status = "disabled";
pcie@0 {
device_type = "pci";
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH v2 5/5] arm64: tegra: Enable and mark the Tegra264 GPU PCIe controller as ATS supported
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
0 siblings, 0 replies; 10+ messages in thread
From: sashiko-bot @ 2026-12-04 3:18 UTC (permalink / raw)
To: Mikko Perttunen; +Cc: linux-pci, devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] arm64: tegra: ats-supported violates nvidia,tegra264-pcie DT
schema
--
commit f019de47724a62a26cf927081ed9043a478dfabc
Author: Mikko Perttunen <mperttunen@nvidia.com>
arm64: tegra: Enable and mark the Tegra264 GPU PCIe controller as ATS supported
This commit enables the internal GPU PCIe controller (pci@c000000) in
tegra264.dtsi and adds the ats-supported property to it.
> diff --git a/arch/arm64/boot/dts/nvidia/tegra264.dtsi b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> index 4c8b320ecc403..9f39b5c52a018 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra264.dtsi
> @@ -3580,6 +3580,7 @@ pci@c000000 {
> iommu-map = <0x0 &smmu2 0x10000 0x10000>;
> msi-map = <0x0 &its 0x210000 0x10000>;
> dma-coherent;
> + ats-supported;
[Severity: Low]
Will adding ats-supported here fail make dtbs_check against the
nvidia,tegra264-pcie binding?
Documentation/devicetree/bindings/pci/nvidia,tegra264-pcie.yaml sets
unevaluatedProperties: false without declaring ats-supported, and
ats-supported is only defined locally in host-generic-pci.yaml rather than
/schemas/pci/pci-host-bridge.yaml# (with DT_SCHEMA_MIN_VERSION at 2024.4).
Updating nvidia,tegra264-pcie.yaml to allow ats-supported would keep
Tegra264 DTBs passing schema validation.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-b4-t264-igpu-pci-v2-0-e36cd85f4778@nvidia.com?part=5
^ permalink raw reply [flat|nested] 10+ messages in thread