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 ACDEBC3ABCA for ; Wed, 7 May 2025 20:14:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1696710E895; Wed, 7 May 2025 20:14:19 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="akQOPhHY"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4FED510E88D for ; Wed, 7 May 2025 20:14:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1746648857; x=1778184857; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ghglEKYlOtyiPG0wT3gnet9bn42QLjpaSJ/jiynxZxw=; b=akQOPhHYGPeurLVqKZcDnSnbRGFiVXctw8XXofzCvT5zMTTsB23+Flqv 4dylGKDEXSdo0IpgiDPJPWYUbi9qXf0GHqQ6SkGdQTzKAf/pgFqo93jqn 2wQrs/TNi8wwbqqMf/9k4alutaf5cYjSyUvrLLmWhosNnSZESdh2Dede9 5e2CaBuRUWr/Lo1GwRZd5e0I2Z++x5CeBKWVHS8zzPnOmUmtYbbIMFkug vq7Mt9u7tQWNbfIbl5HS70QoVI4LV6NhFsachvJrVgftuWfyk0n87PoHQ se8VKjBog8krIE4OZeINijrhOAqcNt4lzHmzt3Ps2gy4tVgd6/efKi7Te g==; X-CSE-ConnectionGUID: we8OId50TXKOyWo/DHoSRA== X-CSE-MsgGUID: w0cJcx+2RuuuZIWo2zvSkg== X-IronPort-AV: E=McAfee;i="6700,10204,11426"; a="65935090" X-IronPort-AV: E=Sophos;i="6.15,270,1739865600"; d="scan'208";a="65935090" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2025 13:14:17 -0700 X-CSE-ConnectionGUID: q7iKkD8VSb27ncbYmvHWyA== X-CSE-MsgGUID: 8iuJ1lfzRkeQMt1fq0ow9g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,270,1739865600"; d="scan'208";a="136571023" Received: from lstrano-desk.jf.intel.com ([10.54.39.91]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2025 13:14:17 -0700 From: Matthew Brost To: intel-xe@lists.freedesktop.org Cc: jose.souza@intel.com, carlos.santa@intel.com, sushma.venkatesh.reddy@intel.com Subject: [PATCH v4 7/9] drm/xe/uapi: Add DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATE Date: Wed, 7 May 2025 13:15:37 -0700 Message-Id: <20250507201539.1316770-8-matthew.brost@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250507201539.1316770-1-matthew.brost@intel.com> References: <20250507201539.1316770-1-matthew.brost@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Add DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATE which accepts a user pointer to populate the exec queue state so that a GPU hang can be replayed via a Mesa tool. v2: Update the value for HANG_REPLAY_STATE flag Cc: José Roberto de Souza Signed-off-by: Matthew Brost Signed-off-by: Carlos Santa --- include/uapi/drm/xe_drm.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h index 9c08738c3b91..a44a82e03ecc 100644 --- a/include/uapi/drm/xe_drm.h +++ b/include/uapi/drm/xe_drm.h @@ -204,8 +204,12 @@ struct drm_xe_ext_set_property { /** @pad: MBZ */ __u32 pad; - /** @value: property value */ - __u64 value; + union { + /** @value: property value */ + __u64 value; + /** @ptr: pointer to user value */ + __u64 ptr; + }; /** @reserved: Reserved */ __u64 reserved[2]; @@ -1253,6 +1257,7 @@ struct drm_xe_exec_queue_create { #define DRM_XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY 0 #define DRM_XE_EXEC_QUEUE_SET_PROPERTY_TIMESLICE 1 #define DRM_XE_EXEC_QUEUE_SET_PROPERTY_PXP_TYPE 2 +#define DRM_XE_EXEC_QUEUE_SET_HANG_REPLAY_STATE 3 /** @extensions: Pointer to the first extension struct, if any */ __u64 extensions; -- 2.34.1