Skip to content

Get active crtc list

Arun R Murthy dri-devel intel-gfx intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xf86drmMode: add drmModeGetCrtcList() to enumerate available CRTCscore-symbols.txt xf86drmMode.c xf86drmMode.h+163 -00 replies
2/2tests/crtclist: add utility to inspect CRTC usagetests/crtclist.c tests/meson.build+125 -03 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH libdrm 0/2] Get active crtc list

drmModeGetResources() tells the system capability and not runtime availability of the hardware resource. DRM_IOCTL_MODE_GETCRTC only tells userspace which CRTCs are enabled through KMS, not which are active in hardware. A pipe can be actively scanning out without being enabled through the KMS state, so relying on GETCRTC alone would report such a CRTC as free and assignable when it is not.
Add new function drmModeGetCrtcList that enumerates the crtc list.

Arun R Murthy (2):
xf86drmMode: add drmModeGetCrtcList() to enumerate available CRTCs tests/crtclist: add utility to inspect CRTC usage

 core-symbols.txt  |   2 +
 tests/crtclist.c  | 116 +++++++++++++++++++++++++++++++++++++++++++
 tests/meson.build |   9 ++++
 xf86drmMode.c     | 123 ++++++++++++++++++++++++++++++++++++++++++++++
 xf86drmMode.h     |  38 ++++++++++++++
 5 files changed, 288 insertions(+)
 create mode 100644 tests/crtclist.c
Signature · 1 line
2.25.1