Skip to content

Commit dac6522

Browse files
YiPeng Chaialexdeucher
authored andcommitted
drm/amdgpu: change reserved vram info print
The link object of mgr->reserved_pages is the blocks variable in struct amdgpu_vram_reservation, not the link variable in struct drm_buddy_block. Signed-off-by: YiPeng Chai <[email protected]> Reviewed-by: Arunpravin Paneer Selvam <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent b447b07 commit dac6522

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ static void amdgpu_vram_mgr_debug(struct ttm_resource_manager *man,
800800
{
801801
struct amdgpu_vram_mgr *mgr = to_vram_mgr(man);
802802
struct drm_buddy *mm = &mgr->mm;
803-
struct drm_buddy_block *block;
803+
struct amdgpu_vram_reservation *rsv;
804804

805805
drm_printf(printer, " vis usage:%llu\n",
806806
amdgpu_vram_mgr_vis_usage(mgr));
@@ -812,8 +812,9 @@ static void amdgpu_vram_mgr_debug(struct ttm_resource_manager *man,
812812
drm_buddy_print(mm, printer);
813813

814814
drm_printf(printer, "reserved:\n");
815-
list_for_each_entry(block, &mgr->reserved_pages, link)
816-
drm_buddy_block_print(mm, block, printer);
815+
list_for_each_entry(rsv, &mgr->reserved_pages, blocks)
816+
drm_printf(printer, "%#018llx-%#018llx: %llu\n",
817+
rsv->start, rsv->start + rsv->size, rsv->size);
817818
mutex_unlock(&mgr->lock);
818819
}
819820

0 commit comments

Comments
 (0)