mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 11:58:32 -04:00
drm/xe: Make usable size of VRAM readable
Current size member of vram struct does not give complete information as what "size" contains. Does it contain reserved portions or not. Name it usable size and accordingly describe other size members as well. Reviewed-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
9641df8197
commit
e4b2893c17
@@ -188,7 +188,7 @@ static int query_config(struct xe_device *xe, struct drm_xe_device_query *query)
|
||||
config->num_params = num_params;
|
||||
config->info[XE_QUERY_CONFIG_REV_AND_DEVICE_ID] =
|
||||
xe->info.devid | (xe->info.revid << 16);
|
||||
if (xe_device_get_root_tile(xe)->mem.vram.size)
|
||||
if (xe_device_get_root_tile(xe)->mem.vram.usable_size)
|
||||
config->info[XE_QUERY_CONFIG_FLAGS] =
|
||||
XE_QUERY_CONFIG_FLAGS_HAS_VRAM;
|
||||
if (xe->info.enable_guc)
|
||||
|
||||
Reference in New Issue
Block a user