From patchwork Tue Oct 29 15:29:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 13855105 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 4A9DED3A66B for ; Tue, 29 Oct 2024 15:29:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B00A710E683; Tue, 29 Oct 2024 15:29:16 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="ot+aGWud"; dkim-atps=neutral Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) by gabe.freedesktop.org (Postfix) with ESMTPS id 481A310E683 for ; Tue, 29 Oct 2024 15:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1730215754; bh=HZQ2TfhnzrR1CxYGaT/GzPDL6RTK0RzX9hKCNr4z6/c=; h=From:To:Cc:Subject:Date:From; b=ot+aGWudfgv9mtn/TNcmmYqDljEOX+5CfdZwhXcm6/pR8A5Kf63hoMtUt1v88p+sD Yq7VF5fEEeMZ0BzX2SENrfSStH/qbg/EDr6mPEoObkHrMh6FlPIuluBgzqOkYdoRx5 M56LncFrZvICgZmVBXOhjZNSaj86ISdlwN9wnYUElqQuDvw0ehwPSzbEZGZ91QfS9y 74hK1GDxv8yLSbSpTwhWeZHcu8PXwVIJqnlP/Hz8NeykAZavzhZZAFDHNdsQWS5uYQ VP9OGbBq2Mgu0XacC2MUiwhNHUZo7uJmAi7Ugz8UnhfoTQG31tk8pQhjrCFvmVFRKj dF9KJtwvWaYBA== 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 B4E4517E363B; Tue, 29 Oct 2024 16:29:13 +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 v3 0/3] drm/panthor: Fix group state reporting Date: Tue, 29 Oct 2024 16:29:09 +0100 Message-ID: <20241029152912.270346-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 | 38 ++++++++++++++++++++++--- include/uapi/drm/panthor_drm.h | 9 ++++++ 3 files changed, 44 insertions(+), 5 deletions(-)