Only 1 CPU on Jetson TX1
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
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
A message that is not in the archive (sent off-list or not yet received): 20170323001131.GA7507-IRMp5PtgtdoigzW5ZibpNwC/[email protected]
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.
Quoted 18 lines · Martin Michlmayr
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
A message that is not in the archive (sent off-list or not yet received): 6da81dbc-b070-da0f-1589-ec2cb8f453d5-/[email protected]
Quoted 7 lines · Mikko Perttunen
It appears you need to have
fdt_copy_node_names=/cpus:/psci
fdt_copy_src_addr=0x83080000in 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?
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
A message that is not in the archive (sent off-list or not yet received): 20170326224912.GD4723-IRMp5PtgtdoigzW5ZibpNwC/[email protected]
Quoted 9 lines · Martin Michlmayr
Quoted 7 lines · Mikko Perttunen
It appears you need to have
fdt_copy_node_names=/cpus:/psci
fdt_copy_src_addr=0x83080000in your U-Boot configuration. This is documented somewhere in the middle of
http://elinux.org/Jetson/TX1_Upstream_Kernel.
Quoted 6 lines
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".
A message that is not in the archive (sent off-list or not yet received): fe29c677-584f-fd1f-d2f8-ff29c8bebf9c-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org
Quoted 16 lines · Stephen Warren
Quoted 15 lines · Martin Michlmayr
Quoted 8 lines · Mikko Perttunen
It appears you need to have
fdt_copy_node_names=/cpus:/psci
fdt_copy_src_addr=0x83080000in 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).
Quoted 8 lines
Quoted 1 line
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
Signature · 1 line
nvpublic
Quoted 15 lines · Stephen Warren
Quoted 14 lines · Martin Michlmayr
Quoted 7 lines · Mikko Perttunen
It appears you need to have
fdt_copy_node_names=/cpus:/psci
fdt_copy_src_addr=0x83080000in 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).
Quoted 8 lines
Quoted 1 line
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 30 lines · Thierry Reding
Quoted 15 lines · Stephen Warren
Quoted 14 lines · Martin Michlmayr
Quoted 7 lines · Mikko Perttunen
It appears you need to have
fdt_copy_node_names=/cpus:/psci
fdt_copy_src_addr=0x83080000in 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).Quoted 8 lines
Quoted 1 line
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.
Quoted 4 lines
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.