All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/8] Convert colorop pipelines to use proper lists
@ 2026-06-09 17:19 John Harrison
  2026-06-09 17:19 ` [RFC PATCH 1/8] drm/colorop: Reduce scope of colorop helpers John Harrison
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: John Harrison @ 2026-06-09 17:19 UTC (permalink / raw)
  To: dri-devel
  Cc: Melissa Wen, Suraj Kandpal, Chaitanya Kumar Borah, Jani Nikula,
	Alex Hung, Harry Wentland, kernel-dev, intel-xe, intel-gfx,
	amd-gfx

As pointed out by Jani, colorop pipelines are using a locally coded
list system based on a 'next' pointer rather than official kernel list
structures:
https://lore.kernel.org/dri-devel/4452e675c4853faf665b520a8932a960946206bb@intel.com/

This patch set fixes that up.

The result is a little odd. There is no pipeline object as such -
pipelines are just a sequence of colorop objects and defined by
whatever arbitrary colorop object happens to be first in the sequence.
Therefore, there is no clear place to put the list head object. It has
to go inside the first colorop in the pipe. Which means there is a
list head inside *every* colorop object, regardless of whether it is
the head of a pipeline or not. Most of them are just empty lists.

Hence this set is being posted as an RFC - is the end result actually
better than the current version? Outside of open coding vs using
kernel helpers when iterating the list, probably the biggest advantage
is being able to assert that any given colorop is the head of a
pipeline rather than somewhere in the middle (or not in a pipeline at
all). It should not be possible to pass a non-head colorop into a
function that works on pipelines, but extra sanity checks are
generally a good thing.

Signed-off-by: John Harrison <John.Harrison@Igalia.com>
CC: Melissa Wen <mwen@igalia.com>
CC: Suraj Kandpal <suraj.kandpal@intel.com>
CC: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
CC: Jani Nikula <jani.nikula@linux.intel.com>
CC: Alex Hung <alex.hung@amd.com>
CC: Harry Wentland <harry.wentland@amd.com>
CC: kernel-dev@igalia.com
CC: intel-xe@lists.freedesktop.org
CC: intel-gfx@lists.freedesktop.org
CC: amd-gfx@lists.freedesktop.org
CC: dri-devel@lists.freedesktop.org

John Harrison (8):
  drm/colorop: Reduce scope of colorop helpers
  drm/colorop: Create pipelines via 'add to pipeline' instead of 'set
    next'
  drm/i915/colorop: Update to new pipeline API
  drm/amd/colorop: Update to new pipeline API
  drm/vkms/colorop: Update to new pipeline API
  drm/colorop: Remove old add-next API as no longer used
  drm/colorop: Convert pipline 'next' pointer to a list
  drm/colorop: Check that requested colorop is the root of a pipeline

 .../amd/display/amdgpu_dm/amdgpu_dm_color.c   | 60 ++++++++++---------
 .../amd/display/amdgpu_dm/amdgpu_dm_colorop.c | 16 ++---
 drivers/gpu/drm/drm_atomic.c                  | 15 ++++-
 drivers/gpu/drm/drm_atomic_uapi.c             | 30 +++++++---
 drivers/gpu/drm/drm_colorop.c                 | 29 +++++----
 .../drm/i915/display/intel_color_pipeline.c   | 14 ++---
 drivers/gpu/drm/i915/display/intel_plane.c    | 14 +++--
 drivers/gpu/drm/vkms/vkms_colorop.c           |  8 ++-
 drivers/gpu/drm/vkms/vkms_composer.c          |  9 +--
 include/drm/drm_colorop.h                     | 40 +++++--------
 10 files changed, 135 insertions(+), 100 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-06-09 17:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-09 17:19 [RFC PATCH 0/8] Convert colorop pipelines to use proper lists John Harrison
2026-06-09 17:19 ` [RFC PATCH 1/8] drm/colorop: Reduce scope of colorop helpers John Harrison
2026-06-09 17:31   ` sashiko-bot
2026-06-09 17:19 ` [RFC PATCH 2/8] drm/colorop: Create pipelines via 'add to pipeline' instead of 'set next' John Harrison
2026-06-09 17:19 ` [RFC PATCH 3/8] drm/i915/colorop: Update to new pipeline API John Harrison
2026-06-09 17:32   ` sashiko-bot
2026-06-09 17:19 ` [RFC PATCH 4/8] drm/amd/colorop: " John Harrison
2026-06-09 17:37   ` sashiko-bot
2026-06-09 17:19 ` [RFC PATCH 5/8] drm/vkms/colorop: " John Harrison
2026-06-09 17:37   ` sashiko-bot
2026-06-09 17:19 ` [RFC PATCH 6/8] drm/colorop: Remove old add-next API as no longer used John Harrison
2026-06-09 17:19 ` [RFC PATCH 7/8] drm/colorop: Convert pipline 'next' pointer to a list John Harrison
2026-06-09 17:40   ` sashiko-bot
2026-06-09 17:19 ` [RFC PATCH 8/8] drm/colorop: Check that requested colorop is the root of a pipeline John Harrison

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.