From: "Borah, Chaitanya Kumar" <chaitanya.kumar.borah@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.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 19:40:44 +0530 [thread overview]
Message-ID: <33f81157-5a18-4faf-8457-edae0275d86a@intel.com> (raw)
In-Reply-To: <ac0EKTbNPeaiHIQA@intel.com>
On 4/1/2026 5:10 PM, Ville Syrjälä wrote:
> 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?
>
Yes, colorops are unique in the DRM model. While they are DRM objects
with their own states, they contain information about a plane/crtc's
state. The plane/crtc property "COLOR PIPELINE" determines which chain
of colorops is currently active.
> 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.
To make the dependency on the intel_atomic_state explicit?
I will make the change.
> That thing should never be used, and ideally we'd just nuke it entirely.
>
You mean the back pointer to the atomic state in the plane state?
next prev parent reply other threads:[~2026-04-01 14:11 UTC|newest]
Thread overview: 9+ 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 ` [PATCH 1/3] " Ville Syrjälä
2026-04-01 14:10 ` Borah, Chaitanya Kumar [this message]
2026-04-01 14:24 ` Ville Syrjälä
2026-04-01 14:37 ` ✗ Xe.CI.FULL: failure for series starting with [1/3] " 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=33f81157-5a18-4faf-8457-edae0275d86a@intel.com \
--to=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 \
--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