diff options
author | Rodrigo Vivi <[email protected]> | 2023-08-30 17:47:15 -0400 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2023-12-21 11:41:06 -0500 |
commit | 9e6fe003d8c7e35bcd93f0a962b8fdc8889db35b (patch) | |
tree | 1c9a919bedc446e3df317a9d0c568f66d8bab5f2 | |
parent | 2793fac1dbe068da5965acd9a78a181b33ad469b (diff) |
drm/xe/uapi: Remove useless max_page_size
The min_page_size is useful information to ensure alignment and it is
an API actually in use. However max_page_size doesn't bring any useful
information to the userspace hence being not used at all.
So, let's remove and only bring it back if that ever gets used.
Suggested-by: Thomas Hellström <[email protected]>
Cc: Thomas Hellström <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Reviewed-by: Francois Dugast <[email protected]>
-rw-r--r-- | drivers/gpu/drm/xe/xe_query.c | 3 | ||||
-rw-r--r-- | include/uapi/drm/xe_drm.h | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c index c3d396904c7b..a951205100fe 100644 --- a/drivers/gpu/drm/xe/xe_query.c +++ b/drivers/gpu/drm/xe/xe_query.c @@ -127,7 +127,6 @@ static int query_memory_usage(struct xe_device *xe, usage->regions[0].mem_class = XE_MEM_REGION_CLASS_SYSMEM; usage->regions[0].instance = 0; usage->regions[0].min_page_size = PAGE_SIZE; - usage->regions[0].max_page_size = PAGE_SIZE; usage->regions[0].total_size = man->size << PAGE_SHIFT; if (perfmon_capable()) usage->regions[0].used = ttm_resource_manager_usage(man); @@ -143,8 +142,6 @@ static int query_memory_usage(struct xe_device *xe, usage->regions[usage->num_regions].min_page_size = xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K ? SZ_64K : PAGE_SIZE; - usage->regions[usage->num_regions].max_page_size = - SZ_1G; usage->regions[usage->num_regions].total_size = man->size; diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h index 902b5c4f3f5c..00d5cb4ef85e 100644 --- a/include/uapi/drm/xe_drm.h +++ b/include/uapi/drm/xe_drm.h @@ -175,10 +175,6 @@ struct drm_xe_query_mem_region { */ __u32 min_page_size; /** - * @max_page_size: Max page-size in bytes for this region. - */ - __u32 max_page_size; - /** * @total_size: The usable size in bytes for this region. */ __u64 total_size; |