Skip to contentSkip to conversation

Add device tree support for NVIDIA Tegra CMDQV

PATCH Superseded Ashish Mhetre 4 participants 13 messages Oct 31, 2025 – Nov 21, 2025

Subsystems (5)

v1 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#1 lore raw

PATCH 1/3 iommu/arm-smmu-v3: Add device-tree support for CMDQV driver

In reply to Ashish Mhetre

Add device tree support to the CMDQV driver to enable usage on Tegra264 SoCs. The implementation mirrors the existing ACPI probe path, parsing the nvidia,cmdqv phandle from the SMMU device tree node to associate each SMMU with its corresponding CMDQV instance.

Remove the ACPI dependency from Kconfig as the driver now supports both ACPI and device tree initialization through conditional compilation.

---
 drivers/iommu/arm/Kconfig                     |  1 -
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   | 30 +++++++++++++
 .../iommu/arm/arm-smmu-v3/tegra241-cmdqv.c    | 43 ++++++++++++++++++-
 3 files changed, 72 insertions(+), 2 deletions(-)
drivers/iommu/arm/Kconfig +0 -1
index ef42bbe07dbe..5fac08b89dee 100644
@@ -121,7 +121,6 @@ config ARM_SMMU_V3_KUNIT_TEST
 
 config TEGRA241_CMDQV
 	bool "NVIDIA Tegra241 CMDQ-V extension support for ARM SMMUv3"
-	depends on ACPI
 	help
 	  Support for NVIDIA CMDQ-Virtualization extension for ARM SMMUv3. The
 	  CMDQ-V extension is similar to v3.3 ECMDQ for multi command queues
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +30 -0
index a33fbd12a0dd..b2657eaa9e17 100644
@@ -4530,6 +4530,34 @@ static int arm_smmu_device_hw_probe(struct arm_smmu_device *smmu)
 	return 0;
 }
 
+#ifdef CONFIG_TEGRA241_CMDQV
+static void tegra_cmdqv_dt_probe(struct device_node *smmu_node,
+				 struct arm_smmu_device *smmu)
+{
+	struct platform_device *pdev;
+	struct device_node *np;
+
+	np = of_parse_phandle(smmu_node, "nvidia,cmdqv", 0);
+	if (!np)
+		return;
+
+	pdev = of_find_device_by_node(np);
+	of_node_put(np);
+	if (!pdev)
+		return;
+
+	smmu->impl_dev = &pdev->dev;
+	smmu->options |= ARM_SMMU_OPT_TEGRA241_CMDQV;
+	dev_info(smmu->dev, "found companion CMDQV device: %s\n",
+			dev_name(smmu->impl_dev));
+}
+#else
+static void tegra_cmdqv_dt_probe(struct device_node *smmu_node,
+				 struct arm_smmu_device *smmu)
+{
+}
+#endif
+
 #ifdef CONFIG_ACPI
 #ifdef CONFIG_TEGRA241_CMDQV
 static void acpi_smmu_dsdt_probe_tegra241_cmdqv(struct acpi_iort_node *node,
@@ -4634,6 +4662,8 @@ static int arm_smmu_device_dt_probe(struct platform_device *pdev,
 	if (of_dma_is_coherent(dev->of_node))
 		smmu->features |= ARM_SMMU_FEAT_COHERENCY;
 
+	tegra_cmdqv_dt_probe(dev->of_node, smmu);
+
 	return ret;
 }
 
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c +42 -1

69 lines not on this page · raw message

Signature · 1 line
2.25.1
#0 lore raw

cover Add device tree support for NVIDIA Tegra CMDQV

This series adds device tree support for the CMDQ-Virtualization (CMDQV) hardware on NVIDIA Tegra264 SoCs.

CMDQV is a hardware block that works alongside the ARM SMMUv3 to assist in virtualizing the command queue. It was previously only supported through ACPI on Tegra241. This series extends the existing driver to support device tree based initialization, which is required for Tegra264 platforms.

The series is structured as follows:

Patch 1: Extends the tegra241-cmdqv driver to support device tree probing
alongside the existing ACPI support. The SMMU driver now parses the nvidia,cmdqv phandle to associate each SMMU with its corresponding CMDQV instance.

Patch 2: Adds device tree binding documentation for nvidia,tegra264-cmdqv
and extends the arm,smmu-v3 binding with an optional nvidia,cmdqv property.

Patch 3: Adds CMDQV device nodes to the Tegra264 device tree and enables
them on the tegra264-p3834 platform.

The implementation mirrors the existing ACPI probe path to minimize code divergence and maintain consistency with Tegra241 support.

Ashish Mhetre (3):
iommu/arm-smmu-v3: Add device-tree support for CMDQV driver
dt-bindings: iommu: Add NVIDIA Tegra CMDQV support
arm64: dts: nvidia: Add nodes for CMDQV

 .../bindings/iommu/arm,smmu-v3.yaml           | 10 ++++
 .../bindings/iommu/nvidia,tegra264-cmdqv.yaml | 46 +++++++++++++++++
 .../arm64/boot/dts/nvidia/tegra264-p3834.dtsi |  8 +++
 arch/arm64/boot/dts/nvidia/tegra264.dtsi      | 50 +++++++++++++++++++
 drivers/iommu/arm/Kconfig                     |  1 -
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   | 30 +++++++++++
 .../iommu/arm/arm-smmu-v3/tegra241-cmdqv.c    | 43 +++++++++++++++-
 7 files changed, 186 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml
Signature · 1 line
2.25.1
#12 lore raw

PATCH 3/3 arm64: dts: nvidia: Add nodes for CMDQV

The Command Queue Virtualization (CMDQV) hardware is part of the SMMUv3 implementation on NVIDIA Tegra SoCs. It assists in virtualizing the command queue for the SMMU.

Add device tree nodes for the CMDQV hardware in the Tegra264 SoC device tree and enable them on the tegra264-p3834 platform where SMMUs are enabled. Each SMMU instance is paired with its corresponding CMDQV instance via the nvidia,cmdqv property.

---
 .../arm64/boot/dts/nvidia/tegra264-p3834.dtsi |  8 +++
 arch/arm64/boot/dts/nvidia/tegra264.dtsi      | 50 +++++++++++++++++++
 2 files changed, 58 insertions(+)
arch/arm64/boot/dts/nvidia/tegra264-p3834.dtsi +8 -0
index 06795c82427a..375d122b92fa 100644
@@ -26,5 +26,13 @@ iommu@5000000 {
 		iommu@6000000 {
 			status = "okay";
 		};
+
+		cmdqv@5200000 {
+			status = "okay";
+		};
+
+		cmdqv@6200000 {
+			status = "okay";
+		};
 	};
 };
arch/arm64/boot/dts/nvidia/tegra264.dtsi +50 -0

80 lines not on this page · raw message

Signature · 1 line
2.25.1
#4 lore raw

PATCH 2/3 dt-bindings: iommu: Add NVIDIA Tegra CMDQV support

In reply to Ashish Mhetre

The Command Queue Virtualization (CMDQV) hardware is part of the SMMUv3 implementation on NVIDIA Tegra SoCs. It assists in virtualizing the command queue for the SMMU.

Add a new device tree binding document for nvidia,tegra264-cmdqv.

Also update the arm,smmu-v3 binding to include an optional nvidia,cmdqv property. This property is a phandle to the CMDQV device node, allowing the SMMU driver to associate with its corresponding CMDQV instance.

---
 .../bindings/iommu/arm,smmu-v3.yaml           | 10 ++++
 .../bindings/iommu/nvidia,tegra264-cmdqv.yaml | 46 +++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml
Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml +10 -0
index 75fcf4cb52d9..edc0c20a0c80 100644
@@ -58,6 +58,15 @@ properties:
 
   msi-parent: true
 
+  nvidia,cmdqv:
+    description: |
+      A phandle to its pairing CMDQV extension for an implementation on NVIDIA
+      Tegra SoC.
+
+      If this property is absent, CMDQ-Virtualization won't be used and SMMU
+      will only use its own CMDQ.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
   hisilicon,broken-prefetch-cmd:
     type: boolean
     description: Avoid sending CMD_PREFETCH_* commands to the SMMU.
@@ -92,4 +101,5 @@ examples:
             dma-coherent;
             #iommu-cells = <1>;
             msi-parent = <&its 0xff0000>;
+            nvidia,cmdqv = <&cmdqv>;
     };
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
2.25.1
#5 lore raw

Re: [PATCH 2/3] dt-bindings: iommu: Add NVIDIA Tegra CMDQV support

Quoted 3 lines · Ashish Mhetre

The Command Queue Virtualization (CMDQV) hardware is part of the SMMUv3 implementation on NVIDIA Tegra SoCs. It assists in virtualizing the command queue for the SMMU.

If this is specific to Nvidia, then I think you need specific front compatible and disallow it for other vendors.

Quoted 46 lines

Add a new device tree binding document for nvidia,tegra264-cmdqv.

Also update the arm,smmu-v3 binding to include an optional nvidia,cmdqv property. This property is a phandle to the CMDQV device node, allowing the SMMU driver to associate with its corresponding CMDQV instance.

---
 .../bindings/iommu/arm,smmu-v3.yaml           | 10 ++++
 .../bindings/iommu/nvidia,tegra264-cmdqv.yaml | 46 +++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml
Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml +10 -0
index 75fcf4cb52d9..edc0c20a0c80 100644
@@ -58,6 +58,15 @@ properties:
 
   msi-parent: true
 
+  nvidia,cmdqv:
+    description: |
+      A phandle to its pairing CMDQV extension for an implementation on NVIDIA
+      Tegra SoC.
+
+      If this property is absent, CMDQ-Virtualization won't be used and SMMU
+      will only use its own CMDQ.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
   hisilicon,broken-prefetch-cmd:
     type: boolean
     description: Avoid sending CMD_PREFETCH_* commands to the SMMU.
@@ -92,4 +101,5 @@ examples:
             dma-coherent;
             #iommu-cells = <1>;
             msi-parent = <&its 0xff0000>;
+            nvidia,cmdqv = <&cmdqv>;
     };
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +0 -0
new file mode 100644
index 000000000000..f22c370278a3

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 6

Quoted 6 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +6 -0
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NVIDIA Tegra264 CMDQV

Missing blank line

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 7

Quoted 1 line
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +1 -0
+description: |

Do not need '|' unless you need to preserve formatting.

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 12

Quoted 5 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +5 -0
+  The CMDQ-Virtualization hardware block is part of the SMMUv3 implementation
+  on Tegra264 SoCs. It assists in virtualizing the command queue for the SMMU.
+
+maintainers:
+  - NVIDIA Corporation <[email protected]>

No. It should be a person. If entire Nvidia cannot find a person, I don't think we are interested in having this in the kernel.

Quoted 4 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +4 -0
+
+properties:
+  compatible:
+    const: nvidia,tegra264-cmdqv

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 26

Quoted 10 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +10 -0
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+    items:
+      - const: cmdqv

Drop interript names, obvious.

Quoted 5 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +5 -0
+
+required:
+  - compatible
+  - reg
+  - interrupts

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 41

Quoted 10 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +10 -0
+  - interrupt-names
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    cmdqv: cmdqv@8105200000 {

Drop unused label

Best regards,
Krzysztof

Reviewed-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] iommu/arm-smmu-v3: Add device-tree support for CMDQV driver

In reply to Ashish Mhetre
Quoted 9 lines · Ashish Mhetre

Add device tree support to the CMDQV driver to enable usage on Tegra264 SoCs. The implementation mirrors the existing ACPI probe path, parsing the nvidia,cmdqv phandle from the SMMU device tree node to associate each SMMU with its corresponding CMDQV instance.

Remove the ACPI dependency from Kconfig as the driver now supports both ACPI and device tree initialization through conditional compilation.

With two nits:

drivers/iommu/arm/Kconfig config ARM_SMMU_V3_KUNIT_TEST · line 124

Quoted 9 lines
drivers/iommu/arm/Kconfig +0 -1
index ef42bbe07dbe..5fac08b89dee 100644
@@ -121,7 +121,6 @@ config ARM_SMMU_V3_KUNIT_TEST
 
 config TEGRA241_CMDQV
 	bool "NVIDIA Tegra241 CMDQ-V extension support for ARM SMMUv3"
-	depends on ACPI

Perhaps:
depends on OF || ACPI

and update the commit message.

Quoted 9 lines
drivers/iommu/arm/Kconfig +9 -0
+static void tegra_cmdqv_dt_probe(struct device_node *smmu_node,
+				 struct arm_smmu_device *smmu)
+{
+	struct platform_device *pdev;
+	struct device_node *np;
+
+	np = of_parse_phandle(smmu_node, "nvidia,cmdqv", 0);
+	if (!np)
+		return;

drivers/iommu/arm/Kconfig config ARM_SMMU_V3_KUNIT_TEST

Quoted 10 lines
drivers/iommu/arm/Kconfig +10 -0
+
+	pdev = of_find_device_by_node(np);
+	of_node_put(np);
+	if (!pdev)
+		return;
+
+	smmu->impl_dev = &pdev->dev;
+	smmu->options |= ARM_SMMU_OPT_TEGRA241_CMDQV;
+	dev_info(smmu->dev, "found companion CMDQV device: %s\n",
+			dev_name(smmu->impl_dev));
	dev_info(smmu->dev, "found companion CMDQV device: %s\n",
		 dev_name(smmu->impl_dev));

Nicolin

#6 lore raw

Re: [PATCH 2/3] dt-bindings: iommu: Add NVIDIA Tegra CMDQV support

In reply to Krzysztof Kozlowski
Quoted 9 lines · Krzysztof Kozlowski

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 12

Quoted 5 lines · Ashish Mhetre
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +5 -0
+  The CMDQ-Virtualization hardware block is part of the SMMUv3 implementation
+  on Tegra264 SoCs. It assists in virtualizing the command queue for the SMMU.
+
+maintainers:
+  - NVIDIA Corporation <[email protected]>

No. It should be a person. If entire Nvidia cannot find a person, I don't think we are interested in having this in the kernel.

I was the submitter of the driver. I can take it up.

Thanks
Nicolin

#3 lore raw

Re: [PATCH 1/3] iommu/arm-smmu-v3: Add device-tree support for CMDQV driver

In reply to Nicolin Chen
Quoted 6 lines · Nicolin Chen
Quoted 5 lines · Ashish Mhetre

Add device tree support to the CMDQV driver to enable usage on Tegra264 SoCs. The implementation mirrors the existing ACPI probe path, parsing the nvidia,cmdqv phandle from the SMMU device tree node to associate each SMMU with its corresponding CMDQV instance.

Quoted 7 lines
Quoted 4 lines

Remove the ACPI dependency from Kconfig as the driver now supports both ACPI and device tree initialization through conditional compilation.

With two nits:

Thanks Nic, I'll address these in next version and add reviewed by.

Quoted 6 lines
Quoted 6 lines
drivers/iommu/arm/Kconfig +0 -0
index ef42bbe07dbe..5fac08b89dee 100644
@@ -121,7 +121,6 @@ config ARM_SMMU_V3_KUNIT_TEST
 
Quoted 7 lines

drivers/iommu/arm/Kconfig config ARM_SMMU_V3_KUNIT_TEST · line 124

Quoted 3 lines
drivers/iommu/arm/Kconfig +0 -1
  config TEGRA241_CMDQV
  	bool "NVIDIA Tegra241 CMDQ-V extension support for ARM SMMUv3"
-	depends on ACPI

Perhaps:
depends on OF || ACPI

and update the commit message.

Sure, I will fix this in V2.

Quoted 13 lines
Quoted 13 lines
drivers/iommu/arm/Kconfig +13 -0
+static void tegra_cmdqv_dt_probe(struct device_node *smmu_node,
+				 struct arm_smmu_device *smmu)
+{
+	struct platform_device *pdev;
+	struct device_node *np;
+
+	np = of_parse_phandle(smmu_node, "nvidia,cmdqv", 0);
+	if (!np)
+		return;
+
+	pdev = of_find_device_by_node(np);
+	of_node_put(np);
+	if (!pdev)
Quoted 8 lines

drivers/iommu/arm/Kconfig

Quoted 6 lines
drivers/iommu/arm/Kconfig +6 -0
+		return;
+
+	smmu->impl_dev = &pdev->dev;
+	smmu->options |= ARM_SMMU_OPT_TEGRA241_CMDQV;
+	dev_info(smmu->dev, "found companion CMDQV device: %s\n",
+			dev_name(smmu->impl_dev));
	dev_info(smmu->dev, "found companion CMDQV device: %s\n",
		 dev_name(smmu->impl_dev));

Ack,  I'll fix this in next version

Quoted 1 line

Nicolin

#7 lore raw

Re: [PATCH 2/3] dt-bindings: iommu: Add NVIDIA Tegra CMDQV support

In reply to Krzysztof Kozlowski
Quoted 9 lines · Krzysztof Kozlowski

External email: Use caution opening links or attachments

Quoted 3 lines · Ashish Mhetre

The Command Queue Virtualization (CMDQV) hardware is part of the SMMUv3 implementation on NVIDIA Tegra SoCs. It assists in virtualizing the command queue for the SMMU.

If this is specific to Nvidia, then I think you need specific front compatible and disallow it for other vendors.

Yes, CMDQV is specific to Nvidia. There isn't currently a vendor-specific compatible for Nvidia's arm,smmu-v3 implementation. Would it be acceptable to document this as Nvidia-specific in the description? Or can we add a new Nvidia-specific compatible string like "nvidia,smmu-v3" if that's preferred and use conditional schema to restrict the property?

Quoted 44 lines
Quoted 44 lines

Add a new device tree binding document for nvidia,tegra264-cmdqv.

Also update the arm,smmu-v3 binding to include an optional nvidia,cmdqv property. This property is a phandle to the CMDQV device node, allowing the SMMU driver to associate with its corresponding CMDQV instance.

---
  .../bindings/iommu/arm,smmu-v3.yaml           | 10 ++++
  .../bindings/iommu/nvidia,tegra264-cmdqv.yaml | 46 +++++++++++++++++++
  2 files changed, 56 insertions(+)

create mode 100644 Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml

Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml +10 -0
index 75fcf4cb52d9..edc0c20a0c80 100644
@@ -58,6 +58,15 @@ properties:
 
    msi-parent: true
 
+  nvidia,cmdqv:
+    description: |
+      A phandle to its pairing CMDQV extension for an implementation on NVIDIA
+      Tegra SoC.
+
+      If this property is absent, CMDQ-Virtualization won't be used and SMMU
+      will only use its own CMDQ.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
    hisilicon,broken-prefetch-cmd:
      type: boolean
      description: Avoid sending CMD_PREFETCH_* commands to the SMMU.
@@ -92,4 +101,5 @@ examples:
              dma-coherent;
              #iommu-cells = <1>;
              msi-parent = <&its 0xff0000>;
+            nvidia,cmdqv = <&cmdqv>;
      };
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +0 -0
new file mode 100644
index 000000000000..f22c370278a3
Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 6

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +6 -0
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NVIDIA Tegra264 CMDQV

Missing blank line

Ack, I will correct this in V2.

Quoted 2 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 7

Quoted 1 line
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +1 -0
+description: |

Do not need '|' unless you need to preserve formatting.

Okay, I'll remove this in next version.

Quoted 7 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 12

Quoted 5 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +5 -0
+  The CMDQ-Virtualization hardware block is part of the SMMUv3 implementation
+  on Tegra264 SoCs. It assists in virtualizing the command queue for the SMMU.
+
+maintainers:
+  - NVIDIA Corporation <[email protected]>

No. It should be a person. If entire Nvidia cannot find a person, I don't think we are interested in having this in the kernel.

Okay, I'll add Nicolin as maintainer.

Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +7 -0
+
+properties:
+  compatible:
+    const: nvidia,tegra264-cmdqv
+
+  reg:
+    maxItems: 1
Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 26

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +7 -0
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+    items:
+      - const: cmdqv

Drop interript names, obvious.

Sure, I will update in V2.

Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +8 -0
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-names
+
+additionalProperties: false
Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 41

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +7 -0
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    cmdqv: cmdqv@8105200000 {

Drop unused label

Okay, I will remove the label.

Quoted 3 lines

Best regards,
Krzysztof

#8 lore raw

Re: [PATCH 2/3] dt-bindings: iommu: Add NVIDIA Tegra CMDQV support

Quoted 9 lines · Ashish Mhetre
Quoted 7 lines · Krzysztof Kozlowski

External email: Use caution opening links or attachments

Quoted 3 lines · Ashish Mhetre

The Command Queue Virtualization (CMDQV) hardware is part of the SMMUv3 implementation on NVIDIA Tegra SoCs. It assists in virtualizing the command queue for the SMMU.

Quoted 8 lines
Quoted 2 lines

If this is specific to Nvidia, then I think you need specific front compatible and disallow it for other vendors.

Yes, CMDQV is specific to Nvidia. There isn't currently a vendor-specific compatible for Nvidia's arm,smmu-v3 implementation. Would it be acceptable to document this as Nvidia-specific in the description? Or can we add a new Nvidia-specific compatible string like "nvidia,smmu-v3" if that's preferred and use conditional schema to restrict the property?

Hi Krzysztof, Thierry,
Any suggestions on this?

Quoted 111 lines
Quoted 48 lines
Quoted 48 lines

Add a new device tree binding document for nvidia,tegra264-cmdqv.

Also update the arm,smmu-v3 binding to include an optional nvidia,cmdqv property. This property is a phandle to the CMDQV device node, allowing the SMMU driver to associate with its corresponding CMDQV instance.

---
  .../bindings/iommu/arm,smmu-v3.yaml           | 10 ++++ .../bindings/iommu/nvidia,tegra264-cmdqv.yaml | 46
+++++++++++++++++++

  2 files changed, 56 insertions(+)

  create mode 100644 Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml

Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml +0 -0
index 75fcf4cb52d9..edc0c20a0c80 100644
@@ -58,6 +58,15 @@ properties:
 

    msi-parent: true

+  nvidia,cmdqv:
+    description: |
+      A phandle to its pairing CMDQV extension for an implementation on NVIDIA
+      Tegra SoC.
+
+      If this property is absent, CMDQ-Virtualization won't be used and SMMU
+      will only use its own CMDQ.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
    hisilicon,broken-prefetch-cmd:
      type: boolean
      description: Avoid sending CMD_PREFETCH_* commands to the SMMU.

Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml +1 -0
@@ -92,4 +101,5 @@ examples:
               dma-coherent;
               #iommu-cells = <1>;
               msi-parent = <&its 0xff0000>;
+            nvidia,cmdqv = <&cmdqv>;
       };
(quoted diff) +0 -0
new file mode 100644
index 000000000000..f22c370278a3

b/Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml

Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 6

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +6 -0
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NVIDIA Tegra264 CMDQV

Missing blank line

Ack, I will correct this in V2.

Quoted 2 lines

Review line 7

Quoted 1 line
(quoted diff) +1 -0
+description: |

Do not need '|' unless you need to preserve formatting.

Okay, I'll remove this in next version.

Quoted 9 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 12

Quoted 7 lines
(quoted diff) +1 -0
+  The CMDQ-Virtualization hardware block is part of the SMMUv3 

implementation
+  on Tegra264 SoCs. It assists in virtualizing the command queue for the SMMU.

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +3 -0
+
+maintainers:
+  - NVIDIA Corporation <[email protected]>

No. It should be a person. If entire Nvidia cannot find a person, I don't think we are interested in having this in the kernel.

Okay, I'll add Nicolin as maintainer.

Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +7 -0
+
+properties:
+  compatible:
+    const: nvidia,tegra264-cmdqv
+
+  reg:
+    maxItems: 1
Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 26

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +7 -0
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+    items:
+      - const: cmdqv

Drop interript names, obvious.

Sure, I will update in V2.

Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +8 -0
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-names
+
+additionalProperties: false
Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 41

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +7 -0
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    cmdqv: cmdqv@8105200000 {

Drop unused label

Okay, I will remove the label.

Quoted 3 lines

Best regards,
Krzysztof

#9 lore raw

Re: [PATCH 2/3] dt-bindings: iommu: Add NVIDIA Tegra CMDQV support

In reply to Ashish Mhetre
Quoted 9 lines · Ashish Mhetre
Quoted 7 lines · Krzysztof Kozlowski

External email: Use caution opening links or attachments

Quoted 3 lines · Ashish Mhetre

The Command Queue Virtualization (CMDQV) hardware is part of the SMMUv3 implementation on NVIDIA Tegra SoCs. It assists in virtualizing the command queue for the SMMU.

Quoted 8 lines
Quoted 2 lines

If this is specific to Nvidia, then I think you need specific front compatible and disallow it for other vendors.

Yes, CMDQV is specific to Nvidia. There isn't currently a vendor-specific compatible for Nvidia's arm,smmu-v3 implementation. Would it be acceptable to document this as Nvidia-specific in the description? Or can we add a new Nvidia-specific compatible string like "nvidia,smmu-v3" if that's preferred and use conditional schema to restrict the property?

Hi Will, Robin,

Do you have any suggestions on this? I have followed existing ACPI approach for implementing DT support. Will it be fine to add separate compatible string for Nvidia Tegra264 SMMU to restrict the usage of CMDQV?

Quoted 111 lines
Quoted 48 lines
Quoted 48 lines

Add a new device tree binding document for nvidia,tegra264-cmdqv.

Also update the arm,smmu-v3 binding to include an optional nvidia,cmdqv property. This property is a phandle to the CMDQV device node, allowing the SMMU driver to associate with its corresponding CMDQV instance.

---
  .../bindings/iommu/arm,smmu-v3.yaml           | 10 ++++ .../bindings/iommu/nvidia,tegra264-cmdqv.yaml | 46
+++++++++++++++++++

  2 files changed, 56 insertions(+)

  create mode 100644 Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml

Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml +0 -0
index 75fcf4cb52d9..edc0c20a0c80 100644
@@ -58,6 +58,15 @@ properties:
 

    msi-parent: true

+  nvidia,cmdqv:
+    description: |
+      A phandle to its pairing CMDQV extension for an implementation on NVIDIA
+      Tegra SoC.
+
+      If this property is absent, CMDQ-Virtualization won't be used and SMMU
+      will only use its own CMDQ.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
    hisilicon,broken-prefetch-cmd:
      type: boolean
      description: Avoid sending CMD_PREFETCH_* commands to the SMMU.

Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml +1 -0
@@ -92,4 +101,5 @@ examples:
               dma-coherent;
               #iommu-cells = <1>;
               msi-parent = <&its 0xff0000>;
+            nvidia,cmdqv = <&cmdqv>;
       };
(quoted diff) +0 -0
new file mode 100644
index 000000000000..f22c370278a3

b/Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml

Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 6

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +6 -0
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NVIDIA Tegra264 CMDQV

Missing blank line

Ack, I will correct this in V2.

Quoted 2 lines

Review line 7

Quoted 1 line
(quoted diff) +1 -0
+description: |

Do not need '|' unless you need to preserve formatting.

Okay, I'll remove this in next version.

Quoted 9 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 12

Quoted 7 lines
(quoted diff) +1 -0
+  The CMDQ-Virtualization hardware block is part of the SMMUv3 

implementation
+  on Tegra264 SoCs. It assists in virtualizing the command queue for the SMMU.

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +3 -0
+
+maintainers:
+  - NVIDIA Corporation <[email protected]>

No. It should be a person. If entire Nvidia cannot find a person, I don't think we are interested in having this in the kernel.

Okay, I'll add Nicolin as maintainer.

Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +7 -0
+
+properties:
+  compatible:
+    const: nvidia,tegra264-cmdqv
+
+  reg:
+    maxItems: 1
Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 26

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +7 -0
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+    items:
+      - const: cmdqv

Drop interript names, obvious.

Sure, I will update in V2.

Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +8 -0
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-names
+
+additionalProperties: false
Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml line 41

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264-cmdqv.yaml new file +7 -0
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    cmdqv: cmdqv@8105200000 {

Drop unused label

Okay, I will remove the label.

Quoted 3 lines

Best regards,
Krzysztof

reviewer
#10 lore raw

Re: [PATCH 2/3] dt-bindings: iommu: Add NVIDIA Tegra CMDQV support

Quoted 20 lines · Ashish Mhetre
Quoted 9 lines · Ashish Mhetre
Quoted 7 lines · Krzysztof Kozlowski

External email: Use caution opening links or attachments

Quoted 3 lines · Ashish Mhetre

The Command Queue Virtualization (CMDQV) hardware is part of the SMMUv3 implementation on NVIDIA Tegra SoCs. It assists in virtualizing the command queue for the SMMU.

Quoted 8 lines
Quoted 2 lines

If this is specific to Nvidia, then I think you need specific front compatible and disallow it for other vendors.

Yes, CMDQV is specific to Nvidia. There isn't currently a vendor-specific compatible for Nvidia's arm,smmu-v3 implementation. Would it be acceptable to document this as Nvidia-specific in the description? Or can we add a new Nvidia-specific compatible string like "nvidia,smmu-v3" if that's preferred and use conditional schema to restrict the property?

Quoted 4 lines

Hi Will, Robin,

Do you have any suggestions on this? I have followed existing ACPI approach for implementing DT support.

No, the way the ACPI binding is implemented has the lookup going *from* the CMDQV node back to the SMMU instance (via the matching identifier) - this is entirely the opposite. The literal DT equivalent would be to use for_each_matching_node/for_each_compatible_node to scan the CMDQV nodes for a property indicating the relevant SMMU.

I'm not hugely fussed either way though - since the fact is the Tegra234 SMMU does have this custom modification, a specific "nvidia,tegra234-smmu", "arm,smmu-v3" compatible isn't inappropriate, even if it really doesn't make any difference to architectural SMMU operation without awareness of the other CMDQV nodes.

Thanks,
Robin.

Quoted 114 lines

Will it be fine to add separate compatible string for Nvidia Tegra264 SMMU to restrict the usage of CMDQV?

Quoted 111 lines
Quoted 48 lines
Quoted 48 lines

Add a new device tree binding document for nvidia,tegra264-cmdqv.

Also update the arm,smmu-v3 binding to include an optional nvidia,cmdqv property. This property is a phandle to the CMDQV device node, allowing the SMMU driver to associate with its corresponding CMDQV instance.

---
  .../bindings/iommu/arm,smmu-v3.yaml           | 10 ++++ .../bindings/iommu/nvidia,tegra264-cmdqv.yaml | 46 +++++++++++++++
++++

  2 files changed, 56 insertions(+)

  create mode 100644 Documentation/devicetree/bindings/iommu/ nvidia,tegra264-cmdqv.yaml

Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml +0 -0
index 75fcf4cb52d9..edc0c20a0c80 100644
@@ -58,6 +58,15 @@ properties:
 

    msi-parent: true

+  nvidia,cmdqv:
+    description: |
+      A phandle to its pairing CMDQV extension for an implementation on NVIDIA
+      Tegra SoC.
+
+      If this property is absent, CMDQ-Virtualization won't be used and SMMU
+      will only use its own CMDQ.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
    hisilicon,broken-prefetch-cmd:
      type: boolean
      description: Avoid sending CMD_PREFETCH_* commands to the SMMU.

Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml +1 -0
@@ -92,4 +101,5 @@ examples:
               dma-coherent;
               #iommu-cells = <1>;
               msi-parent = <&its 0xff0000>;
+            nvidia,cmdqv = <&cmdqv>;
       };
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +0 -0
new file mode 100644
index 000000000000..f22c370278a3

cmdqv.yaml

Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264- line 6

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +6 -0
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NVIDIA Tegra264 CMDQV

Missing blank line

Ack, I will correct this in V2.

Quoted 2 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264- line 7

Quoted 1 line
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +1 -0
+description: |

Do not need '|' unless you need to preserve formatting.

Okay, I'll remove this in next version.

Quoted 9 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +1 -0
+  The CMDQ-Virtualization hardware block is part of the SMMUv3 

implementation
+  on Tegra264 SoCs. It assists in virtualizing the command queue for the SMMU.

Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +3 -0
+
+maintainers:
+  - NVIDIA Corporation <[email protected]>

No. It should be a person. If entire Nvidia cannot find a person, I don't think we are interested in having this in the kernel.

Okay, I'll add Nicolin as maintainer.

Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +7 -0
+
+properties:
+  compatible:
+    const: nvidia,tegra264-cmdqv
+
+  reg:
+    maxItems: 1
Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +7 -0
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+    items:
+      - const: cmdqv

Drop interript names, obvious.

Sure, I will update in V2.

Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +8 -0
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-names
+
+additionalProperties: false
Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +7 -0
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    cmdqv: cmdqv@8105200000 {

Drop unused label

Okay, I will remove the label.

Quoted 3 lines

Best regards,
Krzysztof

#11 lore raw

Re: [PATCH 2/3] dt-bindings: iommu: Add NVIDIA Tegra CMDQV support

Quoted 36 lines · Robin Murphy

External email: Use caution opening links or attachments

Quoted 21 lines · Ashish Mhetre
Quoted 12 lines · Ashish Mhetre
Quoted 9 lines · Krzysztof Kozlowski

External email: Use caution opening links or attachments

Quoted 3 lines · Ashish Mhetre

The Command Queue Virtualization (CMDQV) hardware is part of the SMMUv3 implementation on NVIDIA Tegra SoCs. It assists in virtualizing the command queue for the SMMU.

If this is specific to Nvidia, then I think you need specific front compatible and disallow it for other vendors.

Quoted 6 lines

Yes, CMDQV is specific to Nvidia. There isn't currently a vendor-specific compatible for Nvidia's arm,smmu-v3 implementation. Would it be acceptable
to document this as Nvidia-specific in the description? Or can we add a new Nvidia-specific compatible string like "nvidia,smmu-v3" if that's preferred and use conditional schema to restrict the property?

Quoted 4 lines

Hi Will, Robin,

Do you have any suggestions on this? I have followed existing ACPI approach for implementing DT support.

No, the way the ACPI binding is implemented has the lookup going *from* the CMDQV node back to the SMMU instance (via the matching identifier) - this is entirely the opposite. The literal DT equivalent would be to use for_each_matching_node/for_each_compatible_node to scan the CMDQV nodes for a property indicating the relevant SMMU.

Quoted 9 lines

I'm not hugely fussed either way though - since the fact is the Tegra234 SMMU does have this custom modification, a specific "nvidia,tegra234-smmu", "arm,smmu-v3" compatible isn't inappropriate, even if it really doesn't make any difference to architectural SMMU operation without awareness of the other CMDQV nodes.

Thanks,
Robin.

Thanks for the suggestions Robin. Approach 2 is much simpler with current implementation I have. I will proceed with adding Nvidia specific compatible string "nvidia,tegra264-smmu", "arm,smmu-v3" in V2.

Quoted 119 lines
Quoted 119 lines

Will it be fine to add separate compatible string
for Nvidia Tegra264 SMMU to restrict the usage of CMDQV?

Quoted 115 lines
Quoted 52 lines
Quoted 52 lines

Add a new device tree binding document for nvidia,tegra264-cmdqv.

Also update the arm,smmu-v3 binding to include an optional nvidia,cmdqv property. This property is a phandle to the CMDQV device node, allowing the SMMU driver to associate with its corresponding CMDQV instance.

---
  .../bindings/iommu/arm,smmu-v3.yaml           | 10 ++++ .../bindings/iommu/nvidia,tegra264-cmdqv.yaml | 46 +++++++++++++++
++++

  2 files changed, 56 insertions(+)

  create mode 100644 Documentation/devicetree/bindings/iommu/ nvidia,tegra264-cmdqv.yaml

(quoted diff) +0 -0

v3.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml index 75fcf4cb52d9..edc0c20a0c80 100644

Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml +0 -0
@@ -58,6 +58,15 @@ properties:
 

    msi-parent: true

+  nvidia,cmdqv:
+    description: |
+      A phandle to its pairing CMDQV extension for an implementation on NVIDIA
+      Tegra SoC.
+
+      If this property is absent, CMDQ-Virtualization won't be used and SMMU
+      will only use its own CMDQ.
+    $ref: /schemas/types.yaml#/definitions/phandle
+
    hisilicon,broken-prefetch-cmd:
      type: boolean
      description: Avoid sending CMD_PREFETCH_* commands to the SMMU.

Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml +1 -0
@@ -92,4 +101,5 @@ examples:
               dma-coherent;
               #iommu-cells = <1>;
               msi-parent = <&its 0xff0000>;
+            nvidia,cmdqv = <&cmdqv>;
       };
(quoted diff) +0 -0

nvidia,tegra264-cmdqv.yaml b/Documentation/devicetree/bindings/ iommu/nvidia,tegra264-cmdqv.yaml
new file mode 100644
index 000000000000..f22c370278a3

Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +0 -0

cmdqv.yaml

Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264- line 6

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +6 -0
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NVIDIA Tegra264 CMDQV

Missing blank line

Ack, I will correct this in V2.

Quoted 2 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264- line 7

Quoted 1 line
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +1 -0
+description: |

Do not need '|' unless you need to preserve formatting.

Okay, I'll remove this in next version.

Quoted 9 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +1 -0
+  The CMDQ-Virtualization hardware block is part of the SMMUv3

implementation
+  on Tegra264 SoCs. It assists in virtualizing the command queue for the SMMU.

Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +3 -0
+
+maintainers:
+  - NVIDIA Corporation <[email protected]>

No. It should be a person. If entire Nvidia cannot find a person, I don't think we are interested in having this in the kernel.

Okay, I'll add Nicolin as maintainer.

Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +7 -0
+
+properties:
+  compatible:
+    const: nvidia,tegra264-cmdqv
+
+  reg:
+    maxItems: 1
Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +7 -0
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+    items:
+      - const: cmdqv

Drop interript names, obvious.

Sure, I will update in V2.

Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +8 -0
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-names
+
+additionalProperties: false
Quoted 8 lines

Documentation/devicetree/bindings/iommu/nvidia,tegra264-

Quoted 7 lines
Documentation/devicetree/bindings/iommu/nvidia,tegra264- new file +7 -0
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    cmdqv: cmdqv@8105200000 {

Drop unused label

Okay, I will remove the label.

Quoted 3 lines

Best regards,
Krzysztof