Skip to content

drm: Add mode object leases [v3]

Keith Packard dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm: Pass struct drm_file * to __drm_mode_object_finddrivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drivers/gpu/drm/amd/amdgpu/dce_virtual.c drivers/gpu/drm/ast/ast_mode.c +33 more+84 -720 replies
2/6drm: Allow render nodes to query display objectsdrivers/gpu/drm/drm_ioctl.c+10 -100 replies
3/6drm: Add new LEASE debug leveldrivers/gpu/drm/drm_drv.c include/drm/drmP.h+6 -10 replies
4/6drm: Add drm_object lease infrastructure [v3]drivers/gpu/drm/Makefile drivers/gpu/drm/drm_auth.c drivers/gpu/drm/drm_lease.c +3 more+462 -21 reply
5/6drm: Check mode object lease status in all master ioctl paths [v2]drivers/gpu/drm/drm_auth.c drivers/gpu/drm/drm_connector.c drivers/gpu/drm/drm_encoder.c +4 more+71 -240 replies
6/6drm: Add four ioctls for managing drm mode object leases [v3]drivers/gpu/drm/drm_ioctl.c drivers/gpu/drm/drm_lease.c include/drm/drm_lease.h +2 more+355 -06 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] drm: Add mode object leases [v3]

Here's a third version of my DRM mode object leases series. Since v2:

* Add revocation. This allows leases to be effectively revoked by removing all of the objects they have access to. The lease itself hangs around as it's hanging off a file.

* Allow non-master files to look at all DRM mode objects. This lets the Vulkan code provide information about the display environment before the lease is created.

* Free the leases IDR when the master is destroyed. Just a bug fix.

* _drm_lease_held should look at lessees, not lessor. Just a bug fix.

I've also rebased it to a more recent version of Dave's drm-next branch.

With this and my CRTC-id based vblank series (posted separately), I'm now running "real" applications on a leased output and can fully support the following Vulkan extensions:

EXT_direct_mode_display
EXT_acquire_xlib_display
EXT_display_surface_counter
KEITHP_kms_display

-keith

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel