From patchwork Fri Sep 27 08:48:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Eric Pelloux-Prayer X-Patchwork-Id: 13814027 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 9F02ECEBF8A for ; Fri, 27 Sep 2024 08:49:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3C9DC10EC89; Fri, 27 Sep 2024 08:49:39 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="OHvuZm56"; dkim-atps=neutral Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2079.outbound.protection.outlook.com [40.107.237.79]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1BCF910EC85; Fri, 27 Sep 2024 08:49:37 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s93YhI9IIzFtAM9l343HzdxZXbjQFvAew9+gNJQrh2YGSxFa7Y/FzKGujriHZ0pdQOEXITZE9cOz//PXpmbI34o9XR4p6tHYOm9D2jIL7hpmF2gEbJ2Xsgi6YpwcvnWqH3qOcNDcCgH+FvoW8BHQUjX2wP0eI2iK6V8BRWrtyKocxTkWwU3Voq9SHmQRzFS+w1e22qZBNriIgJYr85LrSc+EaErtyoNOpgS3/xJlbDUCtqcW5uSGKrKkMogZPtjl0JoYJhx8rEjaxLdlnVujwx944adjzI9yIPXEiBIw9doQFExw2HVrSnRiwstEgIQQLfs3LB0/RwFihzzgmYETyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3S4zsYoCD8TZh/MYx20NQt1gNoxKnrhby8jT4Rdz91s=; b=fCroL1mmFyzFxbQe9OLDPUS0q7MTSP1KPM0P7OwDUBr91vefnUkbjutWD/aii4z0GzmibO1jjD+t0IBkwUVSJzyGXeKw2RGUEGx+Oy2KFkno5V9+vHNCggSKpvqUIw9vliUzIClb9DJWKX169DIi58Bebx89w5k3RRwJuWO6FFuB810vQF3vUTAGMnIWiUk5n20y5j1npUz8OrGQbqjGK8F/BRJjo+NaGdbCke2MQMWz5qnRdYbe4wltrmvMA5Hbo6UAdizAoZFPcanTlb9j/tBZUAnzR8LBuEP22J1D4bmdoLytC+NUrdmCYT7fLuZFyArLlqirGNFr9+dvBdKfWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3S4zsYoCD8TZh/MYx20NQt1gNoxKnrhby8jT4Rdz91s=; b=OHvuZm56+6Xeo7k9pZG/k5uItv7W2ZAMPf1qNNYUxpdQSoU2UhPn1SJbZRzJfdksSorDiNlXsEI7Q88+INt8GPhWM/wqW+3LHtDnAXRB/WbW0TGPz5tsMsocrUhjN7Nvjl7c7lTdzDHgxiyGmrxpt4S52KAc1aIYhIZ/0HgaqQY= Received: from BL1PR13CA0143.namprd13.prod.outlook.com (2603:10b6:208:2bb::28) by SJ2PR12MB8941.namprd12.prod.outlook.com (2603:10b6:a03:542::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.21; Fri, 27 Sep 2024 08:49:30 +0000 Received: from BL6PEPF0001AB56.namprd02.prod.outlook.com (2603:10b6:208:2bb:cafe::d2) by BL1PR13CA0143.outlook.office365.com (2603:10b6:208:2bb::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.17 via Frontend Transport; Fri, 27 Sep 2024 08:49:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL6PEPF0001AB56.mail.protection.outlook.com (10.167.241.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8005.15 via Frontend Transport; Fri, 27 Sep 2024 08:49:29 +0000 Received: from patedamande.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 27 Sep 2024 03:49:27 -0500 From: Pierre-Eric Pelloux-Prayer To: , , , , , , , CC: Pierre-Eric Pelloux-Prayer Subject: [PATCH v4 0/6] DRM_SET_CLIENT_NAME ioctl Date: Fri, 27 Sep 2024 10:48:36 +0200 Message-ID: <20240927084848.263718-1-pierre-eric.pelloux-prayer@amd.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB56:EE_|SJ2PR12MB8941:EE_ X-MS-Office365-Filtering-Correlation-Id: 646cf9d9-ee65-40ab-0e64-08dcded14ce0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?z9NgwLJcCvIh7Vzvg8PNQSUZ5jfU44i?= =?utf-8?q?Mvpu5KjY9hV3Z/WTLnB5pWHiHWagAh1bfNvKWjl3tLROz+gRmFUJ5KnfjMSagD0AB?= =?utf-8?q?eTPNSKyj+vfRpM8bt2hOe3KGtSfUSw1IrmtElmwAVHoGXsvrcF/i923HeleZfXKq7?= =?utf-8?q?BgGz0imvZMXAchTVS3qNJzqi2xj/s1z4o+PuFVQza8US8e+6ujqzTlYkyEP9iAc53?= =?utf-8?q?CXqsJ/2Ex4tsZzudH1JMRPYwIxWEcSSHIOhASMeomVS8Xl3XfC1v1bkITnNWsC65D?= =?utf-8?q?os58iZwtw8ZW3wwTivAKRSpJ0X4k98svq7ePUv710A0KbMgfL1KC+YIMjTNw9l44G?= =?utf-8?q?USyKUUOpyROZ1+s8fk6IaJ+IOimKt4emmn7wQESRzKizxjFH+1v4e1CX478wHy7kf?= =?utf-8?q?I0lVB7AD2ceRGfqfVixc3OADWWrkSd/ityS9Q0Mr4uAgCwcUYCSEx1J8hIlhIQ/1W?= =?utf-8?q?Qx1W9y5UqllQAyhuTYYSUTQjT5UTTQ5n5ClEtDusihfdzMSOovpeh70R3GPH+yiPW?= =?utf-8?q?uARcHy4gmV9xWXPSt+HO5nVP32YsYf8671DQuleEQy49jaVLEcM2FSwqJkKKxrc4d?= =?utf-8?q?Bc0ihXiLeEtKjpz4DFk+nUIoIECpo6Cs/kQPFqgOCE+sOZih+nqaAi+V/U8pnMXyW?= =?utf-8?q?kAjamTCC8bIi3mafnJgCkRCSHpg+QAQmdMHRmH2EVgbDQJU1dQZarJjlgWU6HEhFt?= =?utf-8?q?93p2w/Mz+rSe4nwdf47bBDYGd2rlNFA5VWYhk43ArKEmYqfv2jqddh8kDTeY7EG/A?= =?utf-8?q?73MbB5fPvzrAp/MpcvbxEXVJZB7kr2DT+6Hp/VM3Y5Bl9yX+KFXC7R2P0K0UeQTSf?= =?utf-8?q?JsvQUgq81F74z30Bjtq+m0Xw1kHtcVO85FlFzg+wIYxg8bMDWzr8Cm6lRVIJArg4C?= =?utf-8?q?7p0oKsdslfS0ociNk9HIP9KW/8O9Wn25RQHwdo+Icqv1G2SnQzxAq9iih/8wqVhqn?= =?utf-8?q?CWb0t2ZzPvj+MjTxvw8p7y5UtR3md622sW8yOJVQPOlzkKazwoh6zmZFqR/NyUOa0?= =?utf-8?q?2JVPFTgjHwnYfhVbusS/zSK0NEYOUfv77iRfv3C9V8YsOr5mjGG2nJiyiRDKfeXFl?= =?utf-8?q?J56QjQht9iaz08AJWkZPuUHSJulO4/bQ3QEM0e6jFyrGxthidgq4of80NlfN6IEau?= =?utf-8?q?i2SPozchvHI8YkYHu8Te9BWRCLwaw4IjC1LVQkXoRFi6+vF9qrTwyAmrw9hnds9Y9?= =?utf-8?q?y+GJXt7FGs3SvJ2kM9gZALQwQBsbHt2QULRAeRMma24l/w+rOf+KigZpaBpS1Qnhc?= =?utf-8?q?RBLPumUU2k1WfHXISmWQyhBOsyYkEEHxjcIOsnxtS+4PGts2toUBLd0hN1bu50Bai?= =?utf-8?q?dZY8R4h3WD1J?= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(1800799024)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2024 08:49:29.8269 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 646cf9d9-ee65-40ab-0e64-08dcded14ce0 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB56.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8941 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" v4 changelog: * DRM_SET_NAME -> DRM_SET_CLIENT_NAME (Dmitry) * reject names that would mess up with formatting (Sima), and use a stricter filter (isgraph allowed extended ASCII which weren't looking great) * documentation edits, minor fixups (Dmitry, Trvtko) * clarified commit message of commit 3/6 (Trvtko) * reworked amdgpu_vm_set_task_info a bit in 4/6 (Trvtko) v3: https://lists.freedesktop.org/archives/dri-devel/2024-September/470488.html Pierre-Eric Pelloux-Prayer (6): drm: add DRM_SET_CLIENT_NAME ioctl drm: use drm_file client_name in fdinfo drm/amdgpu: delay the use of amdgpu_vm_set_task_info drm/amdgpu: alloc and init vm::task_info from first submit drm/amdgpu: make process_name a flexible array drm/amdgpu: use drm_file::name in task_info::process_desc Documentation/gpu/drm-usage-stats.rst | 5 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 1 + .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 +- .../gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 4 +- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 62 +++++++++++++------ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 4 +- drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 2 +- drivers/gpu/drm/amd/amdkfd/kfd_events.c | 2 +- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 3 + drivers/gpu/drm/drm_debugfs.c | 14 +++-- drivers/gpu/drm/drm_file.c | 10 +++ drivers/gpu/drm/drm_ioctl.c | 55 ++++++++++++++++ include/drm/drm_file.h | 9 +++ include/uapi/drm/drm.h | 17 +++++ 23 files changed, 171 insertions(+), 42 deletions(-)