[PATCH] drm/amdgpu: allow more APUs to do mode2 reset when go to S4
Limonciello, Mario
Mario.Limonciello at amd.com
Thu Mar 30 12:35:50 UTC 2023
[AMD Official Use Only - General]
Also in commit message move the issue into Link tag.
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2483
> -----Original Message-----
> From: Zhang, Yifan <Yifan1.Zhang at amd.com>
> Sent: Thursday, March 30, 2023 07:29
> To: Huang, Tim <Tim.Huang at amd.com>; amd-gfx at lists.freedesktop.org
> Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Limonciello, Mario
> <Mario.Limonciello at amd.com>; Yuan, Perry <Perry.Yuan at amd.com>; Du,
> Xiaojian <Xiaojian.Du at amd.com>; Ma, Li <Li.Ma at amd.com>
> Subject: RE: [PATCH] drm/amdgpu: allow more APUs to do mode2 reset
> when go to S4
>
> [AMD Official Use Only - General]
>
> Please add a Fixes tag:
>
> Fixes: 2bedd3f21b30 drm/amdgpu: skip ASIC reset for APUs when go to S4
>
> in your patch.
>
>
> -----Original Message-----
> From: Huang, Tim <Tim.Huang at amd.com>
> Sent: Thursday, March 30, 2023 10:33 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Limonciello, Mario
> <Mario.Limonciello at amd.com>; Zhang, Yifan <Yifan1.Zhang at amd.com>;
> Yuan, Perry <Perry.Yuan at amd.com>; Du, Xiaojian <Xiaojian.Du at amd.com>;
> Ma, Li <Li.Ma at amd.com>; Huang, Tim <Tim.Huang at amd.com>
> Subject: [PATCH] drm/amdgpu: allow more APUs to do mode2 reset when
> go to S4
>
> Skip mode2 reset only for IMU enabled APUs when do S4.
>
> This patch is to fix the regression issue
> https://gitlab.freedesktop.org/drm/amd/-/issues/2483
> It is generated by patch "2bedd3f21b30 drm/amdgpu: skip ASIC reset for
> APUs when go to S4".
>
> Signed-off-by: Tim Huang <tim.huang at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
> index 0f7cd3e8e00b..edaf3ded4a04 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
> @@ -981,7 +981,12 @@ static bool amdgpu_atcs_pci_probe_handle(struct
> pci_dev *pdev)
> */
> bool amdgpu_acpi_should_gpu_reset(struct amdgpu_device *adev) {
> - if (adev->flags & AMD_IS_APU)
> + if ((adev->flags & AMD_IS_APU) &&
> + adev->gfx.imu.funcs) /* Not need to do mode2 reset for IMU
> enabled APUs */
> + return false;
> +
> + if ((adev->flags & AMD_IS_APU) &&
> + amdgpu_acpi_is_s3_active(adev))
> return false;
>
> if (amdgpu_sriov_vf(adev))
> --
> 2.25.1
More information about the amd-gfx
mailing list