All of lore.kernel.org
 help / color / mirror / Atom feed
* Only 1 CPU on Jetson TX1
@ 2017-03-23  0:11 Martin Michlmayr
       [not found] ` <20170323001131.GA7507-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Michlmayr @ 2017-03-23  0:11 UTC (permalink / raw)
  To: linux-tegra-u79uwXL29TY76Z2rM5mHXA; +Cc: Vagrant Cascadian

Vagrant Cascadian observed that only 1 CPU is activated on the Jetson
TX1 development kit.

I can confirm this with mainline Linux and u-boot from mainline (2016.11)
or L4T (2016.03-00633-g3ef9cdb from R23.2).

I see the following in dmesg:

[    0.000000] /cpus/cpu@1: missing enable-method property
[    0.000000] /cpus/cpu@2: missing enable-method property
[    0.000000] /cpus/cpu@3: missing enable-method property

[    0.052643] Tegra Revision: A02 SKU: 23 CPU Process: 0 SoC Process: -22
[    0.053149] EFI services will not be available.
[    0.053316] Brought up 1 CPUs
[    0.053325] SMP: Total of 1 processors activated.
[    0.053341] CPU: All CPU(s) started at EL2

-- 
Martin Michlmayr
http://www.cyrius.com/

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

* Re: Only 1 CPU on Jetson TX1
       [not found] ` <20170323001131.GA7507-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
@ 2017-03-25  8:32   ` Mikko Perttunen
       [not found]     ` <6da81dbc-b070-da0f-1589-ec2cb8f453d5-/1wQRMveznE@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Mikko Perttunen @ 2017-03-25  8:32 UTC (permalink / raw)
  To: Martin Michlmayr, linux-tegra-u79uwXL29TY76Z2rM5mHXA; +Cc: Vagrant Cascadian

It appears you need to have

   fdt_copy_node_names=/cpus:/psci
   fdt_copy_src_addr=0x83080000

in your U-Boot configuration. This is documented somewhere in the middle 
of http://elinux.org/Jetson/TX1_Upstream_Kernel.

On 03/23/2017 02:11 AM, Martin Michlmayr wrote:
> Vagrant Cascadian observed that only 1 CPU is activated on the Jetson
> TX1 development kit.
>
> I can confirm this with mainline Linux and u-boot from mainline (2016.11)
> or L4T (2016.03-00633-g3ef9cdb from R23.2).
>
> I see the following in dmesg:
>
> [    0.000000] /cpus/cpu@1: missing enable-method property
> [    0.000000] /cpus/cpu@2: missing enable-method property
> [    0.000000] /cpus/cpu@3: missing enable-method property
>
> [    0.052643] Tegra Revision: A02 SKU: 23 CPU Process: 0 SoC Process: -22
> [    0.053149] EFI services will not be available.
> [    0.053316] Brought up 1 CPUs
> [    0.053325] SMP: Total of 1 processors activated.
> [    0.053341] CPU: All CPU(s) started at EL2
>

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

* Re: Only 1 CPU on Jetson TX1
       [not found]     ` <6da81dbc-b070-da0f-1589-ec2cb8f453d5-/1wQRMveznE@public.gmane.org>
@ 2017-03-26 22:49       ` Martin Michlmayr
       [not found]         ` <20170326224912.GD4723-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Michlmayr @ 2017-03-26 22:49 UTC (permalink / raw)
  To: Mikko Perttunen; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, Vagrant Cascadian

* Mikko Perttunen <cyndis-/1wQRMveznE@public.gmane.org> [2017-03-25 10:32]:
> It appears you need to have
> 
>   fdt_copy_node_names=/cpus:/psci
>   fdt_copy_src_addr=0x83080000
> 
> in your U-Boot configuration. This is documented somewhere in the middle of
> http://elinux.org/Jetson/TX1_Upstream_Kernel.

I can confirm that this works with u-boot from L4T R24.2.1.

However, it doesn't work with mainling u-boot (grepping for fdt_copy_
doesn't show anything in the source code).

Does anyone know how to get all 4 CPUs working with mainline u-boot?
-- 
Martin Michlmayr
http://www.cyrius.com/

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

* Re: Only 1 CPU on Jetson TX1
       [not found]         ` <20170326224912.GD4723-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
