/dev/nvhost-ctrl missing with JetPack 6 Out-of-Tree modules on mainline kernel?

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!

Hi,

Could you build the kernel with our L4T (Official JetPack Ubuntu) for a test?
This helps to figure out if this issue is Talos-specific.

Thanks.

Hi,

We don’t see the /dev/nvhost-ctrl in our Orin with JetPack 6.
Could you list your and share it with us for comparison first?

$ ll /dev/nv
nvgpu/                        nvhost-ctrl-vi1-thi           nvidia-modeset                nvme0n1p14
nvhost-as-gpu                 nvhost-ctxsw-gpu              nvidia0                       nvme0n1p15
nvhost-ctrl-gpu               nvhost-dbg-gpu                nvidiactl                     nvme0n1p2
nvhost-ctrl-isp               nvhost-gpu                    nvmap                         nvme0n1p3
nvhost-ctrl-isp-thi           nvhost-nvsched-gpu            nvme-fabrics                  nvme0n1p4
nvhost-ctrl-nvcsi             nvhost-nvsched_ctrl_fifo-gpu  nvme0                         nvme0n1p5
nvhost-ctrl-nvdla0            nvhost-power-gpu              nvme0n1                       nvme0n1p6
nvhost-ctrl-nvdla1            nvhost-prof-ctx-gpu           nvme0n1p1                     nvme0n1p7
nvhost-ctrl-pva0              nvhost-prof-dev-gpu           nvme0n1p10                    nvme0n1p8
nvhost-ctrl-vi0               nvhost-prof-gpu               nvme0n1p11                    nvme0n1p9
nvhost-ctrl-vi0-thi           nvhost-sched-gpu              nvme0n1p12                    nvpps0
nvhost-ctrl-vi1               nvhost-tsg-gpu                nvme0n1p13                    nvsciipc

Thanks.

Thanks for checking on your side, that helps a lot.

Confirming that a stock JetPack 6 Orin also has no generic /dev/nvhost-ctrl (only the specialized nvhost-ctrl-* nodes in your listing) was exactly the nudge I needed.

Your question pushed me to properly re-investigate the Jetson instead of relying on my earlier assumptions.

I reflashed the node, re-checked the entire device and module situation from scratch, and analyzed where CUDA was actually initializing.

That surfaced the real root cause, and it had nothing to do with /dev/nvhost-ctrl.

The problem was in the DRM stack.

The mainline kernel ships a tegra-drm.ko built against the original upstream host1x ABI, while I load the OE4T host1x.ko with its GA10B syncpoint changes.

The symbols don’t match:

tegra_drm: Unknown symbol host1x_job_alloc (err -22)

So tegra-drm never loaded, /dev/dri/renderD128 was missing, and libcuda.so from L4T r36.5 couldn’t find the GPU.

The fix was to build tegra-drm.ko from the same OE4T source tree as host1x.ko (linux-nv-oot/drivers/gpu/drm/tegra/) so the ABI matches, plus host1x-nvhost.ko and nvhwpm.ko from the same tree.

Once /dev/dri/renderD128 showed up, CUDA initialized cleanly, without any /dev/nvhost-ctrl and without the shim I had built.

Results now on Talos Linux (Orin NX 16 GB, kernel 6.18.24, MAXN mode):

Model Talos JetPack 6.2 native Parity
qwen2.5:0.5b 64.6 tok/s 66.5 tok/s 97%
qwen3:4b 16.4 tok/s 19.5 tok/s 84%

So to close out my original question: /dev/nvhost-ctrl turned out to be a dead end, the missing DRM render node was the actual blocker.

Thanks again for pointing me at the stock comparison, that’s what got me looking in the right place.

Hi,

Sorry for the late update. Good to know it works now.

Just want to understand the issue further.
Is the tegra-drm not loaded since the ABI is incompatible?
Is the tegra-drm the only ko meet this issue?

Thanks.

Hi,

thanks for following up, and sorry for the delayed reply.

Did tegra-drm fail to load because of an ABI/symbol incompatibility?

Yes, that matches what I observed. On the mainline kernel (6.18.x) the stock tegra-drm.ko that ships with the kernel is built against the upstream host1x ABI, while my setup loads the OE4T-patched host1x.ko first. As a result tegra-drm could not resolve the host1x symbols and refused to load, the relevant dmesg line was an unresolved/version-mismatched symbol on host1x_job_alloc (err -22). With no DRM driver bound, /dev/dri/renderD128 never appeared, and libcuda.so could not enumerate the iGPU (cuInit returned 801).

Was tegra-drm the only affected module?

Not quite. At least in my case it wasn’t enough to fix tegra-drm alone. To get a consistent stack I ended up rebuilding tegra-drm, host1x-nvhost and nvhwpm from the same OE4T source tree as host1x, so that all of them share one ABI. After that the render node appears at boot and CUDA initializes correctly, without needing a /dev/nvhost-ctrl node, which lines up with your earlier observation that stock JetPack 6 also only exposes nvhost-ctrl-gpu rather than a generic nvhost-ctrl.

Thanks again for the help in narrowing this down.