drm/amdgpu: fix vram reservation issue

[ Upstream commit 10ef476aad ]

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: c9cad937c0 ("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 d38eaf27de)
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
YiPeng Chai 2025-08-12 09:17:58 +08:00 • committed by Greg Kroah-Hartman
commit 0d086c85ec