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=1796207206; b=rc7uYLkGqlBnHj9his1Fuh7rpk2iBhVWQOVsfgQPf12/wBpDobo8r6TDW325ayI1qis0 tF3hDpQ7llvqEc3CFwLf01B0rsP3s9gLSf/JJvN+iOhdc75/QahP2E1+5LvhvHmJCHHH/ aw9WQdrkDS7j4HC46RCvaOV7lHOBn5Rx7+Dc2t5alRNv3XEdf1Ki721SbT+F/GU7MZBnM 0n8r6zNHSBEqDAkLsFFSHNxY4oGCSjHKQI4mW7Cj7Hp35r2m1jeS+mILeRPASe2QjJ2g5 DUqFqT3HArARyoColld++CCPYYhPUQYokwOg1LYEzf8q4DNWgx0W3SX3+KOC9ReHvVw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796207206; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=txTA4aUR15GjvRNZJz33DBje8wG/2cauzvyPbzFLQIg=; b=tha2TLvNEY/n9qJO7Ne6r9scRpG/CQbLgGMAe4D1RZ203Y0Pd3FNEQNXgNCbCsMmbGu/ GU5buBKrJqVJWKI5At7j+WqiyBFsWxL3jqKHyAKeLj4II/NRYRcyaw9vEpE3lo9Wt1mXT fVv9erg7dvMr0VO4a8W9JmNDinTsdC+GE1Ws60VPJteSp7Dc+jAkP3gbjZvRfav9ENcQP N1V3SePC0vz3QmQFRqtlnezogs7sX54/q5qh1M4cSIi2Xy2Ct/UwyEBtUcMiWso9HD084 myv841I3mt0EO8NZ+TJNw9iulAduUxe2D2TdGTc2Rt5xCZr1AmtObRDjIaWwZhoZRiQ== 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=lPGDIaI3; 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 69330606A31A for ; Wed, 2 Dec 2026 10:26:46 +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=lPGDIaI3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A33A91F000C1; Wed, 2 Dec 2026 10:26:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796207206; bh=txTA4aUR15GjvRNZJz33DBje8wG/2cauzvyPbzFLQIg=; h=Subject:To:Cc:From:Date; b=lPGDIaI3qrO5AXT0eq/OuCMY5dypuDnJutPwn7+1yVNrAJRhwWPL5ekD8PR/NAt67 3JOD/X1+iv9F/EOdEskj8DUjh0upiaN4eCGv26daEbWqHcvIF4XBDkXNDV+2hYtqtT G63HrZj8qxJj2ExXgpE2dELyOhQt+HpS5f4nnrb4= Subject: FAILED: patch "[PATCH] drm/i915/dsb: Realign GOSUB only for QW slots 6 and 7" failed to apply to 6.18-stable tree To: hanson.wang@ugreen.com,joonas.lahtinen@linux.intel.com,ville.syrjala@linux.intel.com Cc: From: Date: Wed, 02 Dec 2026 11:26:43 +0100 Message-ID: <2026120243-retract-chokehold-cd1a@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.18-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.18.y git checkout FETCH_HEAD git cherry-pick -x 715f145f6204363a50853eb15719dc860db0bc01 # git commit -s git send-email --to '' --in-reply-to '2026120243-retract-chokehold-cd1a@gregkh' --subject-prefix 'PATCH 6.18.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 715f145f6204363a50853eb15719dc860db0bc01 Mon Sep 17 00:00:00 2001 From: Hanson Wang Date: Fri, 6 Nov 2026 18:23:15 +0800 Subject: [PATCH] drm/i915/dsb: Realign GOSUB only for QW slots 6 and 7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit intel_dsb_gosub_align() moves free_pos to the next cacheline unconditionally, but only clears the skipped bytes when at most two QW slots remain. Wa_16024917128 forbids GOSUB in slots 6 and 7 only. A larger gap is still executed. A Panther Lake DSB dump showed nonzero data in that gap, with the tail at 0x58 and GOSUB at 0x80. Advance free_pos only when the instruction would land in slot 6 or 7, and fill that gap with NOPs. Emit GOSUB in place for every other slot. intel_dsb_align_tail() still clears the rest of the cacheline. Update free_pos inside the existing gap check in intel_dsb_align_tail() as well, so the two helpers keep the same shape. Fixes: 2c41d62f6fb1 ("drm/i915/dsb: Implement intel_dsb_gosub()") Cc: stable@vger.kernel.org # v6.17+ Signed-off-by: Hanson Wang Signed-off-by: Ville Syrjälä Link: https://patch.msgid.link/20261106102315.1361645-1-hanson.wang@ugreen.com (cherry picked from commit a2f5df6c5468b4f65e58c4125bba3f0e3cdc6aa1) Signed-off-by: Joonas Lahtinen diff --git a/drivers/gpu/drm/i915/display/intel_dsb.c b/drivers/gpu/drm/i915/display/intel_dsb.c index d9a270362a82..07d864039e82 100644 --- a/drivers/gpu/drm/i915/display/intel_dsb.c +++ b/drivers/gpu/drm/i915/display/intel_dsb.c @@ -589,10 +589,10 @@ static void intel_dsb_align_tail(struct intel_dsb *dsb) tail = dsb->free_pos * 4; aligned_tail = ALIGN(tail, CACHELINE_BYTES); - if (aligned_tail > tail) + if (aligned_tail > tail) { dsb_buffer_fill(dsb, dsb->free_pos, 0, aligned_tail - tail); - - dsb->free_pos = aligned_tail / 4; + dsb->free_pos = aligned_tail / 4; + } } static void intel_dsb_gosub_align(struct intel_dsb *dsb) @@ -607,11 +607,15 @@ static void intel_dsb_gosub_align(struct intel_dsb *dsb) /* * Wa_16024917128 * "Ensure GOSUB is not placed in cacheline QW slot 6 or 7 (numbered 0-7)" + * + * Move to the next cacheline only for those two slots. The skipped + * bytes stay in the programmed range, so fill them with NOPs. Any + * other slot can take the GOSUB directly. */ - if (aligned_tail - tail <= 2 * 8) + if (aligned_tail - tail <= 2 * 8) { dsb_buffer_fill(dsb, dsb->free_pos, 0, aligned_tail - tail); - - dsb->free_pos = aligned_tail / 4; + dsb->free_pos = aligned_tail / 4; + } } void intel_dsb_gosub(struct intel_dsb *dsb,