GX Spark fails to boot without maxcpus restriction

I am having a strange issue with my DGX Spark for the last couple of weeks, after I did an upgrade. It fails to boot and gets stuck on the splash screen.

I tried several things suggested by the community and the Spark’s documentation, including removing all the peripherals, but without luck.

I tried to do a full system recovery using the recommended USB method, but the USB drive wouldn’t boot either.

In the end, I figured out that I am able to boot into my system by passing the boot parameter maxcpus=1. While logged in, I tried to activate the remaining CPU cores manually by running the commands echo 1 | sudo tee /sys/devices/system/cpu/cpu$i/online for $i=1..19.

Interestingly, this worked for CPUs with ID 1..4 and 10..14, but failed for the rest with the reported dmesg error being:

  201.553000] CPU features: CPU5: Detected conflict for capability 119 (Broken broadcast TLBI completion), System: 0, CPU: 1
[  201.553012] CPU5: will not boot
[  206.823708] CPU5: failed to come online
[  206.823728] psci: CPU5 killed (polled 0 ms)

This corresponds to all performance cores being down and looks like a firmware issue to me. Does anyone have any suggestions on how to fix this issue, as at the moment my machine only works with 10 of the CPU cores?

Can you give more details on how the USB recovery failed? Do you have an FE unit or OEM? What errors were you seeing?

I have an FE unit.

The USB recovery process does not give any error. It immediately goes to a black screen and then freezes.

In the end, I managed to do the USB recovery by modifying the boot parameters of the USB disk and adding the maxcpus=1 parameter, as I mentioned above. The recovery then works without any further issues.

However, this does not solve my problem. The issue of freezing while booting to the DGX OS still persists after the recovery, unless I add the maxcpus parameter.

CPUs 5–9 and 15–19 are Cortex-X925 (MIDR 0xd85). CPUs 0–4 and 10–14 are Cortex-A725 (0xd87), and CPU0, the boot CPU, is an A725.

@xefouk Can you try booting with other maxcpus numbers? I think trying 5 and 6 will help us gather information if this is a specific CPU issue or something else.

I have tried both with maxcpus=5 and maxcpus=6. The first one with 5 works fine and consistently boots without issues (but I still cannot bring the Cortex-X925 cores online manually once booted). The second one with 6 fails consistently and always leads to a boot freeze.

While experimenting, I also tried adding the following kernel boot args to isolate the first Cortex-X925 core as much as possible: isolcpus=5 nohz=on nohz_full=5 rcu_nocbs=5 irqaffinity=0-4,6-19. With these arguments, the boot process works fine approximately 30% of the time, while the rest still lead to boot freezes. Note that I have verified that core 5 works fine while being isolated, if I manually schedule something on it with taskset.

Also, I noticed that if I isolate more of the Cortex-X925 cores (e.g., with something like isolcpus=5-9 nohz=on nohz_full=5-9 rcu_nocbs=5-9 irqaffinity=0-4,10-19), the chances of booting successfully increase further.

Given the above, my understanding is that there are two separate issues here:

  1. My original boot freeze problem is somehow triggered by the Cortex-X925 cores coming up online and being schedulable during the boot process (some race condition?). Using maxcpus=1..5 completely eliminates the boot freeze problem, as it guarantees that no Cortex-X925 core will be online and scheduled. Once I add one of the Cortex-X925 cores with maxcpus=6, the problem appears again.

  2. When using the maxcpus argument, the failure to bring up the Cortex-X925 cores later through the sys interface is a red herring and is most likely an artefact of how the OS is configured during the boot process to handle the errata of the detected CPUs (Broken broadcast TLBI completion).

At the moment, I have a semi-working system using the above configuration, where the CPU core 5 is isolated and I have to reboot the machine a few times until it boots. I am not sure what else to try at the moment, so I would appreciate any suggestions that anyone might have.

Thanks for trying that, it definitely isolates the issue. I’ve taken this to engineering and they need more information.
What is the Kernel/FastOS version and UEFI version where issue is seen. And the full journal of both the passing (with previous build) and failing boot.

Also, is this issue seen if you go to an earlier or newer kernel version?

Can you also share?
1.Are you using Ubuntu 2404?
2. uname -a,
3. cat /proc/cmdline

  1. I am using Ubuntu 24.04.5 LTS.

  2. The output of uname -a is Linux spark-75a8 7.0.0-1019-nvidia #19\~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Sun Sep 6 18:35:11 UTC 2 aarch64 aarch64 aarch64 GNU/Linux.

  3. The output of cat /proc/cmdline is BOOT_IMAGE=/boot/vmlinuz-7.0.0-1019-nvidia root=UUID=f302c312-aa03-4a76-8e74-f450f6c681e6 ro init_on_alloc=0 iommu.passthrough=0 console=tty0 plymouth.ignore-serial-consoles plymouth.use-simpledrm earlycon=uart,mmio32,0x16A00000 console=tty0 console=ttyS0,921600 isolcpus=5 nohz=on nohz_full=5 rcu_nocbs=5 irqaffinity=0-4,6-19 crashkernel=1G-:0M quiet splash initcall_blacklist=tegra234_cbb_init kho=off pci=pcie_bus_safe vt.handoff=7

I am also attaching the journal of the successful boot, but I observed that the failing boot does not generate any journal entry. working_boot.log (377.4 KB)

Finally, for the UEFI version, I am attaching the output of dmidecode -t bios and fwupdmgr.
dmidecode.txt (1.0 KB) fwupdmgr.txt (8.6 KB)

Regarding the question about earlier kernel versions, I have tried 6.17.0-1008, 6.17.0-1021 and 6.17.0-1029, but it didn’t make any difference.

Please let me know if I am missing someting.