Nvidia-drm cursor position updates bypass DRM atomic async path — proposed fix in PR #1316

nvidia-drm cursor position updates do not use the DRM atomic async path — proposed implementation in PR #1316

I found that cursor position updates in nvidia-drm currently fall through the regular atomic commit path instead of using DRM’s atomic async update mechanism.

I implemented support for:

  • drm_plane_helper_funcs::atomic_async_check
  • drm_plane_helper_funcs::atomic_async_update
  • handling of state->async_update through drm_atomic_helper_async_commit()
  • a dedicated NVKMS KAPI moveCursor operation backed by NVKMS_IOCTL_MOVE_CURSOR

The async path is deliberately restricted to cursor updates where framebuffer, CRTC assignment, dimensions, source geometry, rotation, blending, z-order, color state and fences remain unchanged. Updates that fail those checks remain on the normal atomic commit path.

The resulting async callback updates the cursor coordinates and invokes the dedicated NVKMS cursor-move operation instead of running the full modeset/flip commit path.

In my testing, this reduced cursor-move latency from the blocking millisecond-scale path to approximately ~15 µs.

Implementation:
NVIDIA/open-gpu-kernel-modules PR #1316

I have also checked the 615.71.09 source and do not see an equivalent atomic-async cursor path there.

I would appreciate feedback on whether exposing the existing NVKMS cursor-move operation through the KAPI and using it from DRM atomic async updates matches NVIDIA’s intended architecture.