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 B8E3D2DF126; Sat, 17 Oct 2026 17:43:38 +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=1792259019; cv=none; b=fDlV8/kJFyP0oqJ4bWQ4bqbl3Io04T7C6zSXNT5IEiT1Zmaz0KHN3jNATsiRkdoHRzEnG/ucFDjxcG3dM94bhaE5UMauwYbDABXntABf9VlsuIPoX4kml7H9a0Mqo0DOR4TTXqVv1K3nro/azxNeJZ0X+jOiHJdNMfBOsT4Vvs4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792259019; c=relaxed/simple; bh=8OgztZrH/EeBm4hfbWzCQNQLxvNwe5s1AIc2oxsB4HU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XPdhgWmbbXgocGIUXoz7m68HAZSpqCtdQ5g1Ok7E6CB/DxjVlLIR3pVf5J8ZqCj9hkQBh8acHPap1DoC/2YQzCFUAA3U4EbBrQ83ZgRPCp4uQAbiHlVXwgZK7272z38BGPaT5b7e70FtU87G2GIQppc8aY421Rft/HwExIVTr2w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Mr/q+f5t; 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="Mr/q+f5t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11D511F000C4; Sat, 17 Oct 2026 17:43:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792259018; bh=D5L2B8jleK73Mc6iYhjlX43C5/QIICPlLMDgAAyQLtE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Mr/q+f5te/4jGfNEWpQKIrlkuX9y4pQabjcC6t5o2rjueKgyoZirDFHBagp7iffjJ YoyLRlI3UIaUEYs6NIy4Ww+0Rs27Wyrxc6n+yc3C3v5CBnpYpY5UGXqYvL+bLItTsN zQOi7TAPn5Dt7chr6n0R5xzy1hURgfv6X+eBLaA0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Linmao Li , =?UTF-8?q?Ma=C3=ADra=20Canal?= , Sasha Levin Subject: [PATCH 6.6 1076/1674] drm/vc4: Shut down BO cache timer before teardown Date: Sat, 17 Oct 2026 17:55:48 +0200 Message-ID: <20261017160458.737089516@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261017160431.119607952@linuxfoundation.org> References: <20261017160431.119607952@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Linmao Li [ Upstream commit 6273dd3ffb54ec581855b82ae77331b66028249c ] 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 Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_bo.c b/drivers/gpu/drm/vc4/vc4_bo.c index 99b4e3c9474a3..c2d69390330e8 100644 --- a/drivers/gpu/drm/vc4/vc4_bo.c +++ b/drivers/gpu/drm/vc4/vc4_bo.c @@ -1050,7 +1050,7 @@ static void vc4_bo_cache_destroy(struct drm_device *dev, void *unused) struct vc4_dev *vc4 = to_vc4_dev(dev); int i; - del_timer(&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); -- 2.53.0