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 CE7B7C4167D for ; Thu, 9 Nov 2023 15:46:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D8E2210E8F7; Thu, 9 Nov 2023 15:46:43 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id E33E210E8E0 for ; Thu, 9 Nov 2023 15:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699544768; x=1731080768; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3u2liJHIvAK9A6CkVb67PtkHl6c2jgepLEJ6qOCbk7Y=; b=hpRB5f6PVQgl8gr/BW6ve0xGPQP46K5y1f/VRAundeZXSY8S4qvkXCMf cVArsIxvuFRlJUCYWR+pVdVyXzY7aOAkg9iQsomrWiQme5B9S22Qth09u RP9D+IpvBhC7RxkAtN3Fr+uX8et0KIuPUWkfmnwkMAUHRvYJqu8ZlyDtD Qqo+i92ISc7JMtWD/pabKmlxTJwtytwoBDOs6cRUxP5dUiGa/m4OVkbr+ t8dTIs6k4CF26r/92j+fKowunWFmu4s2LZr1l4mALybOiV3MnocBr7GAt 7fHriPa5JpWH83DX/fiAtk7s7ZkodrBpX/yPeZgcgPFJd5RtEYy4O/DP3 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10889"; a="11556711" X-IronPort-AV: E=Sophos;i="6.03,289,1694761200"; d="scan'208";a="11556711" 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:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10889"; a="936886014" X-IronPort-AV: E=Sophos;i="6.03,289,1694761200"; d="scan'208";a="936886014" 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:31 -0800 From: Francois Dugast To: intel-xe@lists.freedesktop.org Date: Thu, 9 Nov 2023 15:44:30 +0000 Message-Id: <20231109154457.7-17-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 16/43] drm/xe/uapi: Remove unused QUERY_CONFIG_GT_COUNT 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" As part of uAPI cleanup, remove this constant which is not used. Number of GTs are provided as num_gt in drm_xe_query_gt_list. Signed-off-by: Francois Dugast --- drivers/gpu/drm/xe/xe_query.c | 1 - include/uapi/drm/xe_drm.h | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c index 63321f8f1b9b..8c31c02ac2d7 100644 --- a/drivers/gpu/drm/xe/xe_query.c +++ b/drivers/gpu/drm/xe/xe_query.c @@ -336,7 +336,6 @@ static int query_config(struct xe_device *xe, struct drm_xe_device_query *query) config->info[DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT] = xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : SZ_4K; config->info[DRM_XE_QUERY_CONFIG_VA_BITS] = xe->info.va_bits; - config->info[DRM_XE_QUERY_CONFIG_GT_COUNT] = xe->info.gt_count; config->info[DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY] = xe_exec_queue_device_get_max_priority(xe); diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h index 0073d660698b..9cb7dfd129eb 100644 --- a/include/uapi/drm/xe_drm.h +++ b/include/uapi/drm/xe_drm.h @@ -340,8 +340,6 @@ struct drm_xe_query_mem_usage { * - %DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT - Minimal memory alignment * required by this device, typically SZ_4K or SZ_64K * - %DRM_XE_QUERY_CONFIG_VA_BITS - Maximum bits of a virtual address - * - %DRM_XE_QUERY_CONFIG_GT_COUNT - Total number of GTs for the entire - * device * - %DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY - Value of the highest * available exec queue priority */ @@ -357,8 +355,7 @@ struct drm_xe_query_config { #define DRM_XE_QUERY_CONFIG_FLAGS_HAS_VRAM (0x1 << 0) #define DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT 2 #define DRM_XE_QUERY_CONFIG_VA_BITS 3 -#define DRM_XE_QUERY_CONFIG_GT_COUNT 4 -#define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY 5 +#define DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY 4 /** @info: array of elements containing the config info */ __u64 info[]; }; -- 2.34.1