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 3BD3B1FA859 for ; Sun, 1 Mar 2026 01:30:10 +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=1772328610; cv=none; b=f9kQXK4a7Jfi9seFv5111aN8+bmBLRiaPCEWUu007Gw2iIX76szE9LaUQqMmg2WGvwvU0sX31WITFiStxuzTfOpVpr0fmWBKBRcz6RypJ0NvhOBkHfciwbD7uTudg577KR/IFoceMuGzXePw0ACoO/BhYCju63FAOehWMWWHjBg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772328610; c=relaxed/simple; bh=QBHI4w4bCn/LcbAvs2iDo0jqhP5Va3UWcaVDVbMvHdA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bfLk9KoMF2XrYuKRJf/BHpZR85ygZO6Up73jUA9x/WUOGHSQjj7kaDEv+dqeEDphDGFY7WIHSrLtTv03zBuPkzm0EXvgnSggnRsvEFNftTzbW6VD1In1VD2rA/3lgD0aHHwbt7eRkHjJqr/Ron19POzxigicTEPqwZbMNicCDDA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VMixBAoh; 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="VMixBAoh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D331C19421; Sun, 1 Mar 2026 01:30:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772328610; bh=QBHI4w4bCn/LcbAvs2iDo0jqhP5Va3UWcaVDVbMvHdA=; h=From:To:Cc:Subject:Date:From; b=VMixBAohgP8kiTRy4VQcIJmOABEM9jGwNPkjL33+ARR6JOIYJW/8uByCXtDDeJyH1 3PnPmK5VQQuTrTBdMHrbKGeGvElGeblF6+ZX4Fa+iNa9GEj2m5yiwUSF2W5crvCQCX m+zmjigjcaAxM4wcNrRhIKmJvgoYbsPNRUHWIDXNV891uo/Fk2NYzaXAxhuTNaYvLF yyZmfIpy8HoQzxcK/ZaZ097og/HCyaG1sSGWXIOsV+LRI9anmued1VDti8GrvSd8oW Gsq9bsukX7K5RbRImBlwJHTKaHk3wiy4J9rsrpCtNF7RPokAcN6XuaAhyw+5k+xoUZ jU/em0aiktArA== 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.6-stable tree Date: Sat, 28 Feb 2026 20:30:08 -0500 Message-ID: <20260301013008.1688095-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.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 . 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