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 1E180C71135 for ; Mon, 16 Jun 2025 10:05:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 11C6F10E31B; Mon, 16 Jun 2025 10:05:15 +0000 (UTC) Received: from rtg-sunil-navi33.amd.com (unknown [165.204.156.251]) by gabe.freedesktop.org (Postfix) with ESMTPS id 105E110E309; Mon, 16 Jun 2025 10:05:11 +0000 (UTC) Received: from rtg-sunil-navi33.amd.com (localhost [127.0.0.1]) by rtg-sunil-navi33.amd.com (8.15.2/8.15.2/Debian-22ubuntu3) with ESMTP id 55GA54UB1204188; Mon, 16 Jun 2025 15:35:04 +0530 Received: (from sunil@localhost) by rtg-sunil-navi33.amd.com (8.15.2/8.15.2/Submit) id 55GA54G51204187; Mon, 16 Jun 2025 15:35:04 +0530 From: Sunil Khatri To: =?UTF-8?q?Christian=20K=C3=B6nig?= , dri-devel@lists.freedesktop.org Cc: amd-gfx@lists.freedesktop.org, Sunil Khatri Subject: [PATCH v2 0/2] Support for debugfs directory for each client-id in /dri directory Date: Mon, 16 Jun 2025 15:35:01 +0530 Message-Id: <20250616100503.1204166-1-sunil.khatri@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" Add support of debugfs for client-id so information specific to each client could be added by corresponding driver such as page table and queues associted etc. For amdgpu below is the information and data stucture added: ---------------------------------------------------------------------------------------------------------------------------------- root@amd-X570-AORUS-ELITE:/sys/kernel/debug/dri# cat 128/clients command tgid dev master a uid magic name client-id systemd-logind 1049 0 y y 0 0 5 Xwayland 1706 128 n n 120 0 8 mutter-x11-fram 2019 128 n n 120 0 9 ibus-x11 2046 128 n n 120 0 10 root@amd-X570-AORUS-ELITE:/sys/kernel/debug/dri# cat client-5/ 0/ pt_base_info root@amd-X570-AORUS-ELITE:/sys/kernel/debug/dri# cat client-5/pt_base_info pid: 1049 comm: systemd-logind pt_base: 0x81febe9000 root@amd-X570-AORUS-ELITE:/sys/kernel/debug/dri# cat client-8/pt_base_info pid: 1706 comm: Xwayland pt_base: 0x81febdc000 ------------------------------------------------------------------------------------------------------------------------------------- Sunil Khatri (2): drm/debugfs: add client-id to the debugfs entry drm: add debugfs support on per client-id basis drivers/gpu/drm/drm_debugfs.c | 10 ++++++---- drivers/gpu/drm/drm_file.c | 26 ++++++++++++++++++++++++++ include/drm/drm_device.h | 4 ++++ include/drm/drm_file.h | 7 +++++++ 4 files changed, 43 insertions(+), 4 deletions(-) -- 2.34.1