diff options
author | Tejas Upadhyay <tejas.upadhyay@intel.com> | 2023-06-28 09:23:16 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:35:06 +0300 |
commit | e4b2893c17048aecb195553b60631fcb07360c4e (patch) | |
tree | 13150d6408e1fc76eddc535c20339c495e4d3141 /drivers/gpu/drm/xe/xe_device_types.h | |
parent | 9641df819772662429721f4b14141308fcf2d667 (diff) | |
download | linux-e4b2893c17048aecb195553b60631fcb07360c4e.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_device_types.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_device_types.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h index c404d250e453..db08d64abce1 100644 --- a/drivers/gpu/drm/xe/xe_device_types.h +++ b/drivers/gpu/drm/xe/xe_device_types.h @@ -122,11 +122,18 @@ struct xe_tile { resource_size_t io_size; /** @base: offset of VRAM starting base */ resource_size_t base; - /** @size: size of VRAM. */ - resource_size_t size; + /** + * @usable_size: usable size of VRAM + * + * Usable size of VRAM excluding reserved portions + * (e.g stolen mem) + */ + resource_size_t usable_size; /** * @actual_physical_size: Actual VRAM size - * including stolen mem for tile + * + * Actual VRAM size including reserved portions + * (e.g stolen mem) */ resource_size_t actual_physical_size; /** @mapping: pointer to VRAM mappable space */ |