Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] drm/vkms: inaccurate COLOR_ENCODING values and attribute name in docs --
commit 5dbc58af236a05830b6c4e654122d665fcbe00b2 Author: Louis Chauvet <[email protected]> drm/vkms: Introduce configfs for plane color encoding This commit adds supported_color_encodings and default_color_encoding configfs attributes to configure the available and default color encodings for VKMS planes, along with ABI and driver documentation. > diff --git a/Documentation/gpu/vkms.rst b/Documentation/gpu/vkms.rst > index 6103054837168..7206cd2b231a0 100644 > --- a/Documentation/gpu/vkms.rst > +++ b/Documentation/gpu/vkms.rst > @@ -87,7 +87,7 @@ Start by creating one or more planes:: > > sudo mkdir /config/vkms/my-vkms/planes/plane0 > > -Planes have 3 configurable attributes: > +Planes have 5 configurable attributes: > > - type: Plane type: 0 overlay, 1 primary, 2 cursor (same values as those > exposed by the "type" property of a plane) > @@ -96,6 +96,12 @@ Planes have 3 configurable attributes: > (same values as those exposed by the "rotation" property of a plane) > - default_rotation: Default rotation presented to the userspace, same values > as > supported_rotations. > +- supported_color_encodings: Available encodings for a plane, as a bitmask: > + 0x01 YCBCR_BT601, 0x02 YCBCR_BT709, 0x04 YCBCR_BT2020 (same values as > those exposed > + by the COLOR_ENCODING property of a plane). If set, supported_color_range > + must be set too. > +- default_color_encoding: Default color encoding presented to the userspace, > same > + values as supported_color_encodings [Severity: Low] Are the bitmask values 0x01, 0x02, and 0x04 the same values as those exposed by the plane's COLOR_ENCODING property? Unlike the rotation property (created with drm_property_create_bitmask()), drm_plane_create_color_properties() creates COLOR_ENCODING with drm_property_create_enum(), exposing enum drm_color_encoding values 0, 1, and 2 rather than bitmasks 0x01, 0x02, and 0x04. Also, the commit message refers to the attribute as supported_color_encoding (singular), whereas CONFIGFS_ATTR(plane_, supported_color_encodings) and the documentation define it as supported_color_encodings (plural). (Note that the forward reference to supported_color_range here is updated to supported_color_ranges in the follow-up commit "drm/vkms: Introduce configfs for plane color range" later in this series.) -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=22
