c51e3679eb
[ Upstream commit7eded018bf] We need to move the check under the non-headless case, otherwise we always reserve the VGA save size. Fixes:157fe68d74("drm/amdgpu: fix size calculation with stolen vga memory") Reviewed-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>