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=1794050802; b=RY0ZHTRG56cXD18VZCjNYDMrAT8Bdq8eMGROFkAaHOnm+Hb/7tg7gzD+CYCxTkT3x5ps OoMhn/Of9YqHZgmL/nKS1wmyhzloJIu7IvFV0SeH+LB5oM5FD4pbtOCXf+5BlPx10ONCQ E3q/Lnix/gejX7Pi5jw5NZ2HYPwMB0fJzGFvIuOieAkuRZxiSrbiH1sSdf4VaDlmPfwFN DY1wOuWcqoXetM6tm5AyOFspnhb4HaYW+EhM2QrBuECaD8S41S3JIqAo/c0dnhR8CQT97 +9v3qQ3owzrRLuE8XTAYxcpACivKbypTZJpLgpAcUHML2JpJIvhxVCzbIYEGbv1jtgA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794050802; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=YY7hQvCCkAidFTfUc+t6N977PO5vfmr6CTrT1fkR5J4=; b=Awk05kwtuD3MoWR8+965HVbH0rfUeAtzEe182Q3gvdO9GS426i2e56/7540qq8w2gK7y Gw9EqmwCu4By9xWIP2QUQDoJ4IZyQcNiIcEnnCeXYMgH8r26PTo7FjBBp2Nu9nqHraxGq H81Fd7J/Af6oa30sDj7YdPfpmQXtGpU71gfg8FYmJImqKRrRGEwdCs0flENtbRUdL/4EN FTI3jgY1ZeJsdSQ7OJ944rRjJCxdDSn8ZYZfFkdfSUtvUoAKADp3LleomEBED/7lrNPrn AngHt/anDBq9g0URYsjiC932zbDlsK/5lVFQ24F3nb0XIEoTy7TA1KSgH6K+imPrXfQ== 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=HIGhSZgJ; 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 6E622606A32C for ; Sat, 7 Nov 2026 11:26:42 +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=HIGhSZgJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92BFD1F0089F; Sat, 7 Nov 2026 11:26:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794050802; bh=YY7hQvCCkAidFTfUc+t6N977PO5vfmr6CTrT1fkR5J4=; h=From:To:Cc:Subject:Date; b=HIGhSZgJRQ4ZRJoGOpQrgRlDr6wyqi5UAAawXwPinqbSlWnmYZYya72sXL+gmdjyJ +o34TIzWCK3oiBNBpoaLU5Auy8k4wBetMzHTipHsCennJ0jz76js/wYFMdSlN4hfBw onde6Fbm9/w34vSDBFJmr/RhXopCt/6GNydEGrrxs2vyeIazloBXxQRn0+qhbh4aKG bL78XM11x0DxO1HxUCR9dr/CC6Y8SYIPCMGN0Kag/wQikbQEqdvANXfAGVCeAftvPd qNqrJgc3+GEio9C7XDvkU4AtnqiBBSdiN3CU59bRucO/9Cp+jWBI5bzx0WQ7G4M4MM 4hpl1gEpmxSLQ== 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 5.10-stable tree Date: Sat, 7 Nov 2026 06:26:40 -0500 Message-ID: <20261107062640-failed-5.10-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 5.10-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-5.10.y git checkout FETCH_HEAD git cherry-pick -x 232213c9bd7f703836164f23160b76657094a7db # git commit -s git send-email --to '' --in-reply-to '20261107062640-failed-5.10-232213c9bd7f@kernel.org' --subject-prefix 'PATCH 5.10.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