From patchwork Mon Sep 9 06:48:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mary Guillemard X-Patchwork-Id: 13795985 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 B9C45CE7AB0 for ; Mon, 9 Sep 2024 06:48:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2BF4510E2D6; Mon, 9 Sep 2024 06:48:54 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=collabora.com header.i=mary.guillemard@collabora.com header.b="dBNongc4"; dkim-atps=neutral Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9516D10E2D6 for ; Mon, 9 Sep 2024 06:48:52 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1725864527; cv=none; d=zohomail.com; s=zohoarc; b=JBZia3zCnvI6oZy7maTvumeptCtx3i8ydXti9LxynmfCTHu3Z58DrKZzeX5wcekrOo0hVUQZKipnR8QUpVyEoOPLCjlZlFOQCvE/XGhoOblO/hfC/6vaVpsZyXdt9eEB2xZYAST0DBU4y5Qovat/MwpFtHefJNdJSuim6/vadhc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725864527; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=DQqWcutoKL6a0GFhm3Jo0PNfy9O3Da/ndDAvyoZuXPI=; b=ag3KTLZPx3WzeaiyqKa0QB4E4rmIIB685McJs4novmXBlQMSn9T7yow1lDmv2fQB3fumj3jpFIHHrnomrda8cLpDqPxHZ5HuZjWtWRc9eLD4oFnrCm1RQYYiZS8OH/07DFdzyKdjnOxdXyuSMwvYSzUxl5bTNMM0qhrdrvNmjWA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=mary.guillemard@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1725864527; s=zohomail; d=collabora.com; i=mary.guillemard@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=DQqWcutoKL6a0GFhm3Jo0PNfy9O3Da/ndDAvyoZuXPI=; b=dBNongc40i87PBKU77QpWkaSFJLBYmLH3PxLm/nRViSY7inIXLIuQ/sB3Pc8rXCq yj07osxJtphnl3bERHFlmyGykxrHLpyrVkIz6dhqwmhxh5tN+Zy5z6A5jsc/wgwDjLR qRqEl3gzP6Flu2pUnjJSJbFPW0acUe9i3Kr4SLuo= Received: by mx.zohomail.com with SMTPS id 1725864525859560.608359750444; Sun, 8 Sep 2024 23:48:45 -0700 (PDT) From: Mary Guillemard To: linux-kernel@vger.kernel.org Cc: dri-devel@lists.freedesktop.org, Boris Brezillon , Christopher Healy , kernel@collabora.com, Mary Guillemard Subject: [PATCH v3 0/2] drm/panthor: Expose realtime group priority and allowed priorites to userspace Date: Mon, 9 Sep 2024 08:48:19 +0200 Message-ID: <20240909064820.34982-2-mary.guillemard@collabora.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-ZohoMailClient: External 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 adds support for realtime group priority and exposes allowed priorities info with a new dev query. Those changes are required to implement EGL_IMG_context_priority and EGL_NV_context_priority_realtime extensions properly. This patch series assumes that [1] is applied. (found in drm-misc-fixes) The Mesa MR using this series is available here [2]. v2: - Add Steven Price r-b on the first patch - Remove drm_panthor_group_allow_priority_flags definition and document that allowed_mask is a bitmask of drm_panthor_group_priority on the second patch v3: - Use BIT macro in panthor_query_group_priorities_info - Add r-b from Steven Price and Boris Brezillon [1]https://lore.kernel.org/all/20240903144955.144278-2-mary.guillemard@collabora.com/ [2]https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30991 Mary Guillemard (2): drm/panthor: Add PANTHOR_GROUP_PRIORITY_REALTIME group priority drm/panthor: Add DEV_QUERY_GROUP_PRIORITIES_INFO dev query drivers/gpu/drm/panthor/panthor_drv.c | 61 +++++++++++++++++-------- drivers/gpu/drm/panthor/panthor_sched.c | 2 - include/uapi/drm/panthor_drm.h | 29 ++++++++++++ 3 files changed, 71 insertions(+), 21 deletions(-)