Skip to contentSkip to conversation

Only 3.5 GB RAM on Jetson TX1

DISCUSSION Martin Michlmayr 3 participants 5 messages Mar 23, 2017 – Mar 24, 2017 3 messages not in the archive Tegra architecture support

lore
Share & tools
lore
#0 lore raw

Vagrant Cascadian observed that only 3.5 GB RAM are available on the Jetson TX1 development kit.

[    0.000000] Memory: 3501036K/3670016K available (6780K kernel code, 1020K rwdata, 2164K rodata, 3264K init, 634K bss, 168980K reserved, 0K cma-reserved)

Interestingly, even u-boot only shows 3.5 GB:

DRAM: 3.5 GiB

This is with mainline u-boot 2016.11 and R23.2 (2016.03-00633-g3ef9cdb).

However, 2015.07-rc2-g78c8468 (from R23.1.1) shows:

DRAM: 4 GiB

but that u-boot doesn't boot mainline kernels (some DT errors).

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/

A message that is not in the archive (sent off-list or not yet received): 20170323001357.GA7546-IRMp5PtgtdoigzW5ZibpNwC/[email protected]

#2 lore raw
Quoted 10 lines · Martin Michlmayr

Vagrant Cascadian observed that only 3.5 GB RAM are available on the Jetson TX1 development kit.

[    0.000000] Memory: 3501036K/3670016K available (6780K kernel code, 1020K rwdata, 2164K rodata, 3264K init, 634K bss, 168980K reserved, 0K cma-reserved)

Interestingly, even u-boot only shows 3.5 GB:

DRAM: 3.5 GiB

This is with mainline u-boot 2016.11 and R23.2 (2016.03-00633-g3ef9cdb).

That's expected.

A portion of the top-of-ram holds various carve-outs, such as for the secure OS and perhaps other purposes like media buffers. Mainline U-Boot currently hard-codes the size of this unusable RAM area to a very conservative size. Ideally, U-Boot would query the size of the RAM from the secure monitor, or retrieve it from information passed by an earlier stage bootloader. However, doing so relies on using interfaces that may not be strict ABIs, so we didn't want to make upstream U-Boot use them at least when we first upstreamed T210 support.

Quoted 5 lines

However, 2015.07-rc2-g78c8468 (from R23.1.1) shows:

DRAM: 4 GiB

but that u-boot doesn't boot mainline kernels (some DT errors).

Conversely, the L4T version of U-Boot is expected to work with the specific SW stack shipped with L4T, and hence does determine the carveout size at runtime, and hence allows access to a bit more RAM.

L4T U-Boot should boot an upstream kernel without issue. You may need to delete a few environment variables to stop U-Boot attempting to copy some data from the NV-bootloader-supplied DTB into the DTB that U-Boot itself loads from "disk" and passes to the kernel.

A message that is not in the archive (sent off-list or not yet received): 8453cf91-0b27-9968-59b8-7b697e8cd1f8-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org

#4 lore raw
Quoted 31 lines · Stephen Warren
Quoted 4 lines · Martin Michlmayr

Vagrant Cascadian observed that only 3.5 GB RAM are available on the Jetson TX1 development kit.

[    0.000000] Memory: 3501036K/3670016K available (6780K kernel code,
Quoted 8 lines

1020K rwdata, 2164K rodata, 3264K init, 634K bss, 168980K reserved, 0K cma-reserved)

Interestingly, even u-boot only shows 3.5 GB:

DRAM: 3.5 GiB

This is with mainline u-boot 2016.11 and R23.2 (2016.03-00633-g3ef9cdb).

That's expected.

A portion of the top-of-ram holds various carve-outs, such as for the secure OS and perhaps other purposes like media buffers. Mainline U-Boot currently hard-codes the size of this unusable RAM area to a very conservative size. Ideally, U-Boot would query the size of the RAM from the secure monitor, or retrieve it from information passed by an earlier stage bootloader. However, doing so relies on using interfaces that may not be strict ABIs, so we didn't want to make upstream U-Boot use them at least when we first upstreamed T210 support.

Quoted 5 lines

However, 2015.07-rc2-g78c8468 (from R23.1.1) shows:

DRAM: 4 GiB

but that u-boot doesn't boot mainline kernels (some DT errors).

Quoted 8 lines

Conversely, the L4T version of U-Boot is expected to work with the specific SW stack shipped with L4T, and hence does determine the carveout size at runtime, and hence allows access to a bit more RAM.

L4T U-Boot should boot an upstream kernel without issue. You may need to delete a few environment variables to stop U-Boot attempting to copy some data from the NV-bootloader-supplied DTB into the DTB that U-Boot itself loads from "disk" and passes to the kernel.

In particular, I'd expect clearing the following variables to solve any DT related errors:

fdt_copy_node_paths
fdt_del_prop_paths

#5 lore raw
In reply to a message not in the archive

Hi,

Quoted 16 lines · Stephen Warren
Quoted 4 lines · Martin Michlmayr

Vagrant Cascadian observed that only 3.5 GB RAM are available on the Jetson TX1 development kit.

[    0.000000] Memory: 3501036K/3670016K available (6780K kernel code,
Quoted 8 lines

1020K rwdata, 2164K rodata, 3264K init, 634K bss, 168980K reserved, 0K cma-reserved)

Interestingly, even u-boot only shows 3.5 GB:

DRAM: 3.5 GiB

This is with mainline u-boot 2016.11 and R23.2 (2016.03-00633-g3ef9cdb).

That's expected.

Quoted 8 lines

A portion of the top-of-ram holds various carve-outs, such as for the secure OS and perhaps other purposes like media buffers. Mainline U-Boot currently hard-codes the size of this unusable RAM area to a very conservative size. Ideally, U-Boot would query the size of the RAM from the secure monitor, or retrieve it from information passed by an earlier stage bootloader. However, doing so relies on using interfaces that may not be strict ABIs, so we didn't want to make upstream U-Boot use them at least when we first upstreamed T210 support.

So is it just a pessimistic carve-out that not only affect the TX1, or does the TX1 really have a secure monitor?

Quoted 10 lines
Quoted 6 lines

However, 2015.07-rc2-g78c8468 (from R23.1.1) shows:

DRAM: 4 GiB

but that u-boot doesn't boot mainline kernels (some DT errors).

Conversely, the L4T version of U-Boot is expected to work with the specific SW stack shipped with L4T, and hence does determine the carveout size at runtime, and hence allows access to a bit more RAM.

I interpret this that *some* memory up there is in deed in use, no matter if we use L4T or mainline Linux/U-Boot, right?

Thanks
Ralf

Quoted 9 lines

L4T U-Boot should boot an upstream kernel without issue. You may need to delete a few environment variables to stop U-Boot attempting to copy some data from the NV-bootloader-supplied DTB into the DTB that U-Boot itself loads from "disk" and passes to the kernel.

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): b61c05f6-a088-a2c1-b512-fc7b3fca618e-ex4EvEgDZR1o7HI0AxOeTKwczVv4G7md@public.gmane.org

#7 lore raw
Quoted 28 lines · Ralf Ramsauer

Hi,

Quoted 16 lines · Stephen Warren
Quoted 4 lines · Martin Michlmayr

Vagrant Cascadian observed that only 3.5 GB RAM are available on the Jetson TX1 development kit.

[    0.000000] Memory: 3501036K/3670016K available (6780K kernel code,
Quoted 8 lines

1020K rwdata, 2164K rodata, 3264K init, 634K bss, 168980K reserved, 0K cma-reserved)

Interestingly, even u-boot only shows 3.5 GB:

DRAM: 3.5 GiB

This is with mainline u-boot 2016.11 and R23.2 (2016.03-00633-g3ef9cdb).

That's expected.

Quoted 8 lines

A portion of the top-of-ram holds various carve-outs, such as for the secure OS and perhaps other purposes like media buffers. Mainline U-Boot currently hard-codes the size of this unusable RAM area to a very conservative size. Ideally, U-Boot would query the size of the RAM from the secure monitor, or retrieve it from information passed by an earlier stage bootloader. However, doing so relies on using interfaces that may not be strict ABIs, so we didn't want to make upstream U-Boot use them at least when we first upstreamed T210 support.

Quoted 2 lines

So is it just a pessimistic carve-out that not only affect the TX1, or does the TX1 really have a secure monitor?

There's definitely a secure monitor running. There could be a secure OS running, although L4T doesn't install one.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

However, 2015.07-rc2-g78c8468 (from R23.1.1) shows:

DRAM: 4 GiB

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

but that u-boot doesn't boot mainline kernels (some DT errors).

Conversely, the L4T version of U-Boot is expected to work with the specific SW stack shipped with L4T, and hence does determine the carveout size at runtime, and hence allows access to a bit more RAM.

I interpret this that *some* memory up there is in deed in use, no matter if we use L4T or mainline Linux/U-Boot, right?

Yes.

Quoted 12 lines

Thanks
Ralf

Quoted 9 lines

L4T U-Boot should boot an upstream kernel without issue. You may need to delete a few environment variables to stop U-Boot attempting to copy some data from the NV-bootloader-supplied DTB into the DTB that U-Boot itself loads from "disk" and passes to the kernel.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html