From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8C2D610E152 for ; Tue, 8 Aug 2023 01:00:23 +0000 (UTC) From: Ashutosh Dixit To: igt-dev@lists.freedesktop.org Date: Mon, 7 Aug 2023 17:59:59 -0700 Message-ID: <20230808010017.37819-3-ashutosh.dixit@intel.com> In-Reply-To: <20230808010017.37819-1-ashutosh.dixit@intel.com> References: <20230808010017.37819-1-ashutosh.dixit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 02/20] lib/xe/xe_query: Add xe_gts interface List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Add support to get XE gt info from xe_device. Signed-off-by: Ashutosh Dixit --- lib/xe/xe_query.c | 8 ++++++++ lib/xe/xe_query.h | 1 + 2 files changed, 9 insertions(+) diff --git a/lib/xe/xe_query.c b/lib/xe/xe_query.c index 8963c7b06b6b..01db3aef79f9 100644 --- a/lib/xe/xe_query.c +++ b/lib/xe/xe_query.c @@ -576,6 +576,14 @@ uint32_t xe_min_page_size(int fd, uint64_t region) */ xe_dev_FN(xe_config, config, struct drm_xe_query_config *); +/** + * xe_gts: + * @fd: xe device fd + * + * Returns query gts of xe device @fd. + */ +xe_dev_FN(xe_gts, gts, struct drm_xe_query_gts *); + /** * xe_number_hw_engine: * @fd: xe device fd diff --git a/lib/xe/xe_query.h b/lib/xe/xe_query.h index 1b74c58ab823..e524f240c9d0 100644 --- a/lib/xe/xe_query.h +++ b/lib/xe/xe_query.h @@ -93,6 +93,7 @@ const char *xe_region_name(uint64_t region); uint16_t xe_region_class(int fd, uint64_t region); uint32_t xe_min_page_size(int fd, uint64_t region); struct drm_xe_query_config *xe_config(int fd); +struct drm_xe_query_gts *xe_gts(int fd); unsigned int xe_number_hw_engines(int fd); bool xe_has_vram(int fd); uint64_t xe_vram_size(int fd, int gt); -- 2.41.0