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 B1203448CFD for ; Wed, 29 Jul 2026 12:49:26 +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=1785329368; cv=none; b=bnY3/nSIx7RbBUyWU19mP+o/Wk8UhHwJW56K4TQ9RPpUKnxCcHAkyElnAGuvCh0Ll9U+eOGQGv0ShGHFlm+arbGCyB3puq/9vZF+RSfSh3iW6jWeQnl8T9a0jsfH2mUk1lBsuOYRsdWuqCPjZ4Qm5FtclNvrOFDm+Lrjmeaskzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785329368; c=relaxed/simple; bh=EdfAZaY3eCTCPpAjscpdY5EDDZkSwZdBy79QI1GbT+A=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=E+X9+BUnXcn83AfZPniWK2KYl7N2DCdg/L2pxwFFd3M2lLvN1a0p0A05+rcw8JGmeWXfl7PXqlDXQpKOGSz4mYWzUFeBWg9eobHu1J5koNkVmhSurPObvyQfVsS/37IddxyaYuThWiWL7UD5S4V+I/ZyIKnkHP30P+hYqjcPhN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1K1gIqZe; 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="1K1gIqZe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E514A1F000E9; Wed, 29 Jul 2026 12:49:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785329366; bh=STPF8AiX3NDNeBY7xGxZ10Ih+kpkw2XYoAZH8VqcxXE=; h=Subject:To:Cc:From:Date; b=1K1gIqZe//hPV+MD0dzZ6oGiR6v2RBViglXCSnhqJuwudcYutwbBC2Wx9sSxCJ2yG EEjZi0s1KV+WyRZePeYgysNQYffitnfX04y24PJk7TXOJuepy19ymaYKmE+cqJNZBM 5PAzPPcKwbsuvl556KZvn8z+PF7+cZZn0ZvtvQzY= Subject: FAILED: patch "[PATCH] drm/vc4: Shut down BO cache timer before teardown" failed to apply to 6.6-stable tree To: lilinmao@kylinos.cn,mcanal@igalia.com Cc: From: Date: Wed, 29 Jul 2026 14:49:02 +0200 Message-ID: <2026072902-linseed-nebulizer-d513@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=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 6273dd3ffb54ec581855b82ae77331b66028249c # git commit -s git send-email --to '' --in-reply-to '2026072902-linseed-nebulizer-d513@gregkh' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 6273dd3ffb54ec581855b82ae77331b66028249c Mon Sep 17 00:00:00 2001 From: Linmao Li Date: Mon, 20 Jul 2026 16:44:26 +0800 Subject: [PATCH] drm/vc4: Shut down BO cache timer before teardown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The BO cache timer callback schedules time_work, and time_work can rearm the timer through vc4_bo_cache_free_old(). vc4_bo_cache_destroy() deletes the timer and then cancels the work, which does not break that cycle: the work being cancelled can rearm the timer, and the timer then queues work again after teardown. Use timer_shutdown_sync() instead, so the timer cannot be rearmed and the cycle ends with cancel_work_sync(). Fixes: c826a6e10644 ("drm/vc4: Add a BO cache.") Cc: stable@vger.kernel.org Signed-off-by: Linmao Li Link: https://patch.msgid.link/20260720084426.1632508-1-lilinmao@kylinos.cn Reviewed-by: Maíra Canal Signed-off-by: Maíra Canal diff --git a/drivers/gpu/drm/vc4/vc4_bo.c b/drivers/gpu/drm/vc4/vc4_bo.c index 5e7c46dd7823..49ea2ed0996b 100644 --- a/drivers/gpu/drm/vc4/vc4_bo.c +++ b/drivers/gpu/drm/vc4/vc4_bo.c @@ -1048,7 +1048,7 @@ static void vc4_bo_cache_destroy(struct drm_device *dev, void *unused) struct vc4_dev *vc4 = to_vc4_dev(dev); int i; - timer_delete(&vc4->bo_cache.time_timer); + timer_shutdown_sync(&vc4->bo_cache.time_timer); cancel_work_sync(&vc4->bo_cache.time_work); vc4_bo_cache_purge(dev);