Part Number: AM6442
Hello
I trying to isolate CPU 1 from scheduler by isolcpus=1 kernel parameter. I have tried several approaches: via the Yocto APPEND variable, via the --apend parameter in the wks file, via devicetree or the uEnv U-Boot script, but none of that works. In /proc/cmdline I cannot see the isolcpus = 1 flag set, also htop shows that CPU1 have scheduled tasks. I'm using kernel 5.10 with PREEMPT_RT patch. Why this is not working?
Bellow is configuration fragment.
CONFIG_CMDLINE="console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 isolcpus=1" CONFIG_CMDLINE_EXTEND=y CONFIG_CMDLINE_FORCE=y CONFIG_CPU_ISOLATION=y
uEnv.txt file:
bootargs=${bootargs}; isolcpus=1
name_overlays=tpm-slb9670-overlay.dtbo spidev-overlay.dtbo gpios-hardware-test-overlay.dtbo
uenvcmd=run init_${boot}; run get_kern_${boot}; run get_fdt_${boot};run get_overlay_mmc; run run_kern
.wks:
bootloader --append="rootfstype=ext4 isolcpus=1" part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 192M part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid
Whatever I set, cmdline always looks like this:
console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=fc40000.spi.0:1m(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),256k(ospi.env.backup),57088k@8m(ospi.rootfs),256k(ospi.phypattern);omap2-nand.0:2m(NAND.tiboot3),2m(NAND.tispl),2m(NAND.tiboot3.backup),4m(NAND.u-boot),256k(NAND.u-boot-env),256k(NAND.u-boot-env.backup),-(NAND.file-system) root=PARTUUID=05bf03dd-02 rw rootfstype=ext4 rootwait
Are these parameters configured somewhere in the meta-ti and override my settings?
BR,
Jakub