Skip to contentSkip to conversation

arm64: tegra: Fix CPU compatible string for Tegra132

PATCH New Joseph Lo 2 participants 5 messages May 23, 2016 – May 26, 2016

Subsystems (2)
lore
Share & tools
lore

Joseph Lo

author
#0 lore raw

PATCH 1/1 arm64: tegra: Fix CPU compatible string for Tegra132

As per commit f634da375fc96 ("Documentation: DT bindings: add nvidia, tegra132-denver compatible string"), fixing the CPU compatible string for Tegra132 to match the binding document currently.

---
 arch/arm64/boot/dts/nvidia/tegra132.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/nvidia/tegra132.dtsi +2 -2
index 2013f8916084..7b1cdc029de3 100644
@@ -964,13 +964,13 @@
 
 		cpu at 0 {
 			device_type = "cpu";
-			compatible = "nvidia,denver", "arm,armv8";
+			compatible = "nvidia,tegra132-denver", "arm,armv8";
 			reg = <0>;
 		};
 
 		cpu at 1 {
 			device_type = "cpu";
-			compatible = "nvidia,denver", "arm,armv8";
+			compatible = "nvidia,tegra132-denver", "arm,armv8";
 			reg = <1>;
 		};
 	};
Signature · 1 line
2.8.3
author
#1 lore raw

PATCH 1/1 arm64: tegra: Fix CPU compatible string for Tegra132

Quoted 14 lines · Joseph Lo

As per commit f634da375fc96 ("Documentation: DT bindings: add nvidia, tegra132-denver compatible string"), fixing the CPU compatible string for Tegra132 to match the binding document currently.

---
  arch/arm64/boot/dts/nvidia/tegra132.dtsi | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/nvidia/tegra132.dtsi +0 -0
index 2013f8916084..7b1cdc029de3 100644

arch/arm64/boot/dts/nvidia/tegra132.dtsi line 967

Quoted 5 lines
arch/arm64/boot/dts/nvidia/tegra132.dtsi +1 -1
@@ -964,13 +964,13 @@
 
  		cpu at 0 {
  			device_type = "cpu";
-			compatible = "nvidia,denver", "arm,armv8";
+			compatible = "nvidia,tegra132-denver", "arm,armv8";

Hi Stephen, Thierry,

Should we fix this or fix the compatible string in the binding document as just "nvidia,denver" to represent all the Devner CPU revisions just like some other CPUs did? e.g. arm,cortex-a57, which represents all the A57 revisions.

Thanks,
-Joseph

Quoted 11 lines
arch/arm64/boot/dts/nvidia/tegra132.dtsi +1 -1
  			reg = <0>;
  		};
 
  		cpu at 1 {
  			device_type = "cpu";
-			compatible = "nvidia,denver", "arm,armv8";
+			compatible = "nvidia,tegra132-denver", "arm,armv8";
  			reg = <1>;
  		};
  	};
#2 lore raw

PATCH 1/1 arm64: tegra: Fix CPU compatible string for Tegra132

Quoted 24 lines · Joseph Lo
Quoted 15 lines · Joseph Lo

As per commit f634da375fc96 ("Documentation: DT bindings: add nvidia, tegra132-denver compatible string"), fixing the CPU compatible string for Tegra132 to match the binding document currently.

---
  arch/arm64/boot/dts/nvidia/tegra132.dtsi | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/nvidia/tegra132.dtsi +0 -0
index 2013f8916084..7b1cdc029de3 100644

arch/arm64/boot/dts/nvidia/tegra132.dtsi line 967

Quoted 5 lines
arch/arm64/boot/dts/nvidia/tegra132.dtsi +1 -1
@@ -964,13 +964,13 @@
 
          cpu at 0 {
              device_type = "cpu";
-            compatible = "nvidia,denver", "arm,armv8";
+            compatible = "nvidia,tegra132-denver", "arm,armv8";

Hi Stephen, Thierry,

Quoted 4 lines

Should we fix this or fix the compatible string in the binding document as just "nvidia,denver" to represent all the Devner CPU revisions just like some other CPUs did? e.g. arm,cortex-a57, which represents all the A57 revisions.

I would expect compatible to be:

compatible = "nvidia,tegra132-denver", "nvidia,denver", "arm,armv8";

The "nvidia,denver" entry is already present, and hence probably shouldn't be removed. It can represent "Denver 1.0". We should add the T132 entry to indicate the specific implementation. Admittedly right now there's a 1:1 relation between SoC and Denver version. Either/both of those could in theory be required to trigger specific bug-fixes/WARs.

For later chips which have a different Denver version, I'd expect to see something like:

compatible = "nvidia,tegraNNN-denver", "nvidia,denverMMM", "arm,armv8";

... where NNN is the SoC version/name and MMM is the Denver version. There could be extra entries in the property if the new versions are backwards-compatible with old versions.

author
#3 lore raw

PATCH 1/1 arm64: tegra: Fix CPU compatible string for Tegra132

Quoted 26 lines · Stephen Warren
Quoted 25 lines · Joseph Lo
Quoted 16 lines · Joseph Lo

As per commit f634da375fc96 ("Documentation: DT bindings: add nvidia, tegra132-denver compatible string"), fixing the CPU compatible string for
Tegra132 to match the binding document currently.

---
  arch/arm64/boot/dts/nvidia/tegra132.dtsi | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/nvidia/tegra132.dtsi +0 -0
index 2013f8916084..7b1cdc029de3 100644

arch/arm64/boot/dts/nvidia/tegra132.dtsi line 967

Quoted 5 lines
arch/arm64/boot/dts/nvidia/tegra132.dtsi +1 -1
@@ -964,13 +964,13 @@
 
          cpu at 0 {
              device_type = "cpu";
-            compatible = "nvidia,denver", "arm,armv8";
+            compatible = "nvidia,tegra132-denver", "arm,armv8";

Hi Stephen, Thierry,

Quoted 8 lines
Quoted 4 lines

Should we fix this or fix the compatible string in the binding document as just "nvidia,denver" to represent all the Devner CPU revisions just like some other CPUs did? e.g. arm,cortex-a57, which represents all the A57 revisions.

I would expect compatible to be:

compatible = "nvidia,tegra132-denver", "nvidia,denver", "arm,armv8";

Because we don't have "nvidia,denver" binding in the document, to do what you said, supposely I should add that first and fix the binding for Tegra132, right?

Quoted 7 lines

The "nvidia,denver" entry is already present, and hence probably shouldn't be removed. It can represent "Denver 1.0". We should add the T132 entry to indicate the specific implementation. Admittedly right now there's a 1:1 relation between SoC and Denver version. Either/both of those could in theory be required to trigger specific bug-fixes/WARs.

Quoted 8 lines

For later chips which have a different Denver version, I'd expect to see something like:

compatible = "nvidia,tegraNNN-denver", "nvidia,denverMMM", "arm,armv8";

... where NNN is the SoC version/name and MMM is the Denver version. There could be extra entries in the property if the new versions are backwards-compatible with old versions.

Because it's 1:1 relationship, if we have new cores coming later, we should add both of the compatible string of SoC version and CPU core version in the ARM CPU binding document, is that correct?

Thanks,
Joseph

#4 lore raw

PATCH 1/1 arm64: tegra: Fix CPU compatible string for Tegra132

Quoted 32 lines · Joseph Lo
Quoted 31 lines · Stephen Warren
Quoted 29 lines · Joseph Lo
Quoted 16 lines · Joseph Lo

As per commit f634da375fc96 ("Documentation: DT bindings: add nvidia, tegra132-denver compatible string"), fixing the CPU compatible string for
Tegra132 to match the binding document currently.

---
  arch/arm64/boot/dts/nvidia/tegra132.dtsi | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/nvidia/tegra132.dtsi +0 -0
index 2013f8916084..7b1cdc029de3 100644

arch/arm64/boot/dts/nvidia/tegra132.dtsi line 967

Quoted 5 lines
arch/arm64/boot/dts/nvidia/tegra132.dtsi +1 -1
@@ -964,13 +964,13 @@
 
          cpu at 0 {
              device_type = "cpu";
-            compatible = "nvidia,denver", "arm,armv8";
+            compatible = "nvidia,tegra132-denver", "arm,armv8";

Hi Stephen, Thierry,

Should we fix this or fix the compatible string in the binding document as just "nvidia,denver" to represent all the Devner CPU revisions just like some other CPUs did? e.g. arm,cortex-a57, which represents all the A57 revisions.

Quoted 7 lines
Quoted 3 lines

I would expect compatible to be:

compatible = "nvidia,tegra132-denver", "nvidia,denver", "arm,armv8";

Because we don't have "nvidia,denver" binding in the document, to do what you said, supposely I should add that first and fix the binding for Tegra132, right?

Yes.

Quoted 11 lines
Quoted 11 lines

The "nvidia,denver" entry is already present, and hence probably shouldn't be removed. It can represent "Denver 1.0". We should add the T132 entry to indicate the specific implementation. Admittedly right now there's a 1:1 relation between SoC and Denver version. Either/both of those could in theory be required to trigger specific bug-fixes/WARs.

For later chips which have a different Denver version, I'd expect to see something like:

compatible = "nvidia,tegraNNN-denver", "nvidia,denverMMM", "arm,armv8";

Quoted 7 lines
Quoted 3 lines

... where NNN is the SoC version/name and MMM is the Denver version. There could be extra entries in the property if the new versions are backwards-compatible with old versions.

Because it's 1:1 relationship, if we have new cores coming later, we should add both of the compatible string of SoC version and CPU core version in the ARM CPU binding document, is that correct?

Yes. I suspect that on some future SoCs, it won't be a 1:1 relation; we'll re-use a Denver version across multiple SoCs, just like we do with some ARM CPU models, but we'll see.