Two independent apps displaying on separate DRM planes on Jetson Orin Nano (L4T R39.2)

Hi,

I’m working on Jetson Orin Nano with Jetson Linux (L4T) R39.2 and need to display content from two independent applications simultaneously using DRM/KMS.

Goal:

  • App A: H.264 video decoder, outputs decoded frames to one DRM plane
  • App B: GUI application (Qt6 or similar), displays UI overlay on a second DRM plane
  • Both apps run independently as separate processes

Current hardware/software environment:

  • Board: Jetson Orin Nano
  • L4T: R39.2 (kernel 6.8.12-tegra)
  • Display: DP-1 (1920x1080@60Hz)
  • DRM device: /dev/dri/card1 (nvidia-drm driver)
  • Available planes on CRTC 61:
    • plane 50: Primary (possibleCRTCs=0x1)
    • plane 55: Cursor (possibleCRTCs=0x1)
    • plane 62: Overlay (possibleCRTCs=0x1)

What I have tried:

  1. Two independent processes with separate open(/dev/dri/card1): The second process gets Permission denied (errno=13) on drmModeAtomicCommit because only one process can hold DRM master at a time.
  2. GStreamer nvdrmvideosink with tee (two sinks on different planes): Results in cannot create framebuffer error when both sinks share the same conn-id.
  3. DRM Lease (drmModeCreateLease): Master app holds plane 50, creates a lease for plane 62 and passes the lease_fd to the client app via Unix socket (SCM_RIGHTS).
    • Master app (plane 50): Works correctly with drmModeAtomicCommit
    • Client app (plane 62) with drmModeAtomicCommit: Gets Flip event timeout on head 0 every ~3 seconds in dmesg, animation runs at ~3 second intervals instead of the intended 30ms
    • Client app (plane 62) with legacy drmModeSetPlane: Same timeout behavior

Questions:

  1. Is it fundamentally possible to display content from two independent processes on separate DRM planes (Primary + Overlay) on Jetson Orin Nano with the nvidia-drm driver in L4T R39.2?
  2. Is DRM lease (drmModeCreateLease) supported for this use case with the nvidia-drm driver?
  3. Why does drmModeAtomicCommit on plane 62 via a lease fd result in Flip event timeout on head 0? Is there a known workaround?
  4. We previously read a 2023 forum post (Orin Nano with nvdrm overlay) stating that overlay plane operations are not supported on Orin. Is this still the case in L4T R39.2, or has this been addressed?
  5. If two independent processes on separate planes is not feasible, what is the recommended architecture for displaying decoded video (H.264) and a GUI overlay simultaneously on a single display with nvidia-drm?

Any guidance would be greatly appreciated.

Thank you.

Title: Overlay plane (plane 62) AtomicCommit blocks ~3 seconds when Primary plane (plane 50) is already active on Jetson Orin Nano L4T R39.2


Environment

  • Board: NVIDIA Jetson Orin Nano Engineering Reference Developer Kit Super
  • L4T: R39.2 (REVISION: 2.0, GCID: 45755727)
  • Kernel: 6.8.12-1021-tegra
  • nvidia-drm: NVIDIA DRM driver 0.0.0 20160202
  • libdrm: 2.4.125-1ubuntu0.1~24.04.2
  • Display: BenQ VL2245Z via DP-1, 1920x1080@60Hz
  • Test program: Custom C application using DRM/KMS API (GBM + PRIME + AtomicCommit)

DRM Resources (from modetest -M nvidia-drm)

DRM device : /dev/dri/card1  (nvidia-drm / nv_platform)
             /dev/dri/card0  (tegra, open-source, NOT used)
CRTC id    : 61  (DP-1, 1920x1080@60Hz)
plane 50   : Primary,  possibleCRTCs=0x1
plane 55   : Cursor,   possibleCRTCs=0x1
plane 62   : Overlay,  possibleCRTCs=0x1

Problem Description

I am trying to display content on two DRM planes simultaneously from a single process:

  • plane 50 (Primary): background + horizontal marquee animation
  • plane 62 (Overlay): background + horizontal marquee animation with a transparent region

When both planes are managed in the same process, updating plane 62 independently after plane 50 is already active results in a ~3 second block per commit call.


Test Results

Test Case Result Observation
plane 50 AtomicCommit (alone) PASS Returns immediately, smooth animation
plane 62 standalone (self as DRM master, plane 50 not active) PASS Returns immediately, smooth animation
plane 62 AtomicCommit (plane 50 already active) FAIL Blocks ~3 seconds per call
plane 62 drmModeSetPlane (plane 50 already active) FAIL Same ~3 second block
DRM lease → plane 62 AtomicCommit FAIL Same ~3 second block
plane 50 + plane 62 in single AtomicCommit request PASS Both planes update smoothly (~16ms/frame)

Kernel Error Message

Every ~3 seconds when plane 62 commits independently:

[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0xfffffffe] Flip event timeout on head 0

Root Cause Analysis (from our investigation)

The nvidia-drm driver has a three-layer architecture:

User space
    |
nvidia-drm  (DRM KMS layer)
    |
NVKMS       (nvidia-modeset.ko)
    |
RM          (nvidia.ko)

We believe the issue is in the NVKMS layer’s flip completion event definition. NVKMS appears to define a complete display head update (“head flip”) as:

head flip = CRTC mode update + Primary plane (plane 50) framebuffer update

Updating only the Overlay plane (plane 62) does NOT constitute a head flip, so NVKMS never issues a flip completion event. However, nv_drm_atomic_commit() unconditionally waits for a flip completion event regardless of which plane was updated, resulting in a ~3 second driver-side timeout.

This behavior is identical for both drmModeAtomicCommit() and drmModeSetPlane() (legacy API), confirming that both paths go through the same NVKMS code path internally.


Workaround Found

Combining both plane updates into a single drmModeAtomicCommit() call resolves the issue:

c

drmModeAtomicReqPtr req = drmModeAtomicAlloc();

// Add plane 50 properties (FB_ID, CRTC_ID, CRTC_W/H, SRC_W/H, ...)
drmModeAtomicAddProperty(req, PLANE_50, prop_fb_id,   fb_id_50);
drmModeAtomicAddProperty(req, PLANE_50, prop_crtc_id, CRTC_ID);
// ... other plane 50 properties

// Add plane 62 properties
drmModeAtomicAddProperty(req, PLANE_62, prop_fb_id,   fb_id_62);
drmModeAtomicAddProperty(req, PLANE_62, prop_crtc_id, CRTC_ID);
// ... other plane 62 properties

// Single commit for both planes - works correctly
drmModeAtomicCommit(fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);

When combined, the Primary plane update triggers a head flip, the flip completion event is issued normally, and both planes update together in ~16ms.

However, this workaround requires both planes to be managed within a single process, which prevents the intended use case of having an independent video decoder process and an independent GUI process each managing their own plane.


Questions

  1. Is this a known limitation of NVKMS on Orin Nano? Is it addressed in any newer L4T release?
  2. Is there an official API or mechanism to update the Overlay plane independently without requiring a simultaneous Primary plane update?
  3. Is DRM lease (drmModeCreateLease) intended to support independent Overlay plane updates on Orin Nano with nvidia-drm? We tested this but the lessee process experiences the same ~3 second timeout.
  4. A 2023 forum post (Orin Nano with nvdrm overlay) states that overlay plane operations fail on Orin. Is this still the case in L4T R39.2, or has the driver behavior changed?
  5. What is the recommended architecture for a use case where a video decoder process and a GUI process each need to independently and smoothly update their own display plane on Orin Nano?

Reference: Timing measurement code used for diagnosis

c

struct timespec t0, t1;
clock_gettime(CLOCK_MONOTONIC, &t0);

int ret = drmModeAtomicCommit(fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);

clock_gettime(CLOCK_MONOTONIC, &t1);
long ms = (t1.tv_sec - t0.tv_sec) * 1000
        + (t1.tv_nsec - t0.tv_nsec) / 1000000;
// Result: plane 50 -> ~0ms, plane 62 (independent) -> ~3000ms
fprintf(stderr, "plane %u commit took %ldms\n", plane_id, ms);

Hi,
Jetpack 7.2 Orin is identical to 6.2.2 r36.5 that only single plane is supported in DRM. Would suggest develop your use-case based on single plane.

Hi DaneLLL,

Following up on your suggestion to develop use-cases based on a single plane for JetPack 7.2 / L4T R36.5 on Jetson Orin Nano — I would like to confirm whether the overlay plane issue we are encountering is a known, unresolved bug.

Observed behavior (L4T R39.2, kernel 6.8.12-tegra, /dev/dri/card1 nvidia-drm):

  • While the primary plane (plane 50) is actively displaying content, issuing a separate DRM atomic commit targeting only the overlay plane (plane 62) results in approximately a 3-second hang, followed by a “Flip event timeout on head 0” error.
  • Workaround: bundling both the primary plane (plane 50) and overlay plane (plane 62) together in a single atomic commit resolves the timeout.

Specific questions:

  1. Is this overlay plane flip-event timeout a confirmed bug in nvidia-drm on Jetson Orin Nano, and if so, is it tracked internally?
  2. Is this the reason behind the official recommendation to use only a single plane — meaning the overlay plane is currently non-functional or unreliable by design on this platform?
  3. Are there any plans to fix overlay plane support in an upcoming L4T release?

If the overlay plane is officially unsupported and the bug will not be addressed, please confirm so we can proceed with a single-plane architecture.

Thank you for your time.

Hi,
On Orin series, the overlay plane is officially unsupported and the bug will not be addressed. Pleas develop your use-case based on single plane.