DRM database property: IN_FENCE_FD

Back to index

Details

Name
IN_FENCE_FD
Flags
atomic
Type
signed range
Attached to
plane
Specification
[-1, INT32_MAX]

Documentation

Use this property to pass a fence that DRM should wait on before
proceeding with the Atomic Commit request and show the framebuffer for
the plane on the screen. The fence can be either a normal fence or a
merged one, the sync_file framework will handle both cases and use a
fence_array if a merged fence is received. Passing -1 here means no
fences to wait on.

If the Atomic Commit request has the DRM_MODE_ATOMIC_TEST_ONLY flag
it will only check if the Sync File is a valid one.

On the driver side the fence is stored on the @fence parameter of
&struct drm_plane_state. Drivers which also support implicit fencing
should extract the implicit fence using drm_gem_plane_helper_prepare_fb(),
to make sure there's consistent behaviour between drivers in precedence
of implicit vs. explicit fencing.

Driver support

✓ adp
✓ amdgpu
✓ apple
✓ ast
✓ bochs-drm
✓ drm-rp1-dsi
✓ evdi
✓ exynos
✗ gma500
✓ i915
✓ imx-dcss
✓ imx-drm
✓ imx-lcdif
✓ jmgpu
✓ kirin
✓ mediatek
✓ meson
✓ mga2
✓ mgag200
✓ msm
✓ msm_drm
✓ mxsfb-drm
✓ nouveau
✓ nvidia-drm
✓ omapdrm
✓ panel-mipi-dbi
✗ pvr
✓ qxl
✗ radeon
✓ rcar-du
✓ rockchip
✓ rvdisplay
✓ simpledrm
✓ smifb
✓ spacemit
✓ starfive
✓ stm
✓ sun4i-drm
✓ sunxi-drm
✓ tegra
✓ tilcdc
✗ v3d
✓ vboxvideo
✓ vc4
✓ virtio_gpu
✗ vivante
✓ vkms
✓ vmwgfx
✓ vs-drm
✓ xe
✓ xlnx