]> xenbits.xensource.com Git - people/pauldu/linux.git/commitdiff
drm/amd: Limit seamless boot by default to APUs
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 26 Sep 2023 01:31:06 +0000 (20:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2023 19:35:31 +0000 (15:35 -0400)
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 <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 22c0e035de81b1847e3d693c36805e3ab0ab8138..5436d7a34014fca25e57d23b0fecd181b133a777 100644 (file)
@@ -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;