From: Mario Limonciello Date: Tue, 26 Sep 2023 01:31:06 +0000 (-0500) Subject: drm/amd: Limit seamless boot by default to APUs X-Git-Tag: io_uring-6.7-2023-11-10~63^2~10^2~214 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3657a1d5ac8f2072c5d838216d4394a039ca2a17;p=linux-block.git drm/amd: Limit seamless boot by default to APUs A hang is reported on DCN 3.2 with seamless boot enabled. As the benefits come from an eDP setup, limit it to only enabled by default with APUs. Suggested-by: Alexander.Deucher@amd.com Reported-by: feifei.xu@amd.com Closes: https://lore.kernel.org/amd-gfx/85b427f6-11ec-4249-bf6f-eadf9c375f88@amd.com/T/#m2887e919d7c01b2a4860d2261b366d22e070f309 Signed-off-by: Mario Limonciello Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 22c0e035de81..5436d7a34014 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -1380,6 +1380,9 @@ bool amdgpu_device_seamless_boot_supported(struct amdgpu_device *adev) return false; } + if (!(adev->flags & AMD_IS_APU)) + return false; + if (adev->mman.keep_stolen_vga_memory) return false;