Enable seamless boot more widely
Subsystems (3)
cover Enable seamless boot more widely
Seamless boot allows keeping the content on the framebuffer from pre-boot so the screen doesn't get "painted black" during boot process.
Ideally the flow looks like:
* UEFI F/W posts vendor logo
* GRUB doesn't show anything, but silently continues
* Plymouth starts and adds OS logo to bottom and spinner
* Simple DRM loads, no mode changes
* amdgpu loads, no mode changes
* Spinner keeps spinning
* GDM starts up
Previously this was only enabled on Van Gogh, but this series enables the functionality more widely onto APUs that support IP discovery.
This also introduces a kernel module parameter that to easily force it enabled on other ASICs too, which may be useful to adjust policy.
Mario Limonciello (4):
drm/amd: Drop special case for yellow carp without discovery drm/amd: Move seamless boot check out of display drm/amd: Add a module parameter for seamless boot drm/amd: Enable seamless boot by default on newer APUs
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 31 +++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 +++++ drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 6 ---- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 23 +------------- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 -- 6 files changed, 42 insertions(+), 30 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/4 drm/amd: Drop special case for yellow carp without discovery
amdgpu_gmc_get_vbios_allocations has a special case for how to bring up yellow carp when amdgpu discovery is turned off. As this ASIC ships with discovery turned on, it's generally dead code and worse it causes adev->mman.keep_stolen_vga_memory to not be initialized for yellow carp.
Remove it.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +0 -6
@@ -725,12 +725,6 @@ void amdgpu_gmc_get_vbios_allocations(struct amdgpu_device *adev)case CHIP_RENOIR : adev->mman.keep_stolen_vga_memory = true;break ; -case CHIP_YELLOW_CARP : -if (amdgpu_discovery ==0 ) { - adev->mman.stolen_reserved_offset =0x1ffb0000 ; - adev->mman.stolen_reserved_size =64 *PAGE_SIZE ; - } -break ;default : adev->mman.keep_stolen_vga_memory = false;break ;
Signature · 1 line
2.34.1
Re: [PATCH 1/4] drm/amd: Drop special case for yellow carp without discovery
Quoted 34 lines · Mario Limonciello
amdgpu_gmc_get_vbios_allocationshas a special case for how to bring up yellow carp when amdgpu discovery is turned off. As this ASIC ships with discovery turned on, it's generally dead code and worse it causesadev->mman.keep_stolen_vga_memoryto not be initialized for yellow carp.Remove it.
Signed-off-by Mario Limonciello <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 6 ------ 1 file changed, 6 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +0
-7@@ -725,12 +725,6 @@ void amdgpu_gmc_get_vbios_allocations(struct amdgpu_device *adev)case CHIP_RENOIR : adev->mman.keep_stolen_vga_memory = true;break ; -case CHIP_YELLOW_CARP : -if (amdgpu_discovery ==0 ) { - adev->mman.stolen_reserved_offset =0x1ffb0000 ; - adev->mman.stolen_reserved_size =64 *PAGE_SIZE ; - } -break ;default : adev->mman.keep_stolen_vga_memory = false;break ; --2.34.1
PATCH 2/4 drm/amd: Move seamless boot check out of display
In reply to Mario LimoncielloThis will allow base driver to dictate whether seamless should be enabled. No intended functional changes.
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 21 +++++++++++++++++ .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 23 +------------------ .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 -- 4 files changed, 23 insertions(+), 24 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -0
@@ -1306,6 +1306,7 @@ void amdgpu_device_pci_config_reset(struct amdgpu_device *adev);int amdgpu_device_pci_reset (struct amdgpu_device *adev);bool amdgpu_device_need_post (struct amdgpu_device *adev);bool amdgpu_sg_display_supported (struct amdgpu_device *adev); +bool amdgpu_seamless_boot_supported (struct amdgpu_device *adev);bool amdgpu_device_pcie_dynamic_switching_supported (void );bool amdgpu_device_should_use_aspm (struct amdgpu_device *adev);bool amdgpu_device_aspm_support_quirk (void );
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +21 -0
@@ -1271,6 +1271,27 @@ bool amdgpu_sg_display_supported(struct amdgpu_device *adev)return true; } +/* +* Check whether seamless boot is supported. +* +* So far we only support seamless boot on select ASICs. +* If everything goes well, we may consider expanding +* seamless boot to other ASICs. +*/ +bool amdgpu_seamless_boot_supported (struct amdgpu_device *adev) +{ +switch (adev->ip_versions[DCE_HWIP ][0 ]) { +case IP_VERSION (3 ,0 ,1 ): +if (!adev->mman.keep_stolen_vga_memory) +return true; +break ; +default : +break ; + } + +return false; +} +/* * Intel hosts such as Raptor Lake and Sapphire Rapids don't support dynamic * speed switching. Until we have confirmation from Intel that a specific host
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -22
@@ -1675,7 +1675,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev) init_data.flags.seamless_boot_edp_requested = false; -if (check_seamless_boot_capability (adev)) { +if (amdgpu_seamless_boot_supported (adev)) { init_data.flags.seamless_boot_edp_requested = true; init_data.flags.allow_seamless_boot_optimization = true;DRM_INFO ("Seamless boot condition check passed\n" );
@@ -10924,27 +10924,6 @@ int amdgpu_dm_process_dmub_set_config_sync(return ret; } -/* -* Check whether seamless boot is supported. -* -* So far we only support seamless boot on CHIP_VANGOGH. -* If everything goes well, we may consider expanding -* seamless boot to other ASICs. -*/ -bool check_seamless_boot_capability (struct amdgpu_device *adev) -{ -switch (adev->ip_versions[DCE_HWIP ][0 ]) { -case IP_VERSION (3 ,0 ,1 ): -if (!adev->mman.keep_stolen_vga_memory) -return true; -break ; -default : -break ; - } - -return false; -} -bool dm_execute_dmub_cmd (const struct dc_context *ctx,union dmub_rb_cmd *cmd,enum dm_dmub_wait_type wait_type) {return dc_dmub_srv_cmd_run (ctx->dmub_srv, cmd, wait_type);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +0 -2
@@ -825,8 +825,6 @@ int amdgpu_dm_process_dmub_aux_transfer_sync(struct dc_context *ctx, unsigned inint amdgpu_dm_process_dmub_set_config_sync (struct dc_context *ctx,unsigned int link_index,struct set_config_cmd_payload *payload,enum set_config_status *operation_result); -bool check_seamless_boot_capability (struct amdgpu_device *adev); -struct dc_stream_state * create_validate_stream_for_sink(struct amdgpu_dm_connector *aconnector, const struct drm_display_mode *drm_mode,
Signature · 1 line
2.34.1
Re: [PATCH 2/4] drm/amd: Move seamless boot check out of display
Quoted 30 lines · Mario Limonciello
This will allow base driver to dictate whether seamless should be enabled. No intended functional changes.
Signed-off-by Mario Limonciello <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 21 +++++++++++++++++ .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 23 +------------------ .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 2 -- 4 files changed, 23 insertions(+), 24 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu.h +1
-0@@ -1306,6 +1306,7 @@ void amdgpu_device_pci_config_reset(struct amdgpu_device *adev);int amdgpu_device_pci_reset (struct amdgpu_device *adev);bool amdgpu_device_need_post (struct amdgpu_device *adev);bool amdgpu_sg_display_supported (struct amdgpu_device *adev); +bool amdgpu_seamless_boot_supported (struct amdgpu_device *adev);bool amdgpu_device_pcie_dynamic_switching_supported (void );bool amdgpu_device_should_use_aspm (struct amdgpu_device *adev);bool amdgpu_device_aspm_support_quirk (void );drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0@@ -1271,6 +1271,27 @@ bool amdgpu_sg_display_supported(struct amdgpu_device *adev)return true;
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c bool amdgpu_sg_display_supported(struct amdgpu_device *adev) · line 1281
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +8
-0} +/* +* Check whether seamless boot is supported. +* +* So far we only support seamless boot on select ASICs. +* If everything goes well, we may consider expanding +* seamless boot to other ASICs. +*/ +bool amdgpu_seamless_boot_supported (struct amdgpu_device *adev)
amdgpu_device_seamless_boot_supported() for consistency with the rest of the file.
Alex
Quoted 73 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +13
-0+{ +switch (adev->ip_versions[DCE_HWIP ][0 ]) { +case IP_VERSION (3 ,0 ,1 ): +if (!adev->mman.keep_stolen_vga_memory) +return true; +break ; +default : +break ; + } + +return false; +} +/* * Intel hosts such as Raptor Lake and Sapphire Rapids don't support dynamic * speed switching. Until we have confirmation from Intel that a specific host drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1
-22@@ -1675,7 +1675,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev) init_data.flags.seamless_boot_edp_requested = false; -if (check_seamless_boot_capability (adev)) { +if (amdgpu_seamless_boot_supported (adev)) { init_data.flags.seamless_boot_edp_requested = true; init_data.flags.allow_seamless_boot_optimization = true;DRM_INFO ("Seamless boot condition check passed\n" );@@ -10924,27 +10924,6 @@ int amdgpu_dm_process_dmub_set_config_sync(return ret; } -/* -* Check whether seamless boot is supported. -* -* So far we only support seamless boot on CHIP_VANGOGH. -* If everything goes well, we may consider expanding -* seamless boot to other ASICs. -*/ -bool check_seamless_boot_capability (struct amdgpu_device *adev) -{ -switch (adev->ip_versions[DCE_HWIP ][0 ]) { -case IP_VERSION (3 ,0 ,1 ): -if (!adev->mman.keep_stolen_vga_memory) -return true; -break ; -default : -break ; - } - -return false; -} -bool dm_execute_dmub_cmd (const struct dc_context *ctx,union dmub_rb_cmd *cmd,enum dm_dmub_wait_type wait_type) {return dc_dmub_srv_cmd_run (ctx->dmub_srv, cmd, wait_type);drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +0
-3@@ -825,8 +825,6 @@ int amdgpu_dm_process_dmub_aux_transfer_sync(struct dc_context *ctx, unsigned inint amdgpu_dm_process_dmub_set_config_sync (struct dc_context *ctx,unsigned int link_index,struct set_config_cmd_payload *payload,enum set_config_status *operation_result); -bool check_seamless_boot_capability (struct amdgpu_device *adev); -struct dc_stream_state * create_validate_stream_for_sink(struct amdgpu_dm_connector *aconnector, const struct drm_display_mode *drm_mode, --2.34.1
PATCH 3/4 drm/amd: Add a module parameter for seamless boot
In reply to Mario LimoncielloThe module parameter can be used to test more easily enabling seamless boot support on additional ASICs.
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 20 +++++++++++++++++--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++++++ 3 files changed, 26 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -0
@@ -246,6 +246,7 @@ extern int amdgpu_num_kcq;extern int amdgpu_vcnfw_log;extern int amdgpu_sg_display;extern int amdgpu_umsch_mm; +extern int amdgpu_seamless;extern int amdgpu_user_partt_mode;
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +17 -3
@@ -1280,11 +1280,25 @@ bool amdgpu_sg_display_supported(struct amdgpu_device *adev)*/ bool amdgpu_seamless_boot_supported (struct amdgpu_device *adev) { +switch (amdgpu_seamless) { +case -1 : +break ; +case 1 : +return true; +case 0 : +return false; +default : +DRM_ERROR ("Invalid value for amdgpu.seamless: %d\n" , + amdgpu_seamless); +return false; + } + +if (adev->mman.keep_stolen_vga_memory) +return false; +switch (adev->ip_versions[DCE_HWIP ][0 ]) {case IP_VERSION (3 ,0 ,1 ): -if (!adev->mman.keep_stolen_vga_memory) -return true; -break ; +return true;default :break ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +8 -0
@@ -195,6 +195,7 @@ int amdgpu_vcnfw_log;int amdgpu_sg_display =-1 ;/* auto */ int amdgpu_user_partt_mode =AMDGPU_AUTO_COMPUTE_PARTITION_MODE ;int amdgpu_umsch_mm; +int amdgpu_seamless =-1 ;/* auto */ static void amdgpu_drv_delayed_reset_work_handler (struct work_struct *work);
@@ -948,6 +949,13 @@ module_param_named(user_partt_mode, amdgpu_user_partt_mode, uint, 0444);module_param (enforce_isolation, bool,0444 );MODULE_PARM_DESC (enforce_isolation,"enforce process isolation between graphics and compute . enforce_isolation = on" ); +/** +* DOC: seamless (int) +* Seamless boot will keep the image on the screen during the boot process. +*/ +MODULE_PARM_DESC (seamless,"Seamless boot (-1 = auto (default), 0 = disable, 1 = enable)" ); +module_param_named (seamless, amdgpu_seamless, int,0444 ); +/* These devices are not supported by amdgpu. * They are supported by the mach64, r128, radeon drivers */
Signature · 1 line
2.34.1
PATCH 4/4 drm/amd: Enable seamless boot by default on newer APUs
In reply to Mario LimoncielloIP discovery is a good line in the sand to expand seamless boot to more ASICs.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -7
@@ -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 ; }/*
Signature · 1 line
2.34.1
Deucher, Alexander
maintainerRE: [PATCH 4/4] drm/amd: Enable seamless boot by default on newer APUs
[Public]
Quoted 22 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Mario Limonciello
Sent: Tuesday, September 5, 2023 3:26 PM
To: [email protected]
Cc: Limonciello, Mario <[email protected]>
Subject: [PATCH 4/4] drm/amd: Enable seamless boot by default on newer APUsIP discovery is a good line in the sand to expand seamless boot to more ASICs.
Signed-off-by Mario Limonciello <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c bool amdgpu_seamless_boot_supported(struct · line 1298
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0@@ -1296,14 +1296,10 @@ bool amdgpu_seamless_boot_supported(struct amdgpu_device *adev)if (adev->mman.keep_stolen_vga_memory)return false;
This probably needs to be revisited too. I don't know why this is an issue. This flag just means the kernel driver keeps the stolen VGA region as reserved rather than releasing it back into the pool of available memory. I don't think it should directly affect this feature.
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c bool amdgpu_seamless_boot_supported(struct amdgpu_device *adev) · line 1300
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2
-6-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;
Probably need input from the display team, but I think a number of the older chips we'd probably want this too. Maybe base it on the DCE_HWIP version? DCN 1.0.0 or newer? Or maybe DCN 3.0.0 or newer?
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-2-return false; +return adev->flags &AMD_IS_APU ; }/* -- 2.34.1
Re: [PATCH 4/4] drm/amd: Enable seamless boot by default on newer APUs
Quoted 40 lines · Alexander
[Public]
Quoted 22 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Mario Limonciello
Sent: Tuesday, September 5, 2023 3:26 PM
To: [email protected]
Cc: Limonciello, Mario <[email protected]>
Subject: [PATCH 4/4] drm/amd: Enable seamless boot by default on newer APUsIP discovery is a good line in the sand to expand seamless boot to more ASICs.
Signed-off-by Mario Limonciello <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0drivers/gpu/drm/amd/amdgpu/amdgpu_device.c bool amdgpu_seamless_boot_supported(struct · line 1298
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0@@ -1296,14 +1296,10 @@ bool amdgpu_seamless_boot_supported(struct amdgpu_device *adev)if (adev->mman.keep_stolen_vga_memory)return false;This probably needs to be revisited too. I don't know why this is an issue. This flag just means the kernel driver keeps the stolen VGA region as reserved rather than releasing it back into the pool of available memory. I don't think it should directly affect this feature.
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c bool amdgpu_seamless_boot_supported(struct amdgpu_device *adev) · line 1300
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2
-6-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;
Quoted 2 lines
Probably need input from the display team, but I think a number of the older chips we'd probably want this too. Maybe base it on the
DCE_HWIPversion? DCN 1.0.0 or newer? Or maybe DCN 3.0.0 or newer?
I think it will only work on the older chips if the adev->mman.keep_stolen_vga_memory check can actually be dropped as some of the older chips explicitly set it to TRUE.
There are other non-obvious dependencies too like:f0882d3afb9a ("drm/amd/display: prevent seamless boot on displays that don't have the preferred dig") 6349c73859cb ("drm/amd/display: For ODM seamless transition require AUTO mode")
So I was trying to be cautious in just enabling a few more things right now. I think essentially this "only" enables for for Rembrandt, Raphael, Mendocino and Phoenix. I tested it on Phoenix and Rembrandt.
But the module parameter is an escape hatch. Let's see what display team says.
Quoted 9 lines
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-2-return false; +return adev->flags &AMD_IS_APU ; }/* -- 2.34.1
Re: [PATCH 4/4] drm/amd: Enable seamless boot by default on newer APUs
Quoted 46 lines · Mario Limonciello
Quoted 40 lines · Alexander
[Public]
Quoted 22 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Mario Limonciello
Sent: Tuesday, September 5, 2023 3:26 PM
To: [email protected]
Cc: Limonciello, Mario <[email protected]>
Subject: [PATCH 4/4] drm/amd: Enable seamless boot by default on newer APUsIP discovery is a good line in the sand to expand seamless boot to more ASICs.
Signed-off-by Mario Limonciello <[email protected]>---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 10 +++-------1 file changed, 3 insertions(+), 7 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0drivers/gpu/drm/amd/amdgpu/amdgpu_device.c bool amdgpu_seamless_boot_supported(struct · line 1298
Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0@@ -1296,14 +1296,10 @@ bool amdgpu_seamless_boot_supported(struct amdgpu_device *adev) if (adev->mman.keep_stolen_vga_memory) return false;This probably needs to be revisited too. I don't know why this is an issue. This flag just means the kernel driver keeps the stolen VGA region as reserved rather than releasing it back into the pool of available memory. I don't think it should directly affect this feature.
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c bool amdgpu_seamless_boot_supported(struct amdgpu_device *adev) · line 1300
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2
-6- 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;Quoted 2 lines
Probably need input from the display team, but I think a number of the older chips we'd probably want this too. Maybe base it on the
DCE_HWIPversion? DCN 1.0.0 or newer? Or maybe DCN 3.0.0 or newer?I think it will only work on the older chips if the
adev->mman.keep_stolen_vga_memorycheck can actually be dropped as some of the older chips explicitly set it to TRUE.
Quoted 8 lines
There are other non-obvious dependencies too like:
f0882d3afb9a("drm/amd/display: prevent seamless boot on displays that don't have the preferred dig")6349c73859cb("drm/amd/display: For ODM seamless transition require AUTO mode")So I was trying to be cautious in just enabling a few more things right now. I think essentially this "only" enables for for Rembrandt, Raphael, Mendocino and Phoenix. I tested it on Phoenix and Rembrandt.
But the module parameter is an escape hatch. Let's see what display team says.
The core code around this should support DCN1+ and DC has logic to check
whether we can actually do a seamless handover (mark_seamless_boot_stream). If it's not possible we'll still reprogram the output (as in the case of that first patch you mention above).
Not sure about the stolen_vga_memory thing. But that's a question separately from the ASIC generations supported.
I'd be fine to allow seamless boot for DCN1+. Though would it be considered a regression if we had to roll this back and only allow it for newer ASICs? In that case maybe DCN3+ is a good cutoff.
Patches 2 and 3 (with Alex's comment addressed) are
Harry
Quoted 10 lines
Quoted 9 lines
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-1- return false; + return adev->flags & AMD_IS_APU; } /*Signature · 1 line
2.34.1