From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796207276; b=KZzttM66+k1Ljwzo2sHXly+NO2R4H7OJvS6G+rrg4pdtT1onQqAFPJjurQLlFS40nuZZ JLesJGydK6ja46Hcp6Be7FcQ4TqVoqmAL9EIL5jTiVxsNV7QCr+NnWxM94M4wPIoxNbE5 ltx3oLC1CKcrMzC3AbbQEHvMkuiref9GIMelzoQIuKxiTm9i/SlXVkBnxNOCopbVzCV/Y TAb1Y16YTu/cxQhG11pMae9v2NDbMCboPjzAnWyXhKpmD7ezeLYNxB0ygjfiFa/z5ZdBO /SyLG1Ku/rcy4TlOnrBurmdoepjGqdI2aJ+rrVkYCmFSyb29bX3UGMPSe+liKYompOg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796207276; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=sSOmyVho7UgIFq0hIcksH2IDQ0VD97kpS+9StFvcQuA=; b=iMjkXyrD8yBvRdO/GTFtjnGJvBGpsTXwjq4zY1SNi3ntGX63+EqCfgsvODKqY8t6kSlg q1PZDHz8XWvm90xaTqY0yiDlIN9Jn4Ze1f6MJMy4/a5c1lTeIxa85MO2+9tfvApQYIPQl oq2vf6HIGWCWRbhFqhQLn/m0gQ5Xy50fbR09xpF3MSkGU1Hgxp1BUtMbRJ8aXJGEkvfHn e1msbGJmJegzRb+BQfp+GzAXxCwf48doM5uv/VvZGhu+6Ophmrbk3rYLqXZ2T6GXRiMR+ mJcZbGi4sDimoJdJ9bXPJVUh/88Vd3voADqONAd2gOAdX6UYTdlDuGv4Yu5dZBrsd7w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=qGPUfaSN; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CED36606A31A for ; Wed, 2 Dec 2026 10:27:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=qGPUfaSN Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4F221F0089F; Wed, 2 Dec 2026 10:27:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796207276; bh=sSOmyVho7UgIFq0hIcksH2IDQ0VD97kpS+9StFvcQuA=; h=Subject:To:Cc:From:Date; b=qGPUfaSNkqLCthlGiamki5tXm6e+0KijkhBZqCMVg0DEVU1rJMR/5f92O/EywYBxw k7/ayi2L/tGXpctHsC+neoz2itrV85lHCHj7fMrA1kh4oXlubdPG/Rmrs/h3/ySlPN QInqqgupwUNkD0Row0Szd/onP8e5aN/cQxyZpl5A= Subject: FAILED: patch "[PATCH] drm/i915/psr: Clear CFF state on flip flush" failed to apply to 6.6-stable tree To: jouni.hogander@intel.com,joonas.lahtinen@linux.intel.com,mika.kahola@intel.com,stable@vger.kernel.org Cc: From: Date: Wed, 02 Dec 2026 11:27:49 +0100 Message-ID: <2026120249-jacket-ditzy-aeab@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x 9bf9ced37e60a6c947a481385cd9ed919f14cf36 # git commit -s git send-email --to '' --in-reply-to '2026120249-jacket-ditzy-aeab@gregkh' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 9bf9ced37e60a6c947a481385cd9ed919f14cf36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= Date: Mon, 2 Nov 2026 12:00:50 +0200 Subject: [PATCH] drm/i915/psr: Clear CFF state on flip flush MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An ORIGIN_FLIP flush can clear the last busy frontbuffer bits without running _psr_flush_handle(), leaving the CFF state flag set. Clear CFF state when no frontbuffer bits remain busy, and queue PSR work only when inactive and not paused. Fixes: 805f04d42a6b ("drm/i915/display/psr: Use continuos full frame to handle frontbuffer invalidations") Cc: # v5.19+ Signed-off-by: Jouni Högander Reviewed-by: Mika Kahola Link: https://patch.msgid.link/20261102100051.272137-4-jouni.hogander@intel.com (cherry picked from commit 233e3453eb705c0434f6f8467f211f0250c5832b) Signed-off-by: Joonas Lahtinen diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 5bb9432e8deb..0ae347fe6cd1 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -3645,12 +3645,6 @@ static void _psr_flush_handle(struct intel_dp *intel_dp) intel_psr_exit(intel_dp); } else if (intel_dp->psr.psr2_sel_fetch_enabled) { /* Selective fetch prior LNL */ - if (intel_dp->psr.psr2_sel_fetch_cff_enabled) { - /* can we turn CFF off? */ - if (intel_dp->psr.busy_frontbuffer_bits == 0) - intel_dp->psr.psr2_sel_fetch_cff_enabled = false; - } - /* * Still keep cff bit enabled as we don't have proper SU * configuration in case update is sent for any reason after @@ -3707,13 +3701,8 @@ void intel_psr_flush(struct intel_display *display, intel_dp->psr.busy_frontbuffer_bits &= ~pipe_frontbuffer_bits; - /* - * If the PSR is paused by an explicit intel_psr_paused() call, - * we have to ensure that the PSR is not activated until - * intel_psr_resume() is called. - */ if (intel_dp->psr.pause_counter) - goto unlock; + goto rearm; if (origin == ORIGIN_FLIP || origin == ORIGIN_CURSOR_UPDATE) psr2_dc3co_flush_locked(intel_dp, frontbuffer_bits); @@ -3725,8 +3714,20 @@ void intel_psr_flush(struct intel_display *display, _psr_flush_handle(intel_dp); rearm: - if (!intel_dp->psr.active && !intel_dp->psr.busy_frontbuffer_bits) - queue_work(display->wq.unordered, &intel_dp->psr.work); + if (!intel_dp->psr.busy_frontbuffer_bits) { + if (intel_dp->psr.psr2_sel_fetch_cff_enabled) + intel_dp->psr.psr2_sel_fetch_cff_enabled = false; + + /* + * If the PSR is paused by an explicit + * intel_psr_paused() call, we have to ensure that the + * PSR is not activated until intel_psr_resume() is + * called. + */ + if (!intel_dp->psr.active && !intel_dp->psr.pause_counter) + queue_work(display->wq.unordered, &intel_dp->psr.work); + } + unlock: mutex_unlock(&intel_dp->psr.lock); }