From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.97.179.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380630; b=gjVkrXPyBFLefJGDnZbCK/1x2tkWFTNBxzjvtCebhg/kIwbFjG+VsrfSczuxXYLbuO0F Dx+GxWar+r96qzPmhwXrIJZqM0gtnbBvfupwXv6tY3L0drhr4x5VV5Vl/qbUUWF0N/3pr LJQgbAcPgm0DGdwkEzNzQYVuRzYSnJugPArTvq4X6XthblooBUAdNr/ySVnNRMCytHZUt C1hASaIUruQ8lvQFyDvfG1ZD3+VA52wR1GGLM7ZAlCm+Wulq50fw7bRh8w7yyCCb3Nm9D v6XqgFgjBYZXtfLKN46cLh+YU9NyHxGFZV3dqJjJR+juhmlUDHXSNRwZYc0XRBSjdeg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380630; h=DMARC-Filter:DKIM-Signature:Received:Received:Received:MIME-Version: Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID:X-Sender: Content-Type:Content-Transfer-Encoding:X-Spam-Report:X-Spam-Score: X-Spam-Bar:X-Rspamd-Score:X-Rspamd-Action:X-Rspamd-Bar; bh=H4YV6FlcSUhH2g+nPGcWbwHbVItGo6Z4WAUibrC2UQ8=; b=o47dzl8hyjsnkN5pFzSMi2ZO4VhH15uOc5N7hISn71JOAhCbA4MggoP3gbFdE5RDuSok Pjt1V/5DUc3rafVxpNq0Ql0klHWt8oR0pfxVQqCRa2TGLczlZgIUy0KBV7ZO1J+I0ufmO rOY4triwkZZd1nT4yyp4IGSsGR4O95Mc7Ew+QYSzQpylpz3WM2kvu8sxQgpJJWXs/KE/T TYLopZ07CowBb8HFJkzZdV+p0bK0YvNjmourtyw9G0ACWIUPPmdLN7yoiEbDgxheYDNRU Ij2upBWTreZnP1/qIRB8dGtxENTlyTkZ0JwmcWui4vBNfJrIt6yFo9wgHWpfTwe7zcw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass header.d=igalia.com header.i=@igalia.com header.a=rsa-sha256 header.s=20170329 header.b=apo1+Jaz; arc=none smtp.remote-ip=213.97.179.56 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86396606A683 for ; Fri, 4 Dec 2026 10:37:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 86396606A683 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.a=rsa-sha256 header.s=20170329 header.b=apo1+Jaz DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:Message-ID:Subject:Cc:To :From:Date:MIME-Version:From:Reply-To; bh=H4YV6FlcSUhH2g+nPGcWbwHbVItGo6Z4WAUibrC2UQ8=; t=1796380628; x=2111740628; b=apo1+JazA2XE1IGmIQmoi4JhpSS0aFkRpvaCdTN85v7zrNj72DcSHCzvtCfiGdqlyNQM/InupKy bwx+Z5TA4g18d8Fi4en2Qfi+XDDGdpmBt3LhjrEhPIWFYC/DgVeZ436LPKdUzjs+KM0fruger6E8p Tbkbl6AXKtcUb+vX9dfZZaLXvrsT5wPW2hvhfwaDW9hhgeEuiuDqinmxuok4BXS9t465RFIELEXho F0boJI5VYbENiSGzty5Aum9tI3gNTBpkAiEM0B+0+Bw6EzkEygpZWxInhnQJKofvCvNXMN0cfoLQ0 wkkIvI2MuawL2JLKmqthrtcrATEjxA52KuEg==; Received: from maestria.local.igalia.com ([192.168.10.14] helo=mail.igalia.com) by fanzine2.igalia.com with esmtps (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) (envelope-from ) id 1xZQep-000000021Eb-0VGU; Fri, 04 Dec 2026 11:36:51 +0100 Received: from webmail.service.igalia.com ([192.168.21.45]) by mail.igalia.com with esmtp (Exim) id 1xZQeo-00000008Ox3-0eaB; Fri, 04 Dec 2026 11:36:50 +0100 Received: from [127.0.0.1] (helo=webmail.igalia.com) by webmail.service.igalia.com with esmtp (Exim 4.98.2) (envelope-from ) id 1xZQen-000000016hx-2f5h; Fri, 04 Dec 2026 11:36:49 +0100 X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Date: Fri, 04 Dec 2026 09:36:49 -0100 From: Melissa Wen To: airlied@gmail.com, alexander.deucher@amd.com, alex.hung@amd.com, aurabindo.pillai@amd.com, christian.koenig@amd.com, contact@emersion.fr, daniels@collabora.com, harry.wentland@amd.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, mwen@igalia.com, sebastian.wick@redhat.com, simona@ffwll.ch, siqueira@igalia.com, sunpeng.li@amd.com, tzimmermann@suse.de Cc: Uma Shankar , Chaitanya Kumar Borah , Xaver Hugl , Pekka Paalanen , Matthew Schwartz , amd-gfx@lists.freedesktop.org, kernel-dev@igalia.com, Rob Clark , Dmitry Baryshkov , Sean Paul , Marijn Suijten , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, louis.chauvet@bootlin.com, John Harrison Subject: Re: [PATCH v5 00/15] drm/atomic: only add states of active or transient active colorops In-Reply-To: <20261111160814.21326-1-mwen@igalia.com> References: <20261111160814.21326-1-mwen@igalia.com> Message-ID: X-Sender: mwen@igalia.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Report: NO, Score=-4.9, Tests=ALL_TRUSTED=-3,BAYES_00=-1.9,KAM_DMARC_STATUS=0.007 X-Spam-Score: -48 X-Spam-Bar: ---- X-Rspamd-Score: -3.0 X-Rspamd-Action: no action X-Rspamd-Bar: --- Harry, Chaitanya, or anyone else, Any chance you guys can take a look at this series? There are some patches still missing acks. Thanks in advance, Melissa On 11-11-2026 15:05, Melissa Wen wrote: > This series is a follow-up of what was discussed in [1] and on #wayland > IRC channel regarding policy and userspace expectations on changes in > colorop properties and the current status of the color pipeline in which > the colorop is part of. In short, we agreed that userspace can change > properties of colorops that are currently part of an active color > pipeline or when the pipeline is switching status in the same commit. > However, userspace cannot change colorop properties of inactive color > pipeline in the expactation that it will be activated at some point in > the future. > > Userspace also expects persistence of color pipeline already set, even > if it becomes inactive for a while, when activated, colorop settings > previouly set should be preserved. > > This series uncovered some bugs on IGT tests that were already fixed [2] > and applied. The bad merge conflict resolution mentioned in the previous > version [v3] is already resolved. On the other hand, when rebasing this > series on drm-misc, other issues on AMD KUnit tests appeared due to the > introduction of the new FIXED_MATRIX colorop type. As a result, the > first two new patches address them. > > I also tried to address some Sashiko's complaints on pre-existent issues > that affects the stability of this series, but not all since I want to > keep a healthy scope for reviews. Now some AMD fixes in this series are > attached to the DRM changes, so better apply the whole serie in a single > branch and hope that this doesn't get deleted in the event of a merge > conflict. > > [v1] https://lore.kernel.org/dri-devel/20260526142940.504911-1-mwen@igalia.com/ > Changes: > - define a macro to walk in the color pipeline (Alex H.) > - fix checkpatch warning (Alex H.) > > [v2] https://lore.kernel.org/dri-devel/20260604180457.1110110-1-mwen@igalia.com/ > Changes: > - [Drop] drm/atomic: duplicate state of all colorops > If inactive colorops state are duplicated on resume, the commit will be > rejected. > - [New] Four new patches to make AMD driver match the policy of colorop > updates only for colorops in active color pipelines plus individual > colorop updates. It also tries to untangle COLOR_PIPELINE = Bypass from > colorop BYPASS prop = true. I think patches 3-5 can be cherry-picked and > applied if it looks correct for AMD, I just included them here for > context (for example, Sashiko reported an issue in the previous version > of this series). > > [v3] https://lore.kernel.org/dri-devel/20260609121230.1358786-1-mwen@igalia.com/ > Changes: > - make drm_atomic_add_affected_colorops static and move to > drm_atomic_helper.c (John H.) > - skip check when just duplicating state for suspend/resume persistence. > - [re-add] drm/atomic: duplicate state of all colorops to preserve all > colorop status in a suspend/resume > - rewite commit message and better explain what's considered an active > colorop (John H.) > - [new] drm/atomic: check if an active colorop has a blob if its type > requires one > - drop the ternary and add just a warn_on since both current callers > iterate planes already in the atomic state in AMD's active pipeline > check (John H.) > - explain the reason to use commited colorop in AMD's active pipeline > check (John H.) > - [new] drm/amd/display: don't ignore failure on blend colorop setup > - [new] drm/amd/display: distinguish colorop setup error from no colorop support > > [v4] https://lore.kernel.org/dri-devel/20260811171011.184964-1-mwen@igalia.com/ > Changes: > - Fixes for Kunit tests related to FIXED_MATRIX type > - [new] drm/amd/display: Update colorop pipeline tests for new fixed matrix op > - [new] drm/amd/display: add missing FIXED_MATRIX colorop to AMD KUnit tests > - Fixes for KUnit tests with the new policy in place: > - [new] drm/amd/display: add plane to commit on KUnit cursor mode tests > - post-pone making drm_atomic_add_affected_colorops static to a point in this > series in which this is not needed by AMD anymore (Harry): > - In drm/amd/display: allow individual colorop change, drop the > drm_atomic_add_affected_colorops() call from dm_update_plane_state(), > since the colorop helpers now fall back to the committed state > - [new] drm/atomic: make drm_atomic_add_affected_colorops() static > - check colorop type when allowing individual changes (Harry) > - update __set_dm_plane_colorop_fixed_matrix to get the commited state if no > new state as for other colorop individual changes (Harry) > - update KUnit tests accordingly (Harry) > - [moved] drm/amd/display: only check colorops of an active color pipeline > > [1] https://lore.kernel.org/dri-devel/20260519211111.228303-1-mwen@igalia.com/ > [2] https://lore.kernel.org/igt-dev/20261021151929.62529-1-mwen@igalia.com/ > > Best Regards, > > Melissa > > John Harrison (1): > drm/amd/display: Update colorop pipeline tests for new fixed matrix op > > Melissa Wen (14): > drm/amd/display: add missing FIXED_MATRIX colorop to AMD KUnit tests > drm/atomic: only add states of active or transient active colorops > drm/amd/display: add plane to commit on KUnit cursor mode tests > drm/amd/display: only check colorops of an active color pipeline > drm/atomic: reject colorop update from inactive color pipeline > drm/atomic: duplicate state of all colorops > drm/atomic: check if an active colorop has a blob if its type requires > one > drm/amd/display: truly bypass plane colorop 3x4 matrix and hdr mult > drm/amd/display: make shaper bypass mode cleaner > drm/amd/display: make blnd bypass mode clearer > drm/amd/display: don't ignore failure on blend colorop setup > drm/amd/display: allow individual colorop changes > drm/atomic: make drm_atomic_add_affected_colorops() static > drm/amd/display: distinguish colorop setup error from no colorop > support > > .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 13 - > .../amd/display/amdgpu_dm/amdgpu_dm_color.c | 236 ++++++++---------- > .../amd/display/amdgpu_dm/amdgpu_dm_cursor.c | 26 +- > .../amdgpu_dm/tests/amdgpu_dm_color_test.c | 118 +++++---- > .../amdgpu_dm/tests/amdgpu_dm_colorop_test.c | 4 + > .../amdgpu_dm/tests/amdgpu_dm_cursor_test.c | 49 ++++ > drivers/gpu/drm/drm_atomic.c | 199 +++++++++++---- > drivers/gpu/drm/drm_atomic_helper.c | 59 ++++- > drivers/gpu/drm/drm_colorop.c | 5 +- > include/drm/drm_atomic.h | 4 - > include/drm/drm_colorop.h | 9 +- > 11 files changed, 456 insertions(+), 266 deletions(-)