I’m running Talos Linux on a Jetson Orin NX 16 GB (Tegra234 / GA10B) with a mainline-based kernel 6.18.24, not NVIDIA’s JetPack 6 downstream kernel (5.15). I’m using the JetPack 6.2 / L4T r36.5 Out-of-Tree driver sources from OE4T (linux-nv-oot patches-r36.5, linux-nvgpu patches-rel-36, linux-hwpm) to build kernel modules, with the goal of running CUDA 12.6 / Ollama in Kubernetes. The full project was built with LLM assistance and is available at github.com/schwankner/talos-jetson-orin; it’s currently being proposed upstream at siderolabs/pkgs#1518.
All Out-of-Tree modules load cleanly (host1x.ko, host1x-fence.ko, nvmap.ko, mc-utils.ko, governor_pod_scaling.ko, nvgpu.ko), and cuInit succeeds. However, /dev/nvhost-ctrl does not exist after loading the stack, and it turns out this has a massive performance impact.
strace shows that libnvrm_host1x.so opens both /dev/nvgpu/igpu0/ctrl and /dev/nvhost-ctrl simultaneously at cuInit. They are not a fallback pair; both file descriptors are kept open and used concurrently. Without /dev/nvhost-ctrl, cudaStreamSynchronize falls back to CPU semaphore polling, which drops LLM inference throughput from ~65 tok/s down to ~7 tok/s for qwen2.5:0.5b. With a working /dev/nvhost-ctrl (interrupt-driven syncpoint wait via NVHOST_IOCTL_CTRL_SYNCPT_WAITMEX), performance is essentially identical to a standard Ubuntu JetPack 6.2 image on the same hardware.
As a workaround I wrote a small shim module (nvhost_ctrl_shim.ko) that creates the /dev/nvhost-ctrl device node and implements the relevant ioctls (GET_VERSION, SYNCPT_READ, SYNCPT_READ_MAX, SYNCPT_WAITMEX, SYNC_FENCE_CREATE, GET_CHARACTERISTICS, POLL_FD_CREATE, SYNC_FILE_EXTRACT) by bridging to the OOT host1x syncpoint API. This fully restores performance. I am not sure which component in a standard JetPack 6 setup creates /dev/nvhost-ctrl; it doesn’t appear to come from any of the Out-of-Tree modules, so presumably it’s part of NVIDIA’s downstream kernel tree or a component that isn’t available for mainline-based kernels.
Questions: Am I following a deprecated approach here? Is there an official or recommended way to get interrupt-driven cudaStreamSynchronize working with the JetPack 6.2 Out-of-Tree modules on a mainline kernel? Is /dev/nvhost-ctrl provided by a component in NVIDIA’s downstream kernel (5.15) that simply has no equivalent in the Out-of-Tree stack, meaning there is no supported path to get it on a mainline-based kernel without a shim?
Thanks in advance for any insights!