From: Jani Nikula <jani.nikula@linux.intel.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, louis.chauvet@bootlin.com,
mwen@igalia.com, contact@emersion.fr, alex.hung@amd.com,
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 v3 00/13] drm: Color pipeline teardown and follow-up fixes/improvements
Date: Wed, 21 Jan 2026 15:51:26 +0200 [thread overview]
Message-ID: <513db214e2adcad6a70cea2461b7bfc26c2884db@intel.com> (raw)
In-Reply-To: <20260113102303.724205-1-chaitanya.kumar.borah@intel.com>
On Tue, 13 Jan 2026, Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com> wrote:
> This series contains follow-up fixes and improvements for the DRM color
> pipeline infrastructure that was introduced in v6.19.[1][2]
>
> The central handling of clean up of colorop from the mode_config list
> is missing. While vkms calls drm_colorop_pipeline_destroy() in vkms_destroy(),
> amd driver calls it only during failure of the init path and i915/xe driver
> does not call it at all. This means amd and intel leaks these objects on
> driver removal.
>
> This series adds the teardown of mode_config.colorop_list in drm_mode_config_cleanup().
> Since, i915/xe sub-classes the drm_colorop within intel_colorop it was not enough
> to just use drm_colorop_pipeline_destroy(). Therefore, this series
>
> - Introduces driver-managed destruction for drm_colorop objects and
> updates core helpers to use driver-provided destroy callbacks.
> - Ensures all colorop objects are correctly torn down during
> mode_config cleanup and driver removal.
>
> In addition to that following changes are made in the series
> - Fixes enum name lifetime leaks in color pipeline init in i915, amdgpu_dm, and vkms
> - Corrects the ordering of the 3D LUT block in the i915 plane color pipeline
> - Refactors i915 plane color pipeline initialization to reliably clean
> up partially constructed pipelines on failure.
>
> Thanks for taking a look. Feedback is welcome.
I did not do detailed review, but
Acked-by: Jani Nikula <jani.nikula@intel.com>
for merging via drm-misc.
Please coordinate with drm and drm-misc maintainers on which branch
these should merged through. IIUC there are memory leak fixes for
changes heading to v6.19, which speaks for drm-misc-fixes. But is it too
much at this stage? Up to drm and drm-misc maintainers I think.
BR,
Jani.
>
> [1] https://lore.kernel.org/dri-devel/cbe00ac4-a535-47d3-813a-e2eda7e9b991@amd.com/
> [2] https://lore.kernel.org/intel-gfx/20251203085211.3663374-1-uma.shankar@intel.com/
>
> v2:
> - Re-arrange patches (Alex)
> - Re-factor code to avoid repitition in pipeline creation (Suraj)
>
> v3:
> - Add documentation only to function definition (Jani)
> - s/nvl/xe3plpd (Suraj)
>
> Chaitanya Kumar Borah (13):
> drm/i915/color: Place 3D LUT after CSC in plane color pipeline
> drm/amd/display: Fix color pipeline enum name leak
> drm/vkms: Fix color pipeline enum name leak
> drm/i915/display: Fix color pipeline enum name leak
> drm/colorop: Add destroy helper for colorop objects
> drm: Allow driver-managed destruction of colorop objects
> drm/amd/display: Hook up colorop destroy helper for plane pipelines
> drm/vkms: Hook up colorop destroy helper for plane pipelines
> drm/i915/display: Hook up intel_colorop_destroy
> drm: Clean up colorop objects during mode_config cleanup
> drm/vkms: Remove drm_colorop_pipeline_destroy() from vkms_destroy()
> drm/colorop: Use destroy callback for color pipeline teardown
> drm/i915/color: Add failure handling in plane color pipeline init
>
> .../amd/display/amdgpu_dm/amdgpu_dm_colorop.c | 31 ++-
> .../amd/display/amdgpu_dm/amdgpu_dm_plane.c | 13 +-
> drivers/gpu/drm/drm_colorop.c | 49 +++--
> drivers/gpu/drm/drm_mode_config.c | 6 +
> .../drm/i915/display/intel_color_pipeline.c | 179 +++++++++++++-----
> drivers/gpu/drm/i915/display/intel_colorop.c | 6 +
> drivers/gpu/drm/i915/display/intel_colorop.h | 1 +
> drivers/gpu/drm/vkms/vkms_colorop.c | 31 +--
> drivers/gpu/drm/vkms/vkms_drv.c | 1 -
> include/drm/drm_colorop.h | 32 +++-
> 10 files changed, 259 insertions(+), 90 deletions(-)
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-01-21 13:51 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-13 10:22 [PATCH v3 00/13] drm: Color pipeline teardown and follow-up fixes/improvements Chaitanya Kumar Borah
2026-01-13 10:22 ` [PATCH v3 01/13] drm/i915/color: Place 3D LUT after CSC in plane color pipeline Chaitanya Kumar Borah
2026-01-13 10:22 ` [PATCH v3 02/13] drm/amd/display: Fix color pipeline enum name leak Chaitanya Kumar Borah
2026-01-13 10:22 ` [PATCH v3 03/13] drm/vkms: " Chaitanya Kumar Borah
2026-01-13 10:22 ` [PATCH v3 04/13] drm/i915/display: " Chaitanya Kumar Borah
2026-01-13 10:22 ` [PATCH v3 05/13] drm/colorop: Add destroy helper for colorop objects Chaitanya Kumar Borah
2026-01-13 10:22 ` [PATCH v3 06/13] drm: Allow driver-managed destruction of " Chaitanya Kumar Borah
2026-01-14 5:37 ` Kandpal, Suraj
2026-01-14 7:51 ` Borah, Chaitanya Kumar
2026-01-13 10:22 ` [PATCH v3 07/13] drm/amd/display: Hook up colorop destroy helper for plane pipelines Chaitanya Kumar Borah
2026-01-13 10:22 ` [PATCH v3 08/13] drm/vkms: " Chaitanya Kumar Borah
2026-01-13 10:22 ` [PATCH v3 09/13] drm/i915/display: Hook up intel_colorop_destroy Chaitanya Kumar Borah
2026-01-13 10:23 ` [PATCH v3 10/13] drm: Clean up colorop objects during mode_config cleanup Chaitanya Kumar Borah
2026-01-13 10:23 ` [PATCH v3 11/13] drm/vkms: Remove drm_colorop_pipeline_destroy() from vkms_destroy() Chaitanya Kumar Borah
2026-01-13 10:23 ` [PATCH v3 12/13] drm/colorop: Use destroy callback for color pipeline teardown Chaitanya Kumar Borah
2026-01-13 10:23 ` [PATCH v3 13/13] drm/i915/color: Add failure handling in plane color pipeline init Chaitanya Kumar Borah
2026-01-13 11:18 ` ✗ CI.checkpatch: warning for drm: Color pipeline teardown and follow-up fixes/improvements (rev3) Patchwork
2026-01-13 11:19 ` ✓ CI.KUnit: success " Patchwork
2026-01-13 11:38 ` ✗ CI.checksparse: warning " Patchwork
2026-01-13 12:06 ` ✓ Xe.CI.BAT: success " Patchwork
2026-01-13 19:20 ` ✗ Xe.CI.Full: failure " Patchwork
2026-01-21 13:51 ` Jani Nikula [this message]
2026-01-22 9:57 ` [PATCH v3 00/13] drm: Color pipeline teardown and follow-up fixes/improvements Maarten Lankhorst
2026-01-27 6:00 ` Borah, Chaitanya Kumar
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=513db214e2adcad6a70cea2461b7bfc26c2884db@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=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=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