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 19452C4167B for ; Thu, 9 Nov 2023 15:45:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7484010E8E8; Thu, 9 Nov 2023 15:45:51 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9F36410E8DC for ; Thu, 9 Nov 2023 15:45: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=1699544718; x=1731080718; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=z9CD+AdslqH5BUe8OvK8wUdkSiIqpVvoqmJqsEtTgUQ=; b=Mkeg36dixXXK14G3I9iEy2f2xkP4JiwgMGZbUHG/r6yUk70sNQyj6PQm +G+kgOR8rI5IrcV7twNN3Ccy9cScmI5e8rDeM6eNTQmxnb8b8s2uDDO4K rawZ54vgDFDZ+WY8SdVhoaUjjNbFdtGikzr/KRqDDO/tC5Xlwjsh6ifn2 9Xh/pA1I9s3lCCSFGNCV7CxA7p4SV4jOOco0cX+ihOod4HxHb5L/xxvUN 0MSS9UtslPFJWducUIHAFELJN1BZ4ApNgTbfXFvDaJS5O54q7XgzzVaR8 frSDJRkruxMWtTeEKcfMb2Pvx5aUJrF5j1rPXXS+9aWez42o0ch+7Z2SV w==; X-IronPort-AV: E=McAfee;i="6600,9927,10889"; a="11556630" X-IronPort-AV: E=Sophos;i="6.03,289,1694761200"; d="scan'208";a="11556630" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2023 07:45:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10889"; a="936885972" X-IronPort-AV: E=Sophos;i="6.03,289,1694761200"; d="scan'208";a="936885972" Received: from hschreib-mobl.ger.corp.intel.com (HELO ac699de916ef.intel.com) ([10.249.42.184]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2023 07:45:16 -0800 From: Francois Dugast To: intel-xe@lists.freedesktop.org Date: Thu, 9 Nov 2023 15:44:18 +0000 Message-Id: <20231109154457.7-5-francois.dugast@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231109154457.7-1-francois.dugast@intel.com> References: <20231109154457.7-1-francois.dugast@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v3 04/43] drm/xe/uapi: Document DRM_XE_DEVICE_QUERY_HWCONFIG 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: , Cc: Francois Dugast Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Add a documentation on the content and format of when using query type DRM_XE_DEVICE_QUERY_HWCONFIG. The list of keys can be found in IGT under lib/intel_hwconfig_types.h. Signed-off-by: Francois Dugast --- include/uapi/drm/xe_drm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h index 169ae928802b..68cf67461846 100644 --- a/include/uapi/drm/xe_drm.h +++ b/include/uapi/drm/xe_drm.h @@ -557,6 +557,11 @@ struct drm_xe_device_query { #define DRM_XE_DEVICE_QUERY_MEM_USAGE 1 #define DRM_XE_DEVICE_QUERY_CONFIG 2 #define DRM_XE_DEVICE_QUERY_GT_LIST 3 + /* + * Query type to retrieve the hardware configuration of the device + * such as information on slices, memory, caches, and so on. It is + * provided as a table of attributes (key / value). + */ #define DRM_XE_DEVICE_QUERY_HWCONFIG 4 #define DRM_XE_DEVICE_QUERY_GT_TOPOLOGY 5 #define DRM_XE_DEVICE_QUERY_ENGINE_CYCLES 6 -- 2.34.1