From: Alex Hung <alex.hung@amd.com>
To: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>,
dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
intel-xe@lists.freedesktop.org, amd-gfx@lists.freedesktop.org
Cc: harry.wentland@amd.com, jani.nikula@linux.intel.com,
louis.chauvet@bootlin.com, mwen@igalia.com, contact@emersion.fr,
daniels@collabora.com, uma.shankar@intel.com,
suraj.kandpal@intel.com, nfraprado@collabora.com,
ville.syrjala@linux.intel.com, matthew.d.roper@intel.com
Subject: Re: [PATCH 07/13] drm/amd/display: Hook up colorop destroy helper for plane pipelines
Date: Tue, 6 Jan 2026 17:03:42 -0700 [thread overview]
Message-ID: <fbfe2d45-a966-47ce-8584-740fc42fdb7a@amd.com> (raw)
In-Reply-To: <20251219065614.190834-8-chaitanya.kumar.borah@intel.com>
See my nitpick comments for patch 6
Otherwise it looks to me.
Reviewed-by: Alex Hung <alex.hung@amd.com>
On 12/18/25 23:56, Chaitanya Kumar Borah wrote:
> Provide a drm_colorop_funcs instance for amdgpu_dm color pipeline
> objects and hook up the common drm_colorop_destroy() helper as the
> destroy callback.
>
> Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
> ---
> .../amd/display/amdgpu_dm/amdgpu_dm_colorop.c | 25 +++++++++++++------
> 1 file changed, 17 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c
> index dfdb4fb4219f..5130962193d9 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c
> @@ -55,6 +55,10 @@ const u64 amdgpu_dm_supported_blnd_tfs =
>
> #define LUT3D_SIZE 17
>
> +static const struct drm_colorop_funcs dm_colorop_funcs = {
> + .destroy = drm_colorop_destroy,
> +};
> +
> int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_prop_enum_list *list)
> {
> struct drm_colorop *ops[MAX_COLOR_PIPELINE_OPS];
> @@ -72,7 +76,7 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr
> goto cleanup;
> }
>
> - ret = drm_plane_colorop_curve_1d_init(dev, ops[i], plane, NULL,
> + ret = drm_plane_colorop_curve_1d_init(dev, ops[i], plane, &dm_colorop_funcs,
> amdgpu_dm_supported_degam_tfs,
> DRM_COLOROP_FLAG_ALLOW_BYPASS);
> if (ret)
> @@ -89,7 +93,8 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr
> goto cleanup;
> }
>
> - ret = drm_plane_colorop_mult_init(dev, ops[i], plane, NULL, DRM_COLOROP_FLAG_ALLOW_BYPASS);
> + ret = drm_plane_colorop_mult_init(dev, ops[i], plane, &dm_colorop_funcs,
> + DRM_COLOROP_FLAG_ALLOW_BYPASS);
> if (ret)
> goto cleanup;
>
> @@ -104,7 +109,8 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr
> goto cleanup;
> }
>
> - ret = drm_plane_colorop_ctm_3x4_init(dev, ops[i], plane, NULL,
> + ret = drm_plane_colorop_ctm_3x4_init(dev, ops[i], plane,
> + &dm_colorop_funcs,
> DRM_COLOROP_FLAG_ALLOW_BYPASS);
> if (ret)
> goto cleanup;
> @@ -121,7 +127,7 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr
> goto cleanup;
> }
>
> - ret = drm_plane_colorop_curve_1d_init(dev, ops[i], plane, NULL,
> + ret = drm_plane_colorop_curve_1d_init(dev, ops[i], plane, &dm_colorop_funcs,
> amdgpu_dm_supported_shaper_tfs,
> DRM_COLOROP_FLAG_ALLOW_BYPASS);
> if (ret)
> @@ -138,7 +144,8 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr
> goto cleanup;
> }
>
> - ret = drm_plane_colorop_curve_1d_lut_init(dev, ops[i], plane, NULL,
> + ret = drm_plane_colorop_curve_1d_lut_init(dev, ops[i], plane,
> + &dm_colorop_funcs,
> MAX_COLOR_LUT_ENTRIES,
> DRM_COLOROP_LUT1D_INTERPOLATION_LINEAR,
> DRM_COLOROP_FLAG_ALLOW_BYPASS);
> @@ -156,7 +163,8 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr
> goto cleanup;
> }
>
> - ret = drm_plane_colorop_3dlut_init(dev, ops[i], plane, NULL, LUT3D_SIZE,
> + ret = drm_plane_colorop_3dlut_init(dev, ops[i], plane,
> + &dm_colorop_funcs, LUT3D_SIZE,
> DRM_COLOROP_LUT3D_INTERPOLATION_TETRAHEDRAL,
> DRM_COLOROP_FLAG_ALLOW_BYPASS);
> if (ret)
> @@ -174,7 +182,7 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr
> goto cleanup;
> }
>
> - ret = drm_plane_colorop_curve_1d_init(dev, ops[i], plane, NULL,
> + ret = drm_plane_colorop_curve_1d_init(dev, ops[i], plane, &dm_colorop_funcs,
> amdgpu_dm_supported_blnd_tfs,
> DRM_COLOROP_FLAG_ALLOW_BYPASS);
> if (ret)
> @@ -191,7 +199,8 @@ int amdgpu_dm_initialize_default_pipeline(struct drm_plane *plane, struct drm_pr
> goto cleanup;
> }
>
> - ret = drm_plane_colorop_curve_1d_lut_init(dev, ops[i], plane, NULL, MAX_COLOR_LUT_ENTRIES,
> + ret = drm_plane_colorop_curve_1d_lut_init(dev, ops[i], plane, &dm_colorop_funcs,
> + MAX_COLOR_LUT_ENTRIES,
> DRM_COLOROP_LUT1D_INTERPOLATION_LINEAR,
> DRM_COLOROP_FLAG_ALLOW_BYPASS);
> if (ret)
next prev parent reply other threads:[~2026-01-07 14:19 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 6:56 [PATCH 00/13] drm: Color pipeline teardown and follow-up fixes/improvements Chaitanya Kumar Borah
2025-12-19 6:56 ` [PATCH 01/13] drm/i915/color: Place 3D LUT after CSC in plane color pipeline Chaitanya Kumar Borah
2026-01-05 8:33 ` Kandpal, Suraj
2026-01-06 9:48 ` Shankar, Uma
2025-12-19 6:56 ` [PATCH 02/13] drm/amd/display: Fix color pipeline enum name leak Chaitanya Kumar Borah
2026-01-06 10:55 ` Shankar, Uma
2026-01-06 23:50 ` Alex Hung
2025-12-19 6:56 ` [PATCH 03/13] drm/vkms: " Chaitanya Kumar Borah
2026-01-06 10:57 ` Shankar, Uma
2026-01-06 23:50 ` Alex Hung
2025-12-19 6:56 ` [PATCH 04/13] drm/i915/display: " Chaitanya Kumar Borah
2026-01-05 9:04 ` Kandpal, Suraj
2026-01-06 10:59 ` Shankar, Uma
2025-12-19 6:56 ` [PATCH 05/13] drm: Allow driver-managed destruction of colorop objects Chaitanya Kumar Borah
2026-01-05 9:14 ` Kandpal, Suraj
2026-01-06 11:05 ` Shankar, Uma
2026-01-07 0:02 ` Alex Hung
2026-01-08 14:11 ` Borah, Chaitanya Kumar
2026-01-08 17:15 ` Alex Hung
2025-12-19 6:56 ` [PATCH 06/13] drm/colorop: Add destroy helper for " Chaitanya Kumar Borah
2026-01-05 9:16 ` Kandpal, Suraj
2026-01-06 11:07 ` Shankar, Uma
2026-01-07 0:02 ` Alex Hung
2025-12-19 6:56 ` [PATCH 07/13] drm/amd/display: Hook up colorop destroy helper for plane pipelines Chaitanya Kumar Borah
2026-01-06 11:10 ` Shankar, Uma
2026-01-07 0:03 ` Alex Hung [this message]
2025-12-19 6:56 ` [PATCH 08/13] drm/vkms: " Chaitanya Kumar Borah
2026-01-06 11:11 ` Shankar, Uma
2026-01-07 0:04 ` Alex Hung
2025-12-19 6:56 ` [PATCH 09/13] drm/i915/display: Hook up intel_colorop_destroy Chaitanya Kumar Borah
2026-01-05 9:18 ` Kandpal, Suraj
2026-01-06 11:16 ` Shankar, Uma
2025-12-19 6:56 ` [PATCH 10/13] drm: Clean up colorop objects during mode_config cleanup Chaitanya Kumar Borah
2026-01-05 9:20 ` Kandpal, Suraj
2026-01-06 11:20 ` Shankar, Uma
2026-01-07 0:04 ` Alex Hung
2025-12-19 6:56 ` [PATCH 11/13] drm/vkms: Remove drm_colorop_pipeline_destroy() from vkms_destroy() Chaitanya Kumar Borah
2026-01-06 11:21 ` Shankar, Uma
2025-12-19 6:56 ` [PATCH 12/13] drm/colorop: Use destroy callback for color pipeline teardown Chaitanya Kumar Borah
2026-01-05 9:27 ` Kandpal, Suraj
2026-01-06 11:23 ` Shankar, Uma
2026-01-07 0:05 ` Alex Hung
2025-12-19 6:56 ` [PATCH 13/13] drm/i915/color: Add failure handling in plane color pipeline init Chaitanya Kumar Borah
2026-01-06 3:55 ` Kandpal, Suraj
2026-01-06 11:57 ` Shankar, Uma
2026-01-09 8:49 ` Borah, Chaitanya Kumar
2025-12-19 7:19 ` ✗ CI.checkpatch: warning for drm: Color pipeline teardown and follow-up fixes/improvements Patchwork
2025-12-19 7:20 ` ✓ CI.KUnit: success " Patchwork
2025-12-19 7:35 ` ✗ CI.checksparse: warning " Patchwork
2025-12-19 8:19 ` ✓ Xe.CI.BAT: success " Patchwork
2025-12-20 9:29 ` ✗ Xe.CI.Full: failure " Patchwork
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=fbfe2d45-a966-47ce-8584-740fc42fdb7a@amd.com \
--to=alex.hung@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=chaitanya.kumar.borah@intel.com \
--cc=contact@emersion.fr \
--cc=daniels@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=harry.wentland@amd.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=louis.chauvet@bootlin.com \
--cc=matthew.d.roper@intel.com \
--cc=mwen@igalia.com \
--cc=nfraprado@collabora.com \
--cc=suraj.kandpal@intel.com \
--cc=uma.shankar@intel.com \
--cc=ville.syrjala@linux.intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox