Message ID | 20240612141903.17219-2-ville.syrjala@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] drm/doc: Document drm_get_encoder ioctl more thoroughly | expand |
Sorry for the huge delay. Generally this looks good but maybe we could explain a bit more what "bottom up" means exactly since it may not be super obvious. Maybe something among these lines? Bottom up means that the first CRTCs in the array should be used first. For instance, if the driver exposes 4 CRTCs and user-space needs 2, it should prioritize CRTCs with indices 0 and 1.
On Tuesday, August 20th, 2024 at 22:27, Simon Ser <contact@emersion.fr> wrote: > Sorry for the huge delay. Generally this looks good but maybe we > could explain a bit more what "bottom up" means exactly since it > may not be super obvious. > > Maybe something among these lines? > > Bottom up means that the first CRTCs in the array should be used > first. For instance, if the driver exposes 4 CRTCs and user-space > needs 2, it should prioritize CRTCs with indices 0 and 1. Gentle ping - what do you think, Ville?
diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h index fe5e210396b2..aa90f11950d6 100644 --- a/include/uapi/drm/drm_mode.h +++ b/include/uapi/drm/drm_mode.h @@ -386,6 +386,9 @@ struct drm_mode_get_encoder { /** * @possible_crtcs: Bitmask of CRTCs compatible with the encoder. + * If multiple CRTCs are possible userspace should generally try + * to utilize CRTCs bottom up as that may result in lower power + * consumption on some systems. * CRTCs are created and they receive an index, which corresponds * to their position in the bitmask. Bit N corresponds to * :ref:`CRTC index<crtc_index>` N.