From: sashiko-bot@kernel.org
To: "Robert Mader" <robert.mader@collabora.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 4/4] drm/vkms: Add support for DRM_COLOROP_1D_CURVE_GAMMA24
Date: Fri, 04 Dec 2026 15:11:07 +0000 [thread overview]
Message-ID: <sashiko-outbox-250065@kernel.org> (raw)
In-Reply-To: <20261204145427.221618-5-robert.mader@collabora.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] drm/vkms: undeclared DRM_COLOROP_1D_CURVE_GAMMA24 constants
break build
- [Low] drm/vkms: unconditional EXPORT_SYMBOL() for KUnit-only Gamma 2.4
LUTs
--
commit b3b9cea1bd79f0143afef4e7f802c85dcba7344f
Author: Robert Mader <robert.mader@collabora.com>
drm/vkms: Add support for DRM_COLOROP_1D_CURVE_GAMMA24
This commit adds lookup tables and colorop handling for the Gamma 2.4
1D curve and its inverse in VKMS, along with a corresponding KUnit test
and script entry.
> diff --git a/drivers/gpu/drm/vkms/vkms_colorop.c b/drivers/gpu/drm/vkms/vkms_colorop.c
> index 625a590c6a2fe..db16d7e2a42fe 100644
> --- a/drivers/gpu/drm/vkms/vkms_colorop.c
> +++ b/drivers/gpu/drm/vkms/vkms_colorop.c
> @@ -12,7 +12,9 @@ static const u64 supported_tfs =
> BIT(DRM_COLOROP_1D_CURVE_SRGB_EOTF) |
> BIT(DRM_COLOROP_1D_CURVE_SRGB_INV_EOTF) |
> BIT(DRM_COLOROP_1D_CURVE_GAMMA22) |
> - BIT(DRM_COLOROP_1D_CURVE_GAMMA22_INV);
> + BIT(DRM_COLOROP_1D_CURVE_GAMMA22_INV) |
> + BIT(DRM_COLOROP_1D_CURVE_GAMMA24) |
> + BIT(DRM_COLOROP_1D_CURVE_GAMMA24_INV);
[Severity: High]
Are DRM_COLOROP_1D_CURVE_GAMMA24 and DRM_COLOROP_1D_CURVE_GAMMA24_INV
defined in enum drm_colorop_curve_1d_type?
Both constants are missing from include/drm/drm_colorop.h, and
colorop_curve_1d_type_names[] in drivers/gpu/drm/drm_colorop.c has no
entries for them. With CONFIG_DRM_VKMS enabled, this breaks compilation
of vkms_colorop.c and apply_colorop() in vkms_composer.c.
It looks like a prerequisite DRM core patch adding these enum values and
their property name strings is missing.
[ ... ]
> diff --git a/drivers/gpu/drm/vkms/vkms_luts.c b/drivers/gpu/drm/vkms/vkms_luts.c
> index 5778226fc290f..90a717ced70cd 100644
> --- a/drivers/gpu/drm/vkms/vkms_luts.c
> +++ b/drivers/gpu/drm/vkms/vkms_luts.c
[ ... ]
> +const struct vkms_color_lut gamma24_eotf = {
> + .x = pow24_x,
> + .y = pow24_y,
> + .lut_length = ARRAY_SIZE(pow24_y)
> +};
> +EXPORT_SYMBOL(gamma24_eotf);
[ ... ]
> +const struct vkms_color_lut gamma24_inv_eotf = {
> + .x = pow24_inv_x,
> + .y = pow24_inv_y,
> + .lut_length = ARRAY_SIZE(pow24_inv_y)
> +};
> +EXPORT_SYMBOL(gamma24_inv_eotf);
[Severity: Low]
Should gamma24_eotf and gamma24_inv_eotf use EXPORT_SYMBOL_IF_KUNIT()
instead of EXPORT_SYMBOL()?
vkms_luts.o and vkms_composer.o are linked into the same vkms module, and
the only external user is vkms_color_test.c, which already imports the
EXPORTED_FOR_KUNIT_TESTING namespace. Unconditional EXPORT_SYMBOL()
exposes these generic unprefixed names in the global symbol table even
when CONFIG_KUNIT is disabled.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204145427.221618-1-robert.mader@collabora.com?part=4
next prev parent reply other threads:[~2026-12-04 15:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 14:53 [PATCH v2 0/4] drm/vkms: Add gamma 2.2 and 2.4 1D curve colorops Robert Mader
2026-12-04 14:53 ` [PATCH v2 1/4] drm/vkms: Fix inverse lut naming scheme in script Robert Mader
2026-12-04 14:53 ` [PATCH v2 2/4] drm/vkms: Make LUT test reusable Robert Mader
2026-12-04 14:53 ` [PATCH v2 3/4] drm/vkms: Add support for DRM_COLOROP_1D_CURVE_GAMMA22 Robert Mader
2026-12-04 15:10 ` sashiko-bot
2026-12-04 14:53 ` [PATCH v2 4/4] drm/vkms: Add support for DRM_COLOROP_1D_CURVE_GAMMA24 Robert Mader
2026-12-04 15:11 ` sashiko-bot [this message]
2026-12-05 9:55 ` kernel test robot
2026-12-05 9:55 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-250065@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=robert.mader@collabora.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.