From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14B1B606A32C for ; Fri, 4 Dec 2026 15:11:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aqBYYo9n Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7078C11309B; Fri, 4 Dec 2026 15:11:14 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1CCFF113099 for ; Fri, 4 Dec 2026 15:11:08 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id D9F5D405DA; Fri, 4 Dec 2026 15:11:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE37B1F00935; Fri, 4 Dec 2026 15:11:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796397067; bh=x8qU33v+F46zi8k3ZTJAMxu/oaATnkiI1UjeLpi3YNU=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=aqBYYo9nq8sqRZHqMhjyIqxJ0GENT+CAYXXFPt5XZ3bgLgpwkzEXSmPxmsGwoYa3s KYoJdkC0gnduCYyH9dxCDBChYztl1AzAQIlJ9wQnJSw/QD3V/giKJxuDt4CjcD8fxB nvC/edW/pwmRMNys7C6acwl3eEyn32rsawt+feve22SsBIcvFDE9+lIoXQwbuLokKm FtDhPEw3kQvHz+BbWuv48ZlZ9rYUsQwUknuN3Tiz7MJBV7TlYybWovzhhqHh/GbVWw 1XXQeg8PvRMqyyzjXxwCZMDJ9b2ytsnn6vp6A8nRraBLQ4nVi3yIDLGBLisLVecX4r JnVMbZwktayjw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 4/4] drm/vkms: Add support for DRM_COLOROP_1D_CURVE_GAMMA24 To: "Robert Mader" , dri-devel@lists.freedesktop.org In-Reply-To: <20261204145427.221618-5-robert.mader@collabora.com> References: <20261204145427.221618-1-robert.mader@collabora.com> <20261204145427.221618-5-robert.mader@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 15:11:07 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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 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/v= kms_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 =3D > 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 =3D { > + .x =3D pow24_x, > + .y =3D pow24_y, > + .lut_length =3D ARRAY_SIZE(pow24_y) > +}; > +EXPORT_SYMBOL(gamma24_eotf); [ ... ] > +const struct vkms_color_lut gamma24_inv_eotf =3D { > + .x =3D pow24_inv_x, > + .y =3D pow24_inv_y, > + .lut_length =3D 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204145427.2216= 18-1-robert.mader@collabora.com?part=3D4