All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Cc: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
	uma.shankar@intel.com, pranay.samala@intel.com
Subject: Re: [PATCH 1/3] drm/i915/display: Copy color pipeline from plane in the primary joiner pipe
Date: Wed, 1 Apr 2026 14:40:25 +0300	[thread overview]
Message-ID: <ac0EKTbNPeaiHIQA@intel.com> (raw)
In-Reply-To: <20260401083841.4081587-1-chaitanya.kumar.borah@intel.com>

On Wed, Apr 01, 2026 at 02:08:39PM +0530, Chaitanya Kumar Borah wrote:
> When copying plane color state in a joiner configuration, use the plane in
> the primary joiner pipe since it carries the pipeline number selected by
> the user-space.
> 
> This assumes that all pipes in the joiner are symmetric in their plane
> color capabilities.
> 
> Cc: stable@vger.kernel.org # v6.19+
> Fixes: a78f1b6baf4d ("drm/i915/color: Add framework to program CSC")
> Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_plane.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_plane.c b/drivers/gpu/drm/i915/display/intel_plane.c
> index 5390ceb21ca4..82f445c83158 100644
> --- a/drivers/gpu/drm/i915/display/intel_plane.c
> +++ b/drivers/gpu/drm/i915/display/intel_plane.c
> @@ -373,7 +373,7 @@ intel_plane_color_copy_uapi_to_hw_state(struct intel_plane_state *plane_state,
>  	bool changed = false;
>  	int i = 0;
>  
> -	iter_colorop = plane_state->uapi.color_pipeline;
> +	iter_colorop = from_plane_state->uapi.color_pipeline;
>  
>  	while (iter_colorop) {
>  		for_each_new_colorop_in_state(state, colorop, new_colorop_state, i) {

Hmm. This whole colorop thing seems a bit weird. So each plane/crtc/etc
doesn't actually have its full state in its state, but rather it points
to some other colorop state somewhere?

The mess here with the 'intel_atomic_state' here needs to get cleaned up.
At the very least we need to pass the full atomic state from the caller
instead of digging it out via the plane_state->uapi.state footgun.
That thing should never be used, and ideally we'd just nuke it entirely.

-- 
Ville Syrjälä
Intel

  parent reply	other threads:[~2026-04-01 11:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-01  8:38 [PATCH 1/3] drm/i915/display: Copy color pipeline from plane in the primary joiner pipe Chaitanya Kumar Borah
2026-04-01  8:38 ` [PATCH 2/3] drm/i915: Fix color blob reference handling in intel_plane_state Chaitanya Kumar Borah
2026-04-01  8:38 ` [PATCH 3/3] drm/i915/display: Do not program color pipeline for Y plane Chaitanya Kumar Borah
2026-04-01  9:10 ` ✓ CI.KUnit: success for series starting with [1/3] drm/i915/display: Copy color pipeline from plane in the primary joiner pipe Patchwork
2026-04-01  9:44 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-01 11:40 ` Ville Syrjälä [this message]
2026-04-01 14:10   ` [PATCH 1/3] " Borah, Chaitanya Kumar
2026-04-01 14:24     ` Ville Syrjälä
2026-04-01 11:41 ` ✓ i915.CI.BAT: success for series starting with [1/3] " Patchwork
2026-04-01 14:37 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-04-02  3:23 ` ✗ i915.CI.Full: " 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=ac0EKTbNPeaiHIQA@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=chaitanya.kumar.borah@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=pranay.samala@intel.com \
    --cc=uma.shankar@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 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.