drm/nouveau: Support sync FDs and sync objects
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | drm/nouveau: Split nouveau_fence_sync()drivers/ drivers/ drivers/ +3 more | +57 | 0 replies | |
| 2/6 | drm/nouveau: Add nouveau_fence_ref()drivers/ drivers/ | +10 | 0 replies | |
| 3/6 | drm/nouveau: Support fence FDs at kickoffdrivers/ drivers/ drivers/ +1 more | +92 | 0 replies | |
| 4/6 | drm/nouveau: Support sync FDs and syncobjsdrivers/ include/ | +167 | 1 reply | |
| 5/6 | drm/nouveau: Support DMA fence arraysdrivers/ | +28 | 0 replies | |
| 6/6 | drm/nouveau: Allow zero pushbuffer submitsdrivers/ | +99 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] drm/nouveau: Support sync FDs and sync objects
From: Thierry Reding <[email protected]>
Hi,
This series implements a new IOCTL to submit push buffers that can optionally return a sync FD or sync object to userspace. This is useful in cases where userspace wants to synchronize operations between the GPU and another driver (such as KMS for display). Among other things this allows extensions such as eglDupNativeFenceFDANDROID to be implemented.
Note that patch 4 modifies the ABI introduced in patch 3 by allowing DRM sync objects to be passed rather than only sync FDs. It also allows any number of sync FDs/objects to be passed in or emitted. I think those are useful features, but I left them in a separate patch in case everybody else thinks that this won't be needed. If we decide to merge the new ABI then patch 4 should be squashed into patch 3.
The corresponding userspace changes can be found here:
libdrm: https://gitlab.freedesktop.org/tagr/drm/-/commits/nouveau-sync-fd-v2/
mesa: https://gitlab.freedesktop.org/tagr/mesa/-/commits/nouveau-sync-fd/
I've verified that this works with kmscube's --atomic mode and Weston.
Thierry
Thierry Reding (6):
drm/nouveau: Split nouveau_fence_sync()
drm/nouveau: Add nouveau_fence_ref()
drm/nouveau: Support fence FDs at kickoff
drm/nouveau: Support sync FDs and syncobjs
drm/nouveau: Support DMA fence arrays
drm/nouveau: Allow zero pushbuffer submits
drivers/gpu/drm/nouveau/dispnv04/crtc.c | 4 +- drivers/gpu/drm/nouveau/nouveau_bo.c | 38 ++- drivers/gpu/drm/nouveau/nouveau_bo.h | 2 + drivers/gpu/drm/nouveau/nouveau_drm.c | 1 + drivers/gpu/drm/nouveau/nouveau_fence.c | 90 +++--- drivers/gpu/drm/nouveau/nouveau_fence.h | 3 +- drivers/gpu/drm/nouveau/nouveau_gem.c | 402 ++++++++++++++++++------ drivers/gpu/drm/nouveau/nouveau_gem.h | 2 + include/uapi/drm/nouveau_drm.h | 23 ++ 9 files changed, 410 insertions(+), 155 deletions(-)
Signature · 1 line
2.28.0