From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D608CA1005 for ; Tue, 2 Sep 2025 12:29:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3dE/pvaLtHIyNBl6JiXWJPWqbRhuXMT7YvqQOqg4kaI=; b=pCnnM3+LxWfEsSyyo3rGGmVGg3 i7ynMnxhkVBloInzrFsd7gaGK5JPZGf+DmWDYpAIPMsJr37ToKXWCe4onRvQLeHfnM/uB8nUtUEaP TcZpT2lWlkJlQiRctSTGnfqKZq4F77Q+YPwwdPjYOkU9MntRLdnpkmZfVDk3I0CxXHSs58jfRgrEq q4F11OmSl5lwqGX/9VrptpQ+4eAL5TinmVllfeKUyfuzEJRFOgcSsOwLZ5tqd9AGEv65zeRiIqMEa jmmPGyUeP1obAgtJa2wxOX9BqNFuAVeogm6Xhl1ttYC0rSvPypc2T6DT0a0Yj1dxLY/D+rtaG2eIc 05NHwJIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1utQ8x-0000000HGvj-0UAF; Tue, 02 Sep 2025 12:29:47 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1utNR0-0000000GQDX-1qaU for linux-arm-kernel@lists.infradead.org; Tue, 02 Sep 2025 09:36:15 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 2293D40515; Tue, 2 Sep 2025 09:36:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8C2AC4CEED; Tue, 2 Sep 2025 09:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756805774; bh=fYZnq5UDrHuM5t0Pta5bSVbcw6d9tlXpfEh/84xjz0w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=AqKMvDBfa6efHN6CYxQCRZk6KNrxLp/pmSxnX511Hsn40u83q2v72Z0TY9JDdR/Wi I0Yol2k9Pz0N4w9xqL7Kqiwu0ffcwdKyKJAgDZRkJ4HrFL/i/shztZLm69EtVR3nXP PMbcJWo/zGUnVBSHWazT/fVyKKOR2//2kP+SRwkvnLes1qAWoZCqoXW3wBSDgsJ3qk 5qZm6YXaQkkvtq28qyn/MbVu5Ra6SJe/YEzejxN+bv1OZUxKMW9jclU1lnSGj32VBu jXb+QT9vdd4ngBkY5tcQ4VDCH2Lb3ac0kCJA5r3bTzNDdinxFayka/LeoRntnB/5O7 aH41c0Da9xhRg== From: Maxime Ripard Date: Tue, 02 Sep 2025 11:35:17 +0200 Subject: [PATCH v2 18/37] drm/imx-ipuv3: Switch to drm_atomic_get_new_crtc_state() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250902-drm-no-more-existing-state-v2-18-de98fc5f6d66@kernel.org> References: <20250902-drm-no-more-existing-state-v2-0-de98fc5f6d66@kernel.org> In-Reply-To: <20250902-drm-no-more-existing-state-v2-0-de98fc5f6d66@kernel.org> To: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter Cc: dri-devel@lists.freedesktop.org, Maxime Ripard , Philipp Zabel , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1544; i=mripard@kernel.org; h=from:subject:message-id; bh=fYZnq5UDrHuM5t0Pta5bSVbcw6d9tlXpfEh/84xjz0w=; b=owGbwMvMwCmsHn9OcpHtvjLG02pJDBnbdgXLyEnY5zuLCq/eUrrjvfb0IGt+TrGp1q6iUvJHT k28uWZnx1QWBmFOBlkxRZYnMmGnl7cvrnKwX/kDZg4rE8gQBi5OAZiIlCBjncLu2eKXjJxm7j1x SuvydIE1FS+ST27rWRmowJXIor5e+Y3B4tVBx75WGG3f32z6li/pPGPDQ+HpV7/cYTZUMLPg87/ E/+6Jr9QjpdKW6kMvGR8HrWXyKijfeHTvbn8dScklu5zKeTcCAA== X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250902_023614_516659_3EC9097C X-CRM114-Status: GOOD ( 12.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The imx-ipuv3 atomic_check implementation uses the deprecated drm_atomic_get_existing_crtc_state() helper. This hook is called as part of the global atomic_check, thus before the states are swapped. The existing state thus points to the new state, and we can use drm_atomic_get_new_crtc_state() instead. Signed-off-by: Maxime Ripard --- To: Philipp Zabel To: Shawn Guo To: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: dri-devel@lists.freedesktop.org Cc: imx@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org --- drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c b/drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c index 704c549750f950c3f0ce5d6c6f637d9d7b53fb69..df19560e41b4f5b0dce97ae03947abeaf99e0883 100644 --- a/drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c +++ b/drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c @@ -384,12 +384,11 @@ static int ipu_plane_atomic_check(struct drm_plane *plane, if (WARN_ON(!new_state->crtc)) return -EINVAL; crtc_state = - drm_atomic_get_existing_crtc_state(state, - new_state->crtc); + drm_atomic_get_new_crtc_state(state, new_state->crtc); if (WARN_ON(!crtc_state)) return -EINVAL; ret = drm_atomic_helper_check_plane_state(new_state, crtc_state, DRM_PLANE_NO_SCALING, -- 2.50.1