How to increase cma on xavier nx jetpack 5.1.4

boot on slot B, root on nvme

I patched the kernel to increase the cma to 1536MB like this:

linux,cma {
linux,cma-default;
size = <0x00 0x60000000>; // 1536 MiB
reusable;
compatible = “shared-dma-pool”;
};

but after reboot

the cma is stuck to 64MiB.

thanks to point me out how to increase it. it’s needed for TTS.

Do you dump the device tree to confirm the modification?

Thanks

yes to have more space as 16GB is really too low to make TTS dev….

I just learned that even if dumped the tree the boot must be done on the mmc right?

so before I was booting from the nvme but failed and automatically boot on mmc which is why I go the cma failed to be changed. now I boot from the mmc and get the cma changed, but,

weirdly the rootfs is not mounted on the nvme.

sudo dmesg | grep cma
[ 0.000000] cma: Reserved 512 MiB at 0x000000008f000000
[ 0.000000] Kernel command line: root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 mminit_loglevel=4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 rootfstype=ext4 video=efifb:off cma=512M
[ 0.000000] Memory: 6459504K/7473856K available (18560K kernel code, 3170K rwdata, 7236K rodata, 3968K init, 1415K bss, 490064K reserved, 524288K cma-reserved)
workmin@node1000-gpu:~$ sudo fdisk -l
Disk /dev/nvme0n1: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk model: TS256GMTE110S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x724ae42e

Device Boot Start End Sectors Size Id Type
/dev/nvme0n1p1 2048 500118191 500116144 238.5G 83 Linux

Disk /dev/mmcblk0: 14.69 GiB, 15758000128 bytes, 30777344 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 66CCDA42-89AE-4E77-9293-E520D90A660D

Device Start End Sectors Size Type
/dev/mmcblk0p1 40 29360167 29360128 14G Microsoft basic data
/dev/mmcblk0p2 29360168 29491239 131072 64M Microsoft basic data
/dev/mmcblk0p3 29491240 29492135 896 448K Microsoft basic data
/dev/mmcblk0p4 29492136 29558783 66648 32.6M Microsoft basic data
/dev/mmcblk0p5 29558784 29563903 5120 2.5M Microsoft basic data
/dev/mmcblk0p6 29563904 29564031 128 64K Microsoft basic data
/dev/mmcblk0p7 29564032 29566079 2048 1M Microsoft basic data
/dev/mmcblk0p8 29566080 29568127 2048 1M Microsoft basic data
/dev/mmcblk0p9 29568128 29570175 2048 1M Microsoft basic data
/dev/mmcblk0p10 29570176 29573247 3072 1.5M Microsoft basic data
/dev/mmcblk0p11 29573248 29575295 2048 1M Microsoft basic data
/dev/mmcblk0p12 29575296 29706367 131072 64M Microsoft basic data
/dev/mmcblk0p13 29706368 29707263 896 448K Microsoft basic data
/dev/mmcblk0p14 29707264 29773823 66560 32.5M Microsoft basic data
/dev/mmcblk0p15 29773824 29937663 163840 80M Microsoft basic data
/dev/mmcblk0p16 29937664 29938687 1024 512K Microsoft basic data
/dev/mmcblk0p17 29938688 30143487 204800 100M Microsoft basic data
/dev/mmcblk0p18 30143488 30274559 131072 64M EFI System
/dev/mmcblk0p19 30274560 30438399 163840 80M Microsoft basic data
/dev/mmcblk0p20 30438400 30439423 1024 512K Microsoft basic data
/dev/mmcblk0p21 30439424 30570495 131072 64M Microsoft basic data
/dev/mmcblk0p22 30570496 30777303 206808 101M Microsoft basic data

extlinux.conf:

TIMEOUT 5
DEFAULT primary

MENU TITLE L4T boot options

LABEL primary
MENU LABEL primary kernel
LINUX /boot/Image
FDT /boot/dtb/kernel_tegra194-p3668-0001-p3509-0000.dtb
INITRD /boot/initrd
#APPEND root=/dev/nvme0n1p1 rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 video=efifb:off nospectre_bhb cma=512M
APPEND root=UUID=3147cfba-aadf-4b6e-8b7b-66856df5a95c rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 video=efifb:off nospectre_bhb cma=512M

ok I rebooted on extlinux from the bios and miracle, the cma change passed.

closing the topic. thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.