From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A94213E5A17; Fri, 4 Sep 2026 08:32:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788510762; cv=none; b=YZIhcJ5n/IsnCF9sLOmJJx6JZPGY+MOILkBfAN3fghYMGcaRZ32jL1j+jwsHpCmAp9XKEQxfmT4JCtK7EOmhVLNvEgdfK/jmMitRdt6OApEZWmlHFLQiJ9EDZUqV83G1PCVSEtdAS8UvJckxYtCXapzEZC/OemR1zANmSZzq77E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788510762; c=relaxed/simple; bh=sp89dfhZR6pp3XVrQEgyzZlnTEwW+gacT+v+gehbSbY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RAeCwgZSJ7GHstgKHcMVMtDVhYeDojCsUIb18API3fbNbWRUjCw3nuEoeIAi4S4ebGmm3H+LUKZqku82lml5fFkC7Mx+rBJ5x0YfOG+M2Pj0vTHWGBVYmEB06+hpsNEAGANR5jkY5O1I0xwlbWVm7+7YedQATR7HI/od7PTAOEA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JFYXZymr; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JFYXZymr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20F681F00A3D; Fri, 4 Sep 2026 08:32:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788510758; bh=MzSSeYpgZ1cl36kwxauq490fq+r6qAsAHJo6BhOSQ1w=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=JFYXZymr1wFshuxLBjvl/iyhixHCkCSdNKcEN4AdpqHPjeNe7OCTSE9W9hyu9xtuR /THPX4vBmSvJmF3/ZEUA0Da+o6/SwDv3VnW8nLLZ1vZUXCYX7XSUIRIpRRy20QtS1p LF6EVoW/ugz7TlGexEb7v2M4BXLeUpHamQwlImMuJSyCceHzASAiMD7tjzJyLw4U0g oQbNYEnp/4CefBvHa+Q+hpYns3elxf245Bc+SIoPF6gG8PcFbHVPHbmm+dQLvN3+G8 g/YEenlDO0dhAt+Ykn56tIdGC+h71gO4vAjFXu8vxm5d3fHugsZfydYpcumgCDAsZ1 Qwq7tPZZNOoKQ== Date: Fri, 4 Sep 2026 10:32:35 +0200 From: Maxime Ripard To: Liu Ying Cc: Philipp Zabel , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Dmitry Baryshkov , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marek Vasut , Frank Li Subject: Re: [PATCH v6 07/13] drm/imx: dc: Use TCON operation mode Message-ID: References: <20260904-imx8-dc-prefetch-v6-0-26643e3f6cb7@nxp.com> <20260904-imx8-dc-prefetch-v6-7-26643e3f6cb7@nxp.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha384; protocol="application/pgp-signature"; boundary="xjuaddo6esktd3cx" Content-Disposition: inline In-Reply-To: <20260904-imx8-dc-prefetch-v6-7-26643e3f6cb7@nxp.com> --xjuaddo6esktd3cx Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Subject: Re: [PATCH v6 07/13] drm/imx: dc: Use TCON operation mode MIME-Version: 1.0 Hi, On Fri, Sep 04, 2026 at 03:54:57PM +0800, Liu Ying wrote: > @@ -273,7 +285,22 @@ dc_crtc_atomic_enable(struct drm_crtc *crtc, struct drm_atomic_commit *state) > dc_ed_pec_sync_trigger(dc_crtc->ed_cont); > dc_ed_pec_sync_trigger(dc_crtc->ed_safe); > dc_fg_shdtokgen(dc_crtc->fg); > + > + /* Don't relinquish CPU until TCON is set to operation mode. */ > + local_irq_save(flags); > + preempt_disable(); > + > dc_fg_enable(dc_crtc->fg); > + /* > + * Turn TCON into operation mode as soon as the first dumb > + * frame is generated by DC(we don't relinquish CPU to ensure > + * this). This makes DPR/PRG be able to evade the frame. > + */ > + DC_CRTC_WAIT_FOR_FRAMEGEN_FRAME_INDEX_MOVING(dc_crtc->fg); > + dc_tc_set_operation_mode(dc_crtc->tc); > + > + local_irq_restore(flags); > + preempt_enable(); That's really not great... Can you expand on why you need this, and is there really no other way to do it? Maxime --xjuaddo6esktd3cx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCapqCIgAKCRAnX84Zoj2+ dir1AYCXpT5cVplY44dNchFSkeexJ/EEll6WarzurZvlyuK4ccEsQLN5u16HB+0M d69UP2sBfR04gGdJ/dhDGLj+kSe/MOJTZ8fjbbkfK0hpumFAmqrpXyNhp/ODKajZ YtkzHwfDPg== =7yGx -----END PGP SIGNATURE----- --xjuaddo6esktd3cx--