From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 614E92E5B1B for ; Sun, 1 Mar 2026 01:39:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772329195; cv=none; b=F1xxw/6Di8AnJ7Los7HuOY2Cvb9bzLtRo1MUx8/t9H1GiHx7BAjfffvw3ii3TapvkhT8uWlCQ3aZYUSweEtONCq8pJW8KU5OWucn2ZyhNVRk6kKdLZ+89zYjiTDx6/+Avx5lSPUT2YM3KDrTPHaO+p6Gke/Ocg5rmeKGXLQrLUE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772329195; c=relaxed/simple; bh=7fHVgM3cnjLo1FnmfhwFNIUS5jXt44mN2T0kR0b2yns=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gW6kfIyW6R/vA0aFFi053g6BF+icraIznxkhHudzfgcyi82RPY0HVfj0Ayuzb84qlm2h6vm+R4b+iVmbCoaq/SvzR/stgaGwbuNWvYvhLttWO4Jb4IrWI78Uz0fGMEToT9Zf7MUzOV4nMnK8AWgR0Dl1npVzKvCGgVQwUDexx5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GPTZatHq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GPTZatHq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95EA4C19425; Sun, 1 Mar 2026 01:39:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772329195; bh=7fHVgM3cnjLo1FnmfhwFNIUS5jXt44mN2T0kR0b2yns=; h=From:To:Cc:Subject:Date:From; b=GPTZatHqUeV+8VFfY12j6KvdRe57MTi15l/q6DdAHKOTxCmTp6gHTJs4raxbiniOu U6tcxgWNJZik9r11UbH2wLZa3ybYJawBZoTA47cgMCp/QHYZitsF+F0gB/6+v8TFy0 hXIPESNmzGHdRyhutFgGUobMCQyE9EToe+abdLAVHLNun19IFWTiAvkacd39fIdTee SVorkA3+Nu8Hta3bvPO922UXr+iyUF7zB6tIR+HZ+cxPOn2rVMaVcnnEszZaJDJ62B k389o04p21/bTKACoNkd/WpAiLOG5QsJILxxw6JuRmNp0gwwAs7u4OwTqdrpWhDuEn G5DAGeJhc0GqQ== From: Sasha Levin To: stable@vger.kernel.org, olvaffe@gmail.com Cc: Boris Brezillon , Liviu Dudau , Steven Price , dri-devel@lists.freedesktop.org Subject: FAILED: Patch "drm/panthor: fix for dma-fence safe access rules" failed to apply to 6.1-stable tree Date: Sat, 28 Feb 2026 20:39:53 -0500 Message-ID: <20260301013953.1701005-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-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 . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From efe24898485c5c831e629d9c6fb9350c35cb576f Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 4 Dec 2025 09:45:45 -0800 Subject: [PATCH] drm/panthor: fix for dma-fence safe access rules Commit 506aa8b02a8d6 ("dma-fence: Add safe access helpers and document the rules") details the dma-fence safe access rules. The most common culprit is that drm_sched_fence_get_timeline_name may race with group_free_queue. Signed-off-by: Chia-I Wu Reviewed-by: Boris Brezillon Reviewed-by: Liviu Dudau Reviewed-by: Steven Price Cc: stable@vger.kernel.org # v6.17+ Signed-off-by: Steven Price Link: https://patch.msgid.link/20251204174545.399059-1-olvaffe@gmail.com --- drivers/gpu/drm/panthor/panthor_sched.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/panthor/panthor_sched.c b/drivers/gpu/drm/panthor/panthor_sched.c index a17b067a04392..0f83e778d89aa 100644 --- a/drivers/gpu/drm/panthor/panthor_sched.c +++ b/drivers/gpu/drm/panthor/panthor_sched.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "panthor_devfreq.h" #include "panthor_device.h" @@ -943,6 +944,9 @@ static void group_release_work(struct work_struct *work) release_work); u32 i; + /* dma-fences may still be accessing group->queues under rcu lock. */ + synchronize_rcu(); + for (i = 0; i < group->queue_count; i++) group_free_queue(group, group->queues[i]); -- 2.51.0