From patchwork Mon Oct 28 11:48:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 13853332 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 E06E4D13596 for ; Mon, 28 Oct 2024 11:48:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B1C9C10E36B; Mon, 28 Oct 2024 11:48:20 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="h6jF0L4v"; dkim-atps=neutral Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) by gabe.freedesktop.org (Postfix) with ESMTPS id E603110E36B for ; Mon, 28 Oct 2024 11:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1730116097; bh=rtzWl0DqUOxZtMFod1NvwFkwb1mOHuMP4rMK2gTEJdc=; h=From:To:Cc:Subject:Date:From; b=h6jF0L4vRz0KBK/6v0si1JCx8IT/ic4VTlKzaWJaP3HisDX7rpRb/WeiEJjCRRusi Ttkp65geur/EsmIvFnEUCPl9OC5GFRX12cGpnXFrNkDWCaE/co2/C9lN/uS7MgY2MT H5OYYmPH+Drf4Q777etOOboH0BCElONGwFn8iRkoC7diTIWsLDeRC8RKOR5Fxr6Z7b 1l7ZysfWwLzlOmpnURX2Nvobzc9FIJBNqHcKfaJSdRCUeI9TbeYESrYI1vjalUM0Px r9Vk86PTZErKBrv+weBEariYCXPfzPZiTGTbXJtWb/b9J3dDlbQLCcw0l60hxZHi5f BUvPq9Ic7zFXg== Received: from localhost.localdomain (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (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 4D00217E14FB; Mon, 28 Oct 2024 12:48:17 +0100 (CET) From: Boris Brezillon To: Boris Brezillon , Steven Price , Liviu Dudau , =?utf-8?q?Adri=C3=A1n_Larumbe?= Cc: Christopher Healy , dri-devel@lists.freedesktop.org, kernel@collabora.com Subject: [PATCH v2 0/3] drm/panthor: Fix group state reporting Date: Mon, 28 Oct 2024 12:48:12 +0100 Message-ID: <20241028114815.3793855-1-boris.brezillon@collabora.com> X-Mailer: git-send-email 2.46.2 MIME-Version: 1.0 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" Hello, What initially started as a simple fix to avoid queueing jobs to a group that can't be scheduled has turned into a series of three patches improving the group state reporting. Two of them are actual fixes, the last one is an improvement to properly report innocence/guiltiness of a group when a group becomes unusable. With this new GROUP_STATE_INNOCENT, we can distinguish between GL_INNOCENT_CONTEXT_RESET and GL_GUILT_CONTEXT_RESET (see this mesa MR for more details [1]). Regards, Boris [1]https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31868 Boris Brezillon (3): drm/panthor: Fail job creation when the group is dead drm/panthor: Report group as timedout when we fail to properly suspend drm/panthor: Report innocent group kill drivers/gpu/drm/panthor/panthor_drv.c | 2 +- drivers/gpu/drm/panthor/panthor_sched.c | 36 ++++++++++++++++++++++--- include/uapi/drm/panthor_drm.h | 9 +++++++ 3 files changed, 42 insertions(+), 5 deletions(-)