From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0A8B606A33A for ; Tue, 24 Nov 2026 16:54:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=TaRrpPBA Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8902210EBE9; Tue, 24 Nov 2026 16:54:45 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5FF9610EBE9; Tue, 24 Nov 2026 16:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795539273; x=1827075273; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=JGstaVtAq7LntDKSzvsruUy2qJRQ+Igf/cCxvvT/j+o=; b=TaRrpPBA7Vk3pFOHFk4auEnYPl6S044eJidYHeO2B2FBaa0tBwKy8O6t PmpsVwLbeNUWQdF5bMYevvN0dAdoMxfjObuEWPyUTio5tRkvE4DQjVhuY P2s4SZYuwSuilm6Kyi/K9mCMOffeRC6uo+Ueff9e8iF4PId0VR40Pb8qW Ny9sNd9/33Adxc6Oy0t0G43FZ6OK3qiYKh2zdWYMS4dDLPA3qdPd+fZmR VxY5WjRGd7+12j/6v1CR9DdERtDurRZIzKQ7y8QAemQpILK4DCK5R46/T So2WKaUfYC/VeMD2eD/wCehQFREK1RdFV4GQiLBZouCzNfPbC8SR6uQc5 w==; X-CSE-ConnectionGUID: XHjxUtOSSLOIXMkKWWZwVw== X-CSE-MsgGUID: S9YNIulIT62xO/52nSfGyQ== X-IronPort-AV: E=McAfee;i="6800,10657,11976"; a="4407154" X-IronPort-AV: E=Sophos;i="6.27,231,1787036400"; d="scan'208";a="4407154" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2026 08:43:59 -0800 X-CSE-ConnectionGUID: XVXGtCWTSkeyK8RjqkBAfQ== X-CSE-MsgGUID: 9XhmbOh9STqtRyq/l/kymw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,231,1787036400"; d="scan'208";a="11608782" Received: from ncintean-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.245.204]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2026 08:43:32 -0800 Date: Tue, 24 Nov 2026 18:43:28 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Mika Kahola Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Subject: Re: [PATCH 2/3] drm/i915/flipq: Allow flip queue commits with PSR2/PR on Xe3+ Message-ID: References: <20261124141300.2600962-1-mika.kahola@intel.com> <20261124141300.2600962-3-mika.kahola@intel.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261124141300.2600962-3-mika.kahola@intel.com> X-Patchwork-Hint: comment Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, Nov 24, 2026 at 02:12:59PM +0000, Mika Kahola wrote: > Allow PSR2 and Panel Replay with the flip queue on PTL+, where the > selective fetch and SU region programming go through the DSB and the > DMC generates the frame change event. > > PSR1 stays excluded as it can't use the pipe DMC interrupt. LNL is > left out as it has no DMC generated push, and its flip queue trigger > is scanline based while PIPEDSL reads 0 in PSR2 deep sleep. > > Joined pipes are left out as well. They share one transcoder, but > each pipe DMC would send its own push. > > Signed-off-by: Mika Kahola > --- > drivers/gpu/drm/i915/display/intel_display.c | 2 +- > drivers/gpu/drm/i915/display/intel_flipq.c | 27 ++++++++++++++++++++ > drivers/gpu/drm/i915/display/intel_flipq.h | 1 + > 3 files changed, 29 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c > index 6de618d6735aa..c6875169ef225 100644 > --- a/drivers/gpu/drm/i915/display/intel_display.c > +++ b/drivers/gpu/drm/i915/display/intel_display.c > @@ -7524,7 +7524,7 @@ intel_atomic_commit_type(struct intel_atomic_state *state, > /* TODO handle VRR with flip queue */ > if (intel_flipq_supported(display) && > !new_crtc_state->vrr.enable && > - !new_crtc_state->has_psr && > + intel_flipq_psr_supported(new_crtc_state) && I do not see anything in this series that would prevent the DMC from sleeping, and thus being unable to actually process the flip queue. > !intel_crtc_needs_color_update(new_crtc_state)) > return INTEL_COMMIT_FLIPQ; > > diff --git a/drivers/gpu/drm/i915/display/intel_flipq.c b/drivers/gpu/drm/i915/display/intel_flipq.c > index ab51795ca4dd1..24be0a3ec2e96 100644 > --- a/drivers/gpu/drm/i915/display/intel_flipq.c > +++ b/drivers/gpu/drm/i915/display/intel_flipq.c > @@ -127,6 +127,33 @@ bool intel_flipq_supported(struct intel_display *display) > return DISPLAY_VER(display) >= 30 && intel_vrr_always_use_vrr_tg(display); > } > > +/* > + * The flip queue completion is signalled via the pipe DMC interrupt, > + * which isn't available with PSR1. PSR2 and Panel Replay can be used > + * with the flip queue on PTL+, where the selective fetch and SU region > + * programming go through the DSB and the DMC generates the frame > + * change event (see PTL_FQ_NEED_PUSH). > + * > + * Joined pipes share one transcoder, but each pipe DMC would send > + * its own push, so keep them on the DSB path. > + */ > +bool intel_flipq_psr_supported(const struct intel_crtc_state *crtc_state) > +{ > + struct intel_display *display = to_intel_display(crtc_state); > + > + if (!crtc_state->has_psr) > + return true; > + > + if (DISPLAY_VER(display) < 30 || > + !HAS_PSR_TRANS_PUSH_FRAME_CHANGE(display)) > + return false; > + > + if (crtc_state->joiner_pipes) > + return false; > + > + return crtc_state->has_sel_update || crtc_state->has_panel_replay; > +} > + > void intel_flipq_init(struct intel_display *display) > { > struct intel_crtc *crtc; > diff --git a/drivers/gpu/drm/i915/display/intel_flipq.h b/drivers/gpu/drm/i915/display/intel_flipq.h > index 06e84bbc2e07c..b5370191c472b 100644 > --- a/drivers/gpu/drm/i915/display/intel_flipq.h > +++ b/drivers/gpu/drm/i915/display/intel_flipq.h > @@ -17,6 +17,7 @@ struct intel_display; > struct intel_dsb; > > bool intel_flipq_supported(struct intel_display *display); > +bool intel_flipq_psr_supported(const struct intel_crtc_state *crtc_state); > void intel_flipq_init(struct intel_display *display); > void intel_flipq_reset(struct intel_display *display, enum pipe pipe); > > -- > 2.43.0 -- Ville Syrjälä Intel