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=1794047857; b=VtTehgT8rSZKCsSbQ8qYPTfMkQ/WtYgpZ/9A33Mqrb/GryIdDR5R7vJN1f0uwbmPaCCS oYUbvbfMXwvVLsqNLOuXznXxj1hES43DpEdVa4B5yVET+xvYOHmEPZQ3CrqtUBCaYA5AC IpF8qpB7ohzYjR8Xis+TirYiw8B0vas/iyz8H4nIqO8v+9hNdKDhBv3KRwRGTBQclLN6o 1PFVsrp4AAYDhoXdg7rz1P5L+OIm07BuXMCKJWRXkoX4JUBS3AA+7GXXUCRyT8hWPNNmF 4schhApIUf+eGkvhycPoAPK0iT9ZdZqJWT0mEDtjwru+nBHHitErFJmxy349p0jA6fA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794047857; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=7Ry6zxRprZXer9uSnjbzR/JdS3W1IaNFFsz6TfcFznA=; b=RKLdxmHsTLxso8wZqlrRfno5QuKxp+Prl/jO2rWkcrrF/9wvALTVsO8Zt1Ixi/GSTV51 v/IF//kfM/Rue+uGkDTf1zGAsx+Tj6jxMQRUX7FQ5VUBdl/yQ0zJyuAytnAmR7Jp+aWht 7n0s6yKzNEPlWU9NIgShDSXS2VV6TUhuCChjAPvwY3i20isZGDpaoMJ6p55FAHHuKknNj b4qncKMPl7+nydtN2+1mvh5i4rIFfvTm8mYBLc/0cn2j0Ax3tGQHSgCoAu59JU17CI+2p +VkIilRF2JJ1BFMUl+TKUwZ4ni7UZuCw5oY8AGO6elQRg7Cr0DzdqlGfAXSUM5eHg/A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ut+cssKI; 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 1BC3E606A326 for ; Sat, 7 Nov 2026 10:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ut+cssKI Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06F081F0089F; Sat, 7 Nov 2026 10:37:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794047856; bh=7Ry6zxRprZXer9uSnjbzR/JdS3W1IaNFFsz6TfcFznA=; h=From:To:Cc:Subject:Date; b=Ut+cssKIdfsVdQoKfffQOP0KfmTTzV1h5OKBDT2SN/IBZgyG5WdO5yZicR+5NjdMs eK77MYfr7zh4nogsXltI6Zgk5McMgy1GJGH13G1tIEWvWQ+vxjXTPMfO8N8pspJDlZ up7gBuVC1c4EFtHkarORo7ISKzYvfVv9ekwywQcGWd3F031Gva/o8G0tR0KeZrgK6h gnKnww41wEeixOEmsTSaBQ4VJNrNxKdDtbjk4u27EPoABa1uW/g2N8vBQUb9x4EhwC s5Lq2uOB73gGuKXSJL63fpch0weVC3xnYAw1PW9SsoG0jtXHwfaZTNKyorRAv+V3Tz cpT4jEyvjVvrQ== From: Sasha Levin To: elena.sakhnovitch@amd.com, shahzeb.ahmed@amd.com, manjunath.gaonkar@amd.com, apurv.mishra@amd.com, alexander.deucher@amd.com Cc: stable@vger.kernel.org Subject: FAILED: patch "[PATCH] drm/amdgpu/gmc9: add extra type-2 TLB flush for gfx942/gfx950" failed to apply to 6.6-stable tree Date: Sat, 7 Nov 2026 05:37:35 -0500 Message-ID: <20261107053734-failed-6.6-232213c9bd7f@kernel.org> X-Mailer: git-send-email 2.53.0 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 232213c9bd7f703836164f23160b76657094a7db # git commit -s git send-email --to '' --in-reply-to '20261107053734-failed-6.6-232213c9bd7f@kernel.org' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Thanks, Sasha ------------------ original commit in Linus's tree ------------------ From 232213c9bd7f703836164f23160b76657094a7db Mon Sep 17 00:00:00 2001 From: Elena Sakhnovitch Date: Wed, 14 Oct 2026 14:29:35 -0400 Subject: [PATCH] drm/amdgpu/gmc9: add extra type-2 TLB flush for gfx942/gfx950 Add extra type-2 TLB flush for GC 9.5.0, similar race condition was observed as Vega20+XGMI. Add to GC 9.4.3 and 9.4.4 too, as they share the same multi-XCD TLB topology. Reported-by: Shahzeb Ahmed Reported-by: Manjunath Gaonkar Signed-off-by: Elena Sakhnovitch Reviewed-by: Apurv Mishra Signed-off-by: Alex Deucher (cherry picked from commit 138cfb165ae6aa98c0767b431e718d1a8199db28) Cc: stable@vger.kernel.org --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 85ba228f002d0..822681635a655 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -2179,10 +2179,22 @@ static int gmc_v9_0_hw_init(struct amdgpu_ip_block *ip_block) * (type 2), which flushes both. Due to a race condition with * concurrent memory accesses using the same TLB cache line, we still * need a second TLB flush after this. + * + * GC 9.4.3, 9.4.4 and 9.5.0 hit a similar race. */ - adev->gmc.flush_tlb_needs_extra_type_2 = - amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(9, 4, 0) && - adev->gmc.xgmi.num_physical_nodes; + switch (amdgpu_ip_version(adev, GC_HWIP, 0)) { + case IP_VERSION(9, 4, 0): + adev->gmc.flush_tlb_needs_extra_type_2 = + adev->gmc.xgmi.num_physical_nodes; + break; + case IP_VERSION(9, 4, 3): + case IP_VERSION(9, 4, 4): + case IP_VERSION(9, 5, 0): + adev->gmc.flush_tlb_needs_extra_type_2 = true; + break; + default: + break; + } /* The sequence of these two function calls matters.*/ gmc_v9_0_init_golden_registers(adev); -- 2.53.0