Hello,
We run a hard real-time audio workload on Jetson Orin Nano. A persistent CUDA kernel processes one sample every ~20.8 us (48 kHz). We see a sporadic worst-case delay of about +20-23 us. We traced it to a short memory stall that affects the whole SoC, and we would like to understand it and, if possible, avoid it.
**Platform**
- Jetson Orin Nano Engineering Reference Developer Kit Super
- L4T R36.5.0 (nvidia-l4t-core 36.5.0-20260115194252), kernel 5.15.185-tegra, CUDA 12.6.68
- BPMP firmware: 030ffe301d1db1d01cb6-68f126a8abf
- Power mode MAXN_SUPER, `jetson_clocks` applied (GPU 1020 MHz, EMC 3199 MHz, FreqOverride=1)
- LPDDR5, 8 channels
**What we observe**
1. Every memory access stalls for 20-23 us at the same moment: GPU loads that hit L2, GPU loads that go to DRAM, GPU reads of host-mapped (zero-copy) memory, and CPU DRAM loads on another core. GPU warps that use only shared memory or registers are not affected.
2. The stall happens only on a 1 s grid, and the phase on that grid stays fixed relative to the GPU `%globaltimer` (within ±0.3 ms over minutes). Relative to Linux `CLOCK_MONOTONIC`, which is NTP-disciplined, the phase drifts by about 37 ppm. So it does not look like a Linux timer. It matches `/sys/kernel/debug/bpmp/debug/emc/timer_period = 1000`.
3. The trigger is a change in GPU DRAM write activity:
-
GPU busy with no DRAM traffic: no stall.
-
DRAM reads only: no stall (0 of 20 trials).
-
Host-mapped reads only: no stall (0 of 10).
-
GPU DRAM writes start: one stall on the next 1 s tick (11 of 11).
-
GPU DRAM writes stop: one stall 1-4 ticks later (5 of 11).
-
Steady, continuous writes: no further stalls (tested for 10-15 min).
4. It is not an EMC frequency change. `emc/stats` keeps the same transition count (9) before and after the test, and `clk/emc/rate` stays at 3199000000.
5. It does not depend on the display (also seen with gdm stopped), on temperature ramps, or on other processes creating CUDA contexts.
6. `emc/timer_period` and `emc/timer_period_training` (100) are read-only. Writing to them returns EINVAL.
We can share a small standalone CUDA program that reproduces this. It toggles GPU DRAM writes on and off every few seconds while a separate warp records `%globaltimer` gaps.
**Questions**
1. What does the BPMP EMC code do on the 1000 ms `timer_period` tick that blocks all memory clients for about 20 us? Is it LPDDR5 periodic training or compensation (for example DQS/WCK oscillator retraining), MR4 temperature polling, or something else?
2. Why does a change in GPU DRAM write activity cause it? Is there a documented activity or threshold condition?
3. Is there a supported way to avoid or bound this stall? For example: a BPMP DT or EMC table property to disable it or lengthen its period, to make it run unconditionally at a known time, or to make it non-blocking. What are the effects on DRAM reliability across temperature?
4. For workloads with a deadline of about 20 us per sample, does NVIDIA recommend any configuration or approach? Keeping a constant write load is a possible workaround, but it costs bandwidth and latency and does not seem robust.
Thank you.