drm/amdgpu: fix vram reservation issue
authorYiPeng Chai <YiPeng.Chai@amd.com>
Tue, 12 Aug 2025 01:17:58 +0000 (09:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Aug 2025 20:07:45 +0000 (16:07 -0400)
commit10ef476aad1c848449934e7bec2ab2374333c7b6
tree49d44bbc8b8cb1af52ab284b276ac59f37bd8644
parente67b8afcb6d86f1bc6a69e4e52cf9dcfe636f995
drm/amdgpu: fix vram reservation issue

The vram block allocation flag must be cleared
before making vram reservation, otherwise reserving
addresses within the currently freed memory range
will always fail.

Fixes: c9cad937c0c5 ("drm/amdgpu: add drm buddy support to amdgpu")
Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit d38eaf27de1b8584f42d6fb3f717b7ec44b3a7a1)
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c