@ 2017-03-27 15:39           ` Stephen Warren
       [not found]             ` <fe29c677-584f-fd1f-d2f8-ff29c8bebf9c-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Warren @ 2017-03-27 15:39 UTC (permalink / raw)
  To: Martin Michlmayr, Mikko Perttunen
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, Vagrant Cascadian,
	Thierry Reding, Jon Hunter

On 03/26/2017 04:49 PM, Martin Michlmayr wrote:
> * Mikko Perttunen <cyndis-/1wQRMveznE@public.gmane.org> [2017-03-25 10:32]:
>> It appears you need to have
>>
>>   fdt_copy_node_names=/cpus:/psci
>>   fdt_copy_src_addr=0x83080000
>>
>> in your U-Boot configuration. This is documented somewhere in the middle of
>> http://elinux.org/Jetson/TX1_Upstream_Kernel.
>
> I can confirm that this works with u-boot from L4T R24.2.1.
>
> However, it doesn't work with mainling u-boot (grepping for fdt_copy_
> doesn't show anything in the source code).
>
> Does anyone know how to get all 4 CPUs working with mainline u-boot?

Thierry, Jon, do you know?

The "fdt_copy" feature of U-Boot isn't upstreamed since I thought it was 
only required to boot the L4T kernel, not mainline. We're also reworking 
L4T so this feature won't be needed there either, so I don't expect to 
upstream "fdt_copy".

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

* Re: Only 1 CPU on Jetson TX1
       [not found]             ` <fe29c677-584f-fd1f-d2f8-ff29c8bebf9c-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2017-03-27 16:04               ` Jon Hunter
  2017-03-27 16:58               ` Thierry Reding
  1 sibling, 0 replies; 7+ messages in thread
From: Jon Hunter @ 2017-03-27 16:04 UTC (permalink / raw)
  To: Stephen Warren, Martin Michlmayr, Mikko Perttunen
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, Vagrant Cascadian, Thierry Reding


On 27/03/17 16:39, Stephen Warren wrote:
> On 03/26/2017 04:49 PM, Martin Michlmayr wrote:
>> * Mikko Perttunen <cyndis-/1wQRMveznE@public.gmane.org> [2017-03-25 10:32]:
>>> It appears you need to have
>>>
>>>   fdt_copy_node_names=/cpus:/psci
>>>   fdt_copy_src_addr=0x83080000
>>>
>>> in your U-Boot configuration. This is documented somewhere in the
>>> middle of
>>> http://elinux.org/Jetson/TX1_Upstream_Kernel.
>>
>> I can confirm that this works with u-boot from L4T R24.2.1.
>>
>> However, it doesn't work with mainling u-boot (grepping for fdt_copy_
>> doesn't show anything in the source code).
>>
>> Does anyone know how to get all 4 CPUs working with mainline u-boot?
> 
> Thierry, Jon, do you know?
> 
> The "fdt_copy" feature of U-Boot isn't upstreamed since I thought it was
> only required to boot the L4T kernel, not mainline. We're also reworking
> L4T so this feature won't be needed there either, so I don't expect to
> upstream "fdt_copy".

Yes I would not expect that to go upstream, I see the same problem
reported, I will take a look.

Cheers
Jon

-- 
nvpublic

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

* Re: Only 1 CPU on Jetson TX1
       [not found]             ` <fe29c677-584f-fd1f-d2f8-ff29c8bebf9c-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  2017-03-27 16:04               ` Jon Hunter
@ 2017-03-27 16:58               ` Thierry Reding
       [not found]                 ` <20170327165824.GA10278-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
  1 sibling, 1 reply; 7+ messages in thread
From: Thierry Reding @ 2017-03-27 16:58 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Martin Michlmayr, Mikko Perttunen,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA, Vagrant Cascadian,
	Jon Hunter

[-- Attachment #1: Type: text/plain, Size: 1562 bytes --]

On Mon, Mar 27, 2017 at 09:39:43AM -0600, Stephen Warren wrote:
> On 03/26/2017 04:49 PM, Martin Michlmayr wrote:
> > * Mikko Perttunen <cyndis-/1wQRMveznE@public.gmane.org> [2017-03-25 10:32]:
> > > It appears you need to have
> > > 
> > >   fdt_copy_node_names=/cpus:/psci
> > >   fdt_copy_src_addr=0x83080000
> > > 
> > > in your U-Boot configuration. This is documented somewhere in the middle of
> > > http://elinux.org/Jetson/TX1_Upstream_Kernel.
> > 
> > I can confirm that this works with u-boot from L4T R24.2.1.
> > 
> > However, it doesn't work with mainling u-boot (grepping for fdt_copy_
> > doesn't show anything in the source code).
> > 
> > Does anyone know how to get all 4 CPUs working with mainline u-boot?
> 
> Thierry, Jon, do you know?
> 
> The "fdt_copy" feature of U-Boot isn't upstreamed since I thought it was
> only required to boot the L4T kernel, not mainline. We're also reworking L4T
> so this feature won't be needed there either, so I don't expect to upstream
> "fdt_copy".

I vaguely remember that we had discussed this a while ago and I think we
decided that we should hardcode the /psci and /cpus nodes within the DTS
file on the basis that firmware would be considered part of the hardware
as far as the device tree description of it is concerned.

Technically, hard-coding isn't quite correct because someone might end
up not using the firmware that ships with L4T and therefore not have a
working PSCI implementation, but I think it's fairly unlikely that
someone will do that.

Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: Only 1 CPU on Jetson TX1
       [not found]                 ` <20170327165824.GA10278-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
@ 2017-03-27 17:03                   ` Stephen Warren
  0 siblings, 0 replies; 7+ messages in thread
From: Stephen Warren @ 2017-03-27 17:03 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Martin Michlmayr, Mikko Perttunen,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA, Vagrant Cascadian,
	Jon Hunter

On 03/27/2017 10:58 AM, Thierry Reding wrote:
> On Mon, Mar 27, 2017 at 09:39:43AM -0600, Stephen Warren wrote:
>> On 03/26/2017 04:49 PM, Martin Michlmayr wrote:
>>> * Mikko Perttunen <cyndis-/1wQRMveznE@public.gmane.org> [2017-03-25 10:32]:
>>>> It appears you need to have
>>>>
>>>>   fdt_copy_node_names=/cpus:/psci
>>>>   fdt_copy_src_addr=0x83080000
>>>>
>>>> in your U-Boot configuration. This is documented somewhere in the middle of
>>>> http://elinux.org/Jetson/TX1_Upstream_Kernel.
>>>
>>> I can confirm that this works with u-boot from L4T R24.2.1.
>>>
>>> However, it doesn't work with mainling u-boot (grepping for fdt_copy_
>>> doesn't show anything in the source code).
>>>
>>> Does anyone know how to get all 4 CPUs working with mainline u-boot?
>>
>> Thierry, Jon, do you know?
>>
>> The "fdt_copy" feature of U-Boot isn't upstreamed since I thought it was
>> only required to boot the L4T kernel, not mainline. We're also reworking L4T
>> so this feature won't be needed there either, so I don't expect to upstream
>> "fdt_copy".
>
> I vaguely remember that we had discussed this a while ago and I think we
> decided that we should hardcode the /psci and /cpus nodes within the DTS
> file on the basis that firmware would be considered part of the hardware
> as far as the device tree description of it is concerned.
>
> Technically, hard-coding isn't quite correct because someone might end
> up not using the firmware that ships with L4T and therefore not have a
> working PSCI implementation, but I think it's fairly unlikely that
> someone will do that.

It seems reasonable to expect PSCI, so hard-coding seems fine to me. If 
someone does something unusual (like bringing up a new FW) they can 
always temporarily adjust the default DT to suit their needs.

Equally, relying on copying the /psci and /cpus nodes from the 
nvtboot-supplied DT likely doesn't avoid this assumption, since IIRC 
those nodes are simply hard-coded into the DT that nvtboot uses anyway.

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

end of thread, other threads:[~2017-03-27 17:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-23  0:11 Only 1 CPU on Jetson TX1 Martin Michlmayr
     [not found] ` <20170323001131.GA7507-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
2017-03-25  8:32   ` Mikko Perttunen
     [not found]     ` <6da81dbc-b070-da0f-1589-ec2cb8f453d5-/1wQRMveznE@public.gmane.org>
2017-03-26 22:49       ` Martin Michlmayr
     [not found]         ` <20170326224912.GD4723-IRMp5PtgtdoigzW5ZibpNwC/G2K4zDHf@public.gmane.org>
2017-03-27 15:39           ` Stephen Warren
     [not found]             ` <fe29c677-584f-fd1f-d2f8-ff29c8bebf9c-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2017-03-27 16:04               ` Jon Hunter
2017-03-27 16:58               ` Thierry Reding
     [not found]                 ` <20170327165824.GA10278-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2017-03-27 17:03                   ` Stephen Warren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.