<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
If you haven't already pushed it Reviewed-by: Christian König
<a class="moz-txt-link-rfc2396E" href="mailto:christian.koenig@amd.com"><christian.koenig@amd.com></a> as well.<br>
<br>
You might want to add a CC: stable... tag so that it gets
backported.<br>
<br>
Regards,<br>
Christian.<br>
<br>
<div class="moz-cite-prefix">Am 01.06.23 um 08:13 schrieb Arunpravin
Paneer Selvam:<br>
</div>
<blockquote type="cite"
cite="mid:de91def0-4de8-307f-dc89-b5c744506452@amd.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p style="margin:0in;font-family:Calibri;font-size:11.0pt">Reviewed-by:
Arunpravin Paneer Selvam <<a
href="mailto:Arunpravin.PaneerSelvam@amd.com"
class="moz-txt-link-freetext" moz-do-not-send="true">Arunpravin.PaneerSelvam@amd.com</a>></p>
<br>
<div class="moz-cite-prefix">On 5/25/2023 2:20 PM, YiPeng Chai
wrote<br>
</div>
<blockquote type="cite"
cite="mid:20230525085026.1316196-1-YiPeng.Chai@amd.com">
<pre class="moz-quote-pre" wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:YiPeng.Chai@amd.com" moz-do-not-send="true"><YiPeng.Chai@amd.com></a>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
index 89d35d194f2c..c7085a747b03 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
@@ -839,7 +839,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));
@@ -851,8 +851,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);
}
</pre>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>