devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: tegra: Fix CPU compatible string for Tegra132
@ 2016-05-23  7:42 Joseph Lo
       [not found] ` <20160523074221.7135-1-josephl-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Joseph Lo @ 2016-05-23  7:42 UTC (permalink / raw)
  To: Stephen Warren, Thierry Reding, Alexandre Courbot
  Cc: Mark Rutland, devicetree, Pawel Moll, Ian Campbell,
	Catalin Marinas, Joseph Lo, Will Deacon, Rob Herring, Kumar Gala,
	linux-tegra, linux-arm-kernel

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.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
---
 arch/arm64/boot/dts/nvidia/tegra132.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/nvidia/tegra132.dtsi b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
index 2013f8916084..7b1cdc029de3 100644
--- a/arch/arm64/boot/dts/nvidia/tegra132.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
@@ -964,13 +964,13 @@
 
 		cpu@0 {
 			device_type = "cpu";
-			compatible = "nvidia,denver", "arm,armv8";
+			compatible = "nvidia,tegra132-denver", "arm,armv8";
 			reg = <0>;
 		};
 
 		cpu@1 {
 			device_type = "cpu";
-			compatible = "nvidia,denver", "arm,armv8";
+			compatible = "nvidia,tegra132-denver", "arm,armv8";
 			reg = <1>;
 		};
 	};
-- 
2.8.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] arm64: tegra: Fix CPU compatible string for Tegra132
       [not found] ` <20160523074221.7135-1-josephl-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2016-05-25  2:11   ` Joseph Lo
       [not found]     ` <574509E7.4030208-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Joseph Lo @ 2016-05-25  2:11 UTC (permalink / raw)
  To: Stephen Warren, Thierry Reding, Alexandre Courbot
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Catalin Marinas, Will Deacon, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

On 05/23/2016 03:42 PM, Joseph Lo wrote:
> 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.
>
> Signed-off-by: Joseph Lo <josephl-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> ---
>   arch/arm64/boot/dts/nvidia/tegra132.dtsi | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/nvidia/tegra132.dtsi b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
> index 2013f8916084..7b1cdc029de3 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra132.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
> @@ -964,13 +964,13 @@
>
>   		cpu@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

>   			reg = <0>;
>   		};
>
>   		cpu@1 {
>   			device_type = "cpu";
> -			compatible = "nvidia,denver", "arm,armv8";
> +			compatible = "nvidia,tegra132-denver", "arm,armv8";
>   			reg = <1>;
>   		};
>   	};
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] arm64: tegra: Fix CPU compatible string for Tegra132
       [not found]     ` <574509E7.4030208-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2016-05-25 15:42       ` Stephen Warren
       [not found]         ` <5745C7E4.2050908-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Warren @ 2016-05-25 15:42 UTC (permalink / raw)
  To: Joseph Lo
  Cc: Thierry Reding, Alexandre Courbot, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Catalin Marinas,
	Will Deacon, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

On 05/24/2016 08:11 PM, Joseph Lo wrote:
> On 05/23/2016 03:42 PM, Joseph Lo wrote:
>> 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.
>>
>> Signed-off-by: Joseph Lo <josephl-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>> ---
>>   arch/arm64/boot/dts/nvidia/tegra132.dtsi | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>> b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>> index 2013f8916084..7b1cdc029de3 100644
>> --- a/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>> +++ b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>> @@ -964,13 +964,13 @@
>>
>>           cpu@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.

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] arm64: tegra: Fix CPU compatible string for Tegra132
       [not found]         ` <5745C7E4.2050908-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2016-05-26  9:29           ` Joseph Lo
       [not found]             ` <5746C1F1.6070703-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Joseph Lo @ 2016-05-26  9:29 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Thierry Reding, Alexandre Courbot, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Catalin Marinas,
	Will Deacon, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

On 05/25/2016 11:42 PM, Stephen Warren wrote:
> On 05/24/2016 08:11 PM, Joseph Lo wrote:
>> On 05/23/2016 03:42 PM, Joseph Lo wrote:
>>> 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.
>>>
>>> Signed-off-by: Joseph Lo <josephl-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>>> ---
>>>   arch/arm64/boot/dts/nvidia/tegra132.dtsi | 4 ++--
>>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>>> b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>>> index 2013f8916084..7b1cdc029de3 100644
>>> --- a/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>>> +++ b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>>> @@ -964,13 +964,13 @@
>>>
>>>           cpu@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.
>
> 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?

>
> 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.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] arm64: tegra: Fix CPU compatible string for Tegra132
       [not found]             ` <5746C1F1.6070703-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2016-05-26 16:29               ` Stephen Warren
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Warren @ 2016-05-26 16:29 UTC (permalink / raw)
  To: Joseph Lo
  Cc: Thierry Reding, Alexandre Courbot, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, Catalin Marinas,
	Will Deacon, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

On 05/26/2016 03:29 AM, Joseph Lo wrote:
> On 05/25/2016 11:42 PM, Stephen Warren wrote:
>> On 05/24/2016 08:11 PM, Joseph Lo wrote:
>>> On 05/23/2016 03:42 PM, Joseph Lo wrote:
>>>> 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.
>>>>
>>>> Signed-off-by: Joseph Lo <josephl-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>>>> ---
>>>>   arch/arm64/boot/dts/nvidia/tegra132.dtsi | 4 ++--
>>>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>>>> b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>>>> index 2013f8916084..7b1cdc029de3 100644
>>>> --- a/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>>>> +++ b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
>>>> @@ -964,13 +964,13 @@
>>>>
>>>>           cpu@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.
>>
>> 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.

>> 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.
>
> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-26 16:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-23  7:42 [PATCH] arm64: tegra: Fix CPU compatible string for Tegra132 Joseph Lo
     [not found] ` <20160523074221.7135-1-josephl-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-05-25  2:11   ` Joseph Lo
     [not found]     ` <574509E7.4030208-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-05-25 15:42       ` Stephen Warren
     [not found]         ` <5745C7E4.2050908-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2016-05-26  9:29           ` Joseph Lo
     [not found]             ` <5746C1F1.6070703-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-05-26 16:29               ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).