Bug Report: RTD3 fine-grained power cycling causes intermittent NV_ERR_NO_MEMORY on HDA controller re-init, resulting in audible audio glitches unrela

Bug Report: RTD3 fine-grained power cycling causes intermittent NV_ERR_NO_MEMORY on HDA controller re-init, resulting in audible audio glitches unrelated to the audio subsystem

Summary

On a laptop with hybrid graphics (Intel/AMD iGPU + NVIDIA dGPU), NVIDIA’s Runtime D3 (RTD3) fine-grained power management periodically powers the discrete GPU up and down while it is idle (~every 30 seconds during normal desktop/browser use, GPU utilization 0%). On resume from each power-down cycle, the driver re-initializes the GPU’s PCI functions, including its HDMI/DP audio (HDA) controller. This re-initialization intermittently fails with NV_ERR_NO_MEMORY, despite the GPU being almost entirely idle (15 MiB / 8151 MiB VRAM in use at the time of failure).

The failed/retried allocation appears to briefly stall the PCI/PCIe bus, which in turn causes audible audio dropouts (xruns) in the system’s unrelated analog audio output (Intel HDA, not the GPU’s HDMI audio), via PipeWire/ALSA. This makes the bug very hard to diagnose from the audio side, since nothing in the audio stack itself is misbehaving — the browser, PipeWire, ALSA, and analog codec are all functioning correctly; the stall originates entirely from the GPU’s power-management cycle.

System Info

  • Laptop: Lenovo LOQ 15AHP10 (hybrid Intel/AMD + NVIDIA graphics)

  • GPU: NVIDIA GeForce RTX 5060 Laptop

  • Driver: nvidia-driver-580-open, version 580.95.05-0ubuntu1

  • CUDA Version reported: 13.0

  • OS: Ubuntu (approx. 6 months old install, kernel 6.14.0-37-generic)

  • dkms status at time of report:

    nvidia/580.95.05, 6.14.0-35-generic, x86_64: installednvidia/580.95.05, 6.14.0-36-generic, x86_64: installednvidia/580.95.05, 6.14.0-37-generic, x86_64: installed
    
    

Reproduction

  1. Laptop with hybrid graphics, NVIDIA GPU idle (not actively rendering/decoding), RTD3 fine-grained runtime PM enabled (default).

  2. Confirm RTD3 state:

    $ cat /proc/driver/nvidia/gpus/0000:01:00.0/powerRuntime D3 status:          Enabled (fine-grained)
    
    
  3. Leave the system idle or lightly used (e.g. browsing, video playback) for an extended period.

  4. Observe dmesg -T -w.

Observed kernel log pattern

Errors recur roughly every 30 seconds, matching the GPU’s idle power-cycle interval:

[Sun Jul 19 22:11:37 2026] NVRM: nvCheckOkFailedNoLog: Check failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from _memdescAllocInternal(pMemDesc) @ mem_desc.c:1359
[Sun Jul 19 22:11:39 2026] nvidia 0000:01:00.0: Enabling HDA controller
[Sun Jul 19 22:12:07 2026] NVRM: nvCheckOkFailedNoLog: Check failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from _memdescAllocInternal(pMemDesc) @ mem_desc.c:1359
[Sun Jul 19 22:12:13 2026] nvidia 0000:01:00.0: Enabling HDA controller

This pattern repeated continuously (with brief gaps where the allocation happened to succeed) for well over an hour of observation. nvidia-smi polled every second during this window showed GPU memory usage flat at 15 MiB / 8151 MiB the entire time — the failure is not caused by actual VRAM exhaustion.

Downstream symptom (how this was discovered)

The failed re-init events were found to correlate precisely with intermittent audio dropouts/xruns on the system’s separate analog audio output (Intel HDA via snd_hda_intel, unrelated to the GPU’s own HDMI/DP audio path), as observed via pw-top:

R   57   4096  48000  76.0us  61.3us  0.00  0.00     8   S32LE 2 48000  alsa_output.pci-0000_05_00.6.analog-stereo
R   61   1024  48000  37.7us  30.5us  0.00  0.00    16   F32LE 2 48000  + Google Chrome

