APPLIED: [PATCH][Hirsute/linux-aws] UBUNTU SAUCE: aws: Check for CONFIG_SUSPEND in amdgpu_acpi_is_s0ix_supported()

Kelsey Skunberg kelsey.skunberg at canonical.com
Fri Sep 24 17:36:48 UTC 2021


Seeing this was already applied. Just sending the email for ML clean up. Thank
you, Tim! :)

-Kelsey

On 2021-09-08 12:31:39 , Tim Gardner wrote:
> BugLink: https://bugs.launchpad.net/bugs/1943070
> 
> linux-aws is the only amd64 flavour that has CONFIG_SUSPEND=n. See LP: #1732512
> and LP: #1898087 for details. A recent stable update introduced this build config
> incompatibility. Fix it by also checking for CONFIG_SUSPEND.
> 
> Signed-off-by: Tim Gardner <tim.gardner at canonical.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
> index b53eab384adb..dba00f73fd83 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
> @@ -904,7 +904,7 @@ void amdgpu_acpi_fini(struct amdgpu_device *adev)
>   */
>  bool amdgpu_acpi_is_s0ix_supported(struct amdgpu_device *adev)
>  {
> -#if IS_ENABLED(CONFIG_AMD_PMC) && IS_ENABLED(CONFIG_PM_SLEEP)
> +#if IS_ENABLED(CONFIG_AMD_PMC) && IS_ENABLED(CONFIG_PM_SLEEP) && IS_ENABLED(CONFIG_SUSPEND)
>  	if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) {
>  		if (adev->flags & AMD_IS_APU)
>  			return pm_suspend_target_state == PM_SUSPEND_TO_IDLE;
> -- 
> 2.33.0
> 
> 
> -- 
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team



More information about the kernel-team mailing list