From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95E28492E45 for ; Wed, 9 Sep 2026 11:45:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788954330; cv=none; b=U63eD/5p6ylRa3O00vsA4AQ5Ovnd42eZV9iQkmo7IBNAXsK75z5PgAZMUO/gxTyW7wcBjIStGxkEhThJ0mGaYqyPMiu3DPtmT+0feRFAp8bYPoeINARtq6LltvUIAG/a6WD0oMBFvHUM3OrMqyvjLOR9Y4xasjXphAfRtFqFyJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788954330; c=relaxed/simple; bh=gCqyefgzSxE6E7ny7sSeGfoSVWB79NSN9YVNp8NO5y8=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=CQo0RntdzKdszFzXcan/0ROXy2FyNVPaT+xaznjtu/FTw6nkHrXgDcCGlNBVPF262R6LyggQDtaGUwIGQFkI95Aj9Dbdxkjb9jaxVy6JGxIY/aMHfnVq+paKG9F7/VPHUTtJAZ2RPHK7ZVhVmQ2yOHnJV6fMwUq9mwUIrvkY8y0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yBOyB7XR; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yBOyB7XR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFA5B1F00A3A; Wed, 9 Sep 2026 11:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788954329; bh=L1ff+2l07cX/sOQg7r3Urq/if91URj+GSnI6RLgCrSs=; h=Subject:To:Cc:From:Date; b=yBOyB7XR3Agq+KV+bFiLgNe0Ms8354WcmI9WTgQR3mpwwqCFc8zHKhbWhSSpRQxLW H2h7kpCDKwJXDMOWceZNEDRWqRCV628q6/0H+d8z5GKbGsSKvIofrZlyKEYOwuXS7b iPd8NZVxY1QIC2IfhKmDyHRZ509i/NYbpsHKdBes= Subject: FAILED: patch "[PATCH] drm/amdgpu: avoid force-completing uninitialized UVD rings" failed to apply to 6.12-stable tree To: bobzhou2@amd.com,Frank.Min@amd.com,alexander.deucher@amd.com,leo.liu@amd.com Cc: From: Date: Wed, 09 Sep 2026 13:29:44 +0200 Message-ID: <2026090944-nutmeg-wasp-168d@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-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.12.y git checkout FETCH_HEAD git cherry-pick -x 6760f5cb12d2366ddd58a2d8637f7583d73f596b # git commit -s git send-email --to '' --in-reply-to '2026090944-nutmeg-wasp-168d@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 6760f5cb12d2366ddd58a2d8637f7583d73f596b Mon Sep 17 00:00:00 2001 From: Bob Zhou Date: Wed, 19 Aug 2026 14:23:49 +0800 Subject: [PATCH] drm/amdgpu: avoid force-completing uninitialized UVD rings uvd_v7_0_sw_init() does not initialize the UVD decode ring for an SR-IOV VF. However, amdgpu_uvd_resume() unconditionally force-completes the decode ring when restoring its fence sequence. Skip fence completion when the fence driver is not initialized. Fixes: 0a33b11d26c6 ("drm/amdgpu: mark force completed fences with -ECANCELED") Cc: stable@vger.kernel.org Signed-off-by: Bob Zhou Acked-by: Leo Liu Acked-by: Frank Min Signed-off-by: Alex Deucher diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index 228a405a94c4..ecd7caa95d4b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c @@ -517,7 +517,8 @@ int amdgpu_uvd_resume(struct amdgpu_device *adev) } memset_io(ptr, 0, size); /* to restore uvd fence seq */ - amdgpu_fence_driver_force_completion(&adev->uvd.inst[i].ring, NULL); + if (adev->uvd.inst[i].ring.fence_drv.initialized) + amdgpu_fence_driver_force_completion(&adev->uvd.inst[i].ring, NULL); } } return 0;