Skip to content

drm: Add CRTC-id based ioctls for vblank query/event

Keith Packard dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm: Widen vblank count to 64 bits. Change vblank time precision to nsdrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c drivers/gpu/drm/drm_vblank.c +21 more+130 -9810 replies
1/3drm: Widen vblank UAPI to 64 bits. Change vblank time to ktime_t [v2]drivers/gpu/drm/drm_vblank.c include/drm/drmP.h include/drm/drm_drv.h +1 more+120 -863 replies
2/3drm: Reorganize drm_pending_event to support future event typesdrivers/gpu/drm/drm_atomic.c drivers/gpu/drm/drm_plane.c drivers/gpu/drm/drm_vblank.c +3 more+32 -203 replies
2/3drm: Reorganize drm_pending_event to support future event types [v2]drivers/gpu/drm/drm_atomic.c drivers/gpu/drm/drm_plane.c drivers/gpu/drm/drm_vblank.c +3 more+34 -211 reply
3/3drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctlsdrivers/gpu/drm/drm_internal.h drivers/gpu/drm/drm_ioctl.c drivers/gpu/drm/drm_vblank.c +2 more+189 -011 replies
3/3drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls [v2]drivers/gpu/drm/drm_internal.h drivers/gpu/drm/drm_ioctl.c drivers/gpu/drm/drm_vblank.c +2 more+214 -09 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchDaniel Vetter
1/3R-b
1/3R-b
2/3R-b
2/3R-b
3/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] drm: Add CRTC-id based ioctls for vblank query/event

This patch series provides a new interface which fixes three issues with the current VBLANK_WAIT ioctl:

1) CRTC indices to select a target.
2) 32-bits of count resolution.
3) Microsecond time resolution.

The first makes it quite difficult to use this interface from a leased DRM device; without the ability to see all of the crtcs for a DRM device, it's not possible to compute the right index into the array of them for this interface.

2) and 3) prevent the API from matching the requirements for Vulkan, which asks for 64-bits of counter and nano-second time resolution.

I've split this series into three pieces, the first two adjust the internal APIs without exposing new functionality, the third adds the new IOCTLs.

[PATCH 1/3] drm: Widen vblank count to 64 bits. Change vblank time

This changes all DRM-level internal interfaces to 64-bit vblank counters and nano-second time resolution. Changing the driver interface to 64-bits seems like the right plan, but as no drivers currently support anything wider than 32-bits, it may be that we don't want to bother at this point.

[PATCH 2/3] drm: Reorganize drm_pending_event to support future event

This sticks the vblank event in a union inside of the pending event structure so that I can add another parallel event in the next patch. Importantly, this required that I move the assignment of the event crtc_id field from event deliver to event allocation. That "shouldn't" matter, but it should also be looked at with some care.

[PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls

With the internal APIs ready, this patch is pretty simple.

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