Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D919CCF9F8 for ; Mon, 3 Nov 2025 15:02:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D2C1B10E209; Mon, 3 Nov 2025 15:02:04 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="CqtF9H1a"; dkim-atps=neutral Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9191410E1FF for ; Mon, 3 Nov 2025 15:02:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1762182122; bh=+l8R7qACMN0Y1ot9h+N7aItHecQwG6rW9RotG5PS9Rc=; h=From:To:Cc:Subject:Date:From; b=CqtF9H1ahKvIF3MLT4HDW/PBVmgI3jbMlqp0VPwyJuT84Scjp7r/Hp3o56gYAGnIk a05X9obqkRmmo5Zxuq3a5E7GfreKLVAK1c7LgI2ab4G13U+VgqVbC73vYZ1NtzNbca ePMMrt1yx2JzqHolZ+dtlzC77iQAMYZ1yvUdz6q3CCytqm/r7rPl5TWVHe/D6u+Ill Fetx918H4QY2NbYjYEuNHLMmdzIJQJaMygg8G0LKprcSbIkGQk4/3kVXH8RO8Z+P6J KSx5oG6DL+5YIGCqal5M976ZSllHwkxBZcIXrdaO4jisjs41NVz0P0HD1xPUSoHPf5 4+DERyeshRo+Q== Received: from fedora (unknown [IPv6:2a01:e0a:2c:6930:a2a7:f53:ebb0:945e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bbrezillon) by bali.collaboradmins.com (Postfix) with ESMTPSA id 9D63C17E1340; Mon, 3 Nov 2025 16:02:01 +0100 (CET) From: Boris Brezillon To: Boris Brezillon , Steven Price , Liviu Dudau , =?UTF-8?q?Adri=C3=A1n=20Larumbe?= Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org, Detlev Casanova , Ashley Smith , kernel@collabora.com Subject: [PATCH v6 0/2] drm/panthor: Scheduler fixes for termination failure and timeouts Date: Mon, 3 Nov 2025 16:01:52 +0100 Message-ID: <20251103150154.31056-1-boris.brezillon@collabora.com> X-Mailer: git-send-email 2.51.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This patch series includes previously attempted patches to fix panthor scheduler issues with spurious timeouts and issues when a termination failed which would lead to a race condition. Changes in v6: - Re-order changes - Dropped the Fixes tag on one patch - Cover UAF situation when the timeout work is pending/running at group destruction time Changes in v5: - Swiched to a patch series to make sure the patch which addresses the bug is added as a requirement on the scheduler patch. Changes in v4: - Moved code related to a timeout bug to a separate patch as this was not relevant to this change. Changes in v3: - Moved to a patch series to make sure this bug fix happens before the changes to the scheduler Changes in v2: - Fixed syntax error Ashley Smith (2): drm/panthor: Make the timeout per-queue instead of per-job drm/panthor: Reset queue slots if termination fails drivers/gpu/drm/panthor/panthor_sched.c | 299 +++++++++++++++++------- 1 file changed, 218 insertions(+), 81 deletions(-) -- 2.51.1