All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH 1/1] drm/xe: Report tile count from device query api.
@ 2023-06-06  9:49 Himal Prasad Ghimiray
  2023-06-06  9:53 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [1/1] " Patchwork
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Himal Prasad Ghimiray @ 2023-06-06  9:49 UTC (permalink / raw)
  To: intel-xe; +Cc: Matt Roper

Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>

Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
---
 drivers/gpu/drm/xe/xe_query.c | 1 +
 include/uapi/drm/xe_drm.h     | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c
index c4165fa3428e..54efbefd663f 100644
--- a/drivers/gpu/drm/xe/xe_query.c
+++ b/drivers/gpu/drm/xe/xe_query.c
@@ -197,6 +197,7 @@ static int query_config(struct xe_device *xe, struct drm_xe_device_query *query)
 		hweight_long(xe->info.mem_region_mask);
 	config->info[XE_QUERY_CONFIG_MAX_ENGINE_PRIORITY] =
 		xe_engine_device_get_max_priority(xe);
+	config->info[XE_QUERY_CONFIG_TILE_COUNT] = xe->info.tile_count;
 
 	if (copy_to_user(query_ptr, config, size)) {
 		kfree(config);
diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
index 0ebc50beb5e5..8e552aa55037 100644
--- a/include/uapi/drm/xe_drm.h
+++ b/include/uapi/drm/xe_drm.h
@@ -185,7 +185,8 @@ struct drm_xe_query_config {
 #define XE_QUERY_CONFIG_GT_COUNT		4
 #define XE_QUERY_CONFIG_MEM_REGION_COUNT	5
 #define XE_QUERY_CONFIG_MAX_ENGINE_PRIORITY	6
-#define XE_QUERY_CONFIG_NUM_PARAM		XE_QUERY_CONFIG_MAX_ENGINE_PRIORITY + 1
+#define XE_QUERY_CONFIG_TILE_COUNT		7
+#define XE_QUERY_CONFIG_NUM_PARAM		XE_QUERY_CONFIG_TILE_COUNT + 1
 	__u64 info[];
 };
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-06-13  8:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-06  9:49 [Intel-xe] [PATCH 1/1] drm/xe: Report tile count from device query api Himal Prasad Ghimiray
2023-06-06  9:53 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [1/1] " Patchwork
2023-06-06  9:53 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-06-06  9:54 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-06-06  9:58 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-06-06  9:58 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-06-06  9:59 ` [Intel-xe] ✓ CI.checksparse: " Patchwork
2023-06-06 10:26 ` [Intel-xe] ○ CI.BAT: info " Patchwork
2023-06-06 19:55 ` [Intel-xe] [PATCH 1/1] " Matt Roper
2023-06-07  4:49   ` Ghimiray, Himal Prasad
2023-06-07 18:31     ` Matt Roper
2023-06-07 19:17       ` Dixit, Ashutosh
2023-06-07 19:27         ` Souza, Jose
2023-06-13  8:37         ` Ghimiray, Himal Prasad

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.