FAILED: patch "[PATCH] drm/amdgpu: change reserved vram info print" failed to apply to 6.1-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y
git checkout FETCH_HEAD
git cherry-pick -x 869bcf59fd64382e3b23b219e791e6e5ebf1114e
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2023072107-flatbed-calculate-6f00@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^..
Possible dependencies:
869bcf59fd64 ("drm/amdgpu: change reserved vram info print")
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 869bcf59fd64382e3b23b219e791e6e5ebf1114e Mon Sep 17 00:00:00 2001
From: YiPeng Chai <[email protected]>
Date: Wed, 24 May 2023 17:14:15 +0800
Subject: [PATCH] drm/amdgpu: change reserved vram info print
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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.
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c +4 -3
@@ -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); }