aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorBrian Welty <[email protected]>2023-09-25 17:12:48 -0700
committerRodrigo Vivi <[email protected]>2023-12-21 11:43:32 -0500
commitfd0975b7cfee7d3e6db6771193b0cff230b7eec8 (patch)
tree6a8a7092efab9775eb43a436d2091694f5d7d0f8 /tools/perf/scripts/python/exported-sql-viewer.py
parent4e11a1411ab41416be7f29716a767eb135f7aa74 (diff)
drm/xe: Replace usage of mem_type_to_tile
Currently mem_type_to_tile() is being used to access the tile's underlying tile.mem.vram. However, this function makes the assumption that a mem_type will only ever map to a single tile. Now that the TTM vram manager contains a pointer to the memory_region, make use of this in xe_bo.c. As such, introduce a helper function res_to_mem_region() to get the ttm_vram_mgr->vram from the BO's resource, and use this to replace usage of mem_type_to_tile(). xe_tile is still needed to choose the migration context, so this part is unchanged. But as this is only renaming usage, function is renamed now to mem_type_to_migrate(). Signed-off-by: Brian Welty <[email protected]> Reviewed-by: Matthew Brost <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions