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 33633CD6E74 for ; Wed, 11 Oct 2023 13:59:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B47810E85A; Wed, 11 Oct 2023 13:59:50 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1135910E50D for ; Wed, 11 Oct 2023 13:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697032783; x=1728568783; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cQ5vZWM6pu9kUaUKkQqP9n447K71urTMgwTIokEYeIU=; b=lfQL3Rp9RnlsRbZcQu8Zl780JJ3AwQWhHg/YpKrWmiSUfec+7NCU/5TV +IGUhIt7nz9VXC/CE0WTio/ofpbmWQVGT3MG3V2N6sK1rXTxZKSRK6VZm rc4gRZb2ENx1eq6FlCITfTcgQGjbErcYFmyuqMtxuG5i28J+lQGiW5RfW ZhgVeoSL5m/ju8Ocz7H6AO9tYCy3nxky9chd/5LPT5tBwurZt325nK8O0 6Uwp9wzvs7mcWDJyUXkNWzDUIWTpwHxBRz0DGJ1oXU4O1yRoeRkfVoZ6H l8eYZoDgcU/FnfGZkPd9jbj3zCTMRby6EzJDf1g/yoToLgr/DGNaPlESs g==; X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="451156221" X-IronPort-AV: E=Sophos;i="6.03,216,1694761200"; d="scan'208";a="451156221" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 06:59:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="753829018" X-IronPort-AV: E=Sophos;i="6.03,216,1694761200"; d="scan'208";a="753829018" Received: from stahadie-mobl4.amr.corp.intel.com (HELO localhost.localdomain) ([10.249.36.91]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 06:59:41 -0700 From: Francois Dugast To: intel-xe@lists.freedesktop.org Date: Wed, 11 Oct 2023 13:59:14 +0000 Message-Id: <20231011135926.7-6-francois.dugast@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231011135926.7-1-francois.dugast@intel.com> References: <20231011135926.7-1-francois.dugast@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [RFC v1 05/17] 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 f7ca52aba79b..e091dcf75b88 100644 --- a/include/uapi/drm/xe_drm.h +++ b/include/uapi/drm/xe_drm.h @@ -545,6 +545,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