[PATCH 4/4] drm/amd: Enable seamless boot by default on newer APUs

Mario Limonciello mario.limonciello at amd.com
Tue Sep 5 19:26:00 UTC 2023


IP discovery is a good line in the sand to expand seamless boot
to more ASICs.

Signed-off-by: Mario Limonciello <mario.limonciello at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 9159a7b993ab..19265dbe592e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1296,14 +1296,10 @@ bool amdgpu_seamless_boot_supported(struct amdgpu_device *adev)
 	if (adev->mman.keep_stolen_vga_memory)
 		return false;
 
-	switch (adev->ip_versions[DCE_HWIP][0]) {
-	case IP_VERSION(3, 0, 1):
-		return true;
-	default:
-		break;
-	}
+	if (adev->asic_type != CHIP_IP_DISCOVERY)
+		return false;
 
-	return false;
+	return adev->flags & AMD_IS_APU;
 }
 
 /*
-- 
2.34.1



More information about the amd-gfx mailing list