summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-06-20 02:38:43 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-06-20 02:38:43 +0000
commit2f0c743a2fbe789691f90117b9f87798080a5b54 (patch)
tree55628aed18133ad3feafa6b03978f87b40923a01 /sys
parent37870f1b7b0512c4afbd01b844a8e9ce6036dc7b (diff)
drm/amdgpu: change reserved vram info print
From YiPeng Chai 8e143bae25cdbab69ea3e2e7bb6faf7711ce7583 in linux-6.1.y/6.1.34 dac652220ba0e5a2ef2da2a47a60b60aea333fdb in mainline linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_vram_mgr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_vram_mgr.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_vram_mgr.c
index c8607247e1f..e351ec986fd 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_vram_mgr.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_vram_mgr.c
@@ -806,7 +806,7 @@ static void amdgpu_vram_mgr_debug(struct ttm_resource_manager *man,
{
struct amdgpu_vram_mgr *mgr = to_vram_mgr(man);
struct drm_buddy *mm = &mgr->mm;
- struct drm_buddy_block *block;
+ struct amdgpu_vram_reservation *rsv;
drm_printf(printer, " vis usage:%llu\n",
amdgpu_vram_mgr_vis_usage(mgr));
@@ -818,8 +818,9 @@ static void amdgpu_vram_mgr_debug(struct ttm_resource_manager *man,
drm_buddy_print(mm, printer);
drm_printf(printer, "reserved:\n");
- list_for_each_entry(block, &mgr->reserved_pages, link)
- drm_buddy_block_print(mm, block, printer);
+ list_for_each_entry(rsv, &mgr->reserved_pages, blocks)
+ drm_printf(printer, "%#018llx-%#018llx: %llu\n",
+ rsv->start, rsv->start + rsv->size, rsv->size);
mutex_unlock(&mgr->lock);
}