mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -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
@@ -101,7 +101,7 @@ static int tile_ttm_mgr_init(struct xe_tile *tile)
|
||||
struct xe_device *xe = tile_to_xe(tile);
|
||||
int err;
|
||||
|
||||
if (tile->mem.vram.size) {
|
||||
if (tile->mem.vram.usable_size) {
|
||||
err = xe_ttm_vram_mgr_init(tile, tile->mem.vram_mgr);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user