The ERR counters above are cumulative xrun counts. Increments were not correlated with any user action (browser tab switching, video playback start/stop, etc.), memory pressure, or CPU load — top/htop showed the system essentially idle at the exact moments xruns occurred. They were, however, tightly correlated with the ~30s NV_ERR_NO_MEMORY cadence above.

This was confirmed by a controlled, staged investigation on the audio side before the GPU was identified as the cause:

  • Stock PipeWire quantum (1024 samples, ~21ms buffer): audio xruns occurred within seconds of any video playback, sometimes climbing into the hundreds/ thousands of xruns per session on the alsa_output sink.
  • PipeWire quantum manually raised to 2048 (~43ms): xrun frequency dropped substantially but did not reach zero — occasional xruns (1-10 per several minutes) persisted, still audible on some occasions.
  • PipeWire quantum manually raised to 4096 (~85ms), with force-quantum set to prevent any client from negotiating a smaller graph quantum: xruns dropped further, to roughly 1 per 8-20 minutes, occasionally still audible as a single click.

At each buffer size, xrun counts on the sink (alsa_output) and the audio-producing client (Chrome) sometimes incremented independently/out of sync with each other, which was initially (incorrectly) suspected to indicate multiple separate root causes. Increasing the buffer size was masking the symptom by giving PipeWire more slack to absorb the periodic stall, but never eliminated it entirely at any buffer size tested up to 4096 — this is the key data point suggesting a fixed-duration, externally caused stall event, rather than an audio-subsystem-internal scheduling/jitter issue that buffer tuning would be expected to fully resolve.

Once dmesg correlation revealed the NV_ERR_NO_MEMORY / RTD3 pattern above, a cleaner before/after test was run:

  • With RTD3 enabled (default) and PipeWire reverted to stock 1024 quantum: NV_ERR_NO_MEMORY continued at its usual ~30s cadence.
  • With RTD3 disabled (power/control forced to on) and PipeWire still at the stock 1024 quantum (no buffer-size workaround in place at all): zero NV_ERR_NO_MEMORY entries and zero audio xruns observed over 30+ minutes of active use (video playback, tab switching).

This final test — disabling RTD3 alone, with no audio-side buffer tuning in place — producing a completely clean result at the tightest stock buffer setting is what confirms the GPU power-cycling bug as the sole root cause, rather than one of several contributing factors. The buffer-size increases had been incrementally masking the symptom without ever addressing its source.

Workaround

Disabling NVIDIA runtime power management entirely eliminates both the NV_ERR_NO_MEMORY errors and the downstream audio xruns:

Live test:

echo on | sudo tee /sys/bus/pci/devices/0000:01:00.0/power/control

Persistent fix:

echo 'options nvidia NVreg_DynamicPowerManagement=0x00' | sudo tee /etc/modprobe.d/nvidia-pm.conf
sudo update-initramfs -u

(reboot required)

This is a functional workaround but comes at the cost of the GPU never entering a low-power state, which will increase idle power draw / reduce battery life on a laptop — not an acceptable permanent state for most users, just a diagnostic confirmation and stopgap.

Expected behavior

RTD3 power-cycling should not intermittently fail to allocate memory for a GPU function (HDA controller) re-init when the GPU is almost entirely idle and has ample free VRAM, and even if such a failure did occur, it should not have any observable effect on entirely unrelated PCI devices/audio paths on the system.

Suspected root cause (unconfirmed, driver-internal)

Given VRAM usage is flat and low throughout, this looks less like genuine memory exhaustion and more like either:

  • A race condition in the RTD3 resume path where the HDA controller’s memory descriptor allocation runs before some other resource it depends on is ready, or
  • An allocator/pool sizing issue specific to a certain memory type/heap used during HDA controller re-init that is unrelated to overall VRAM availability.

Given the RTX 5060 is a very recently released chip, this may be an RTD3 resume-path issue specific to newer chip support in the 580.x “open” driver branch that hasn’t yet been fully validated against real-world laptop power-cycling behavior.

Additional notes

  • This occurs with the -open variant of the 580 driver branch specifically; not tested against the closed/proprietary driver.

  • Happy to provide nvidia-bug-report.sh output or additional logs if useful for triage.

    nvidia-bug-report.log.gz (1.5 MB)