drm/amdgpu: allow more APUs to do mode2 reset when go to S4
Subsystems (2)
PATCH 1/1 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".
--- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +6 -1
@@ -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))
Signature · 1 line
2.25.1
[AMD Official Use Only - General]
Hi Tim.
Quoted 44 lines
-----Original Message-----
From: Huang, Tim <[email protected]>
Sent: Thursday, March 30, 2023 10:33 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Limonciello, Mario <[email protected]>; Zhang, Yifan <[email protected]>; Yuan, Perry <[email protected]>; Du, Xiaojian <[email protected]>; Ma, Li <[email protected]>; Huang, Tim <[email protected]>
Subject: [PATCH] drm/amdgpu: allow more APUs to do mode2 reset when go to S4Skip 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 "2bedd3f21b30drm/amdgpu: skip ASIC reset for APUs when go to S4".Signed-off-by Tim Huang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +2
-1@@ -981,7 +981,12 @@ static bool amdgpu_atcs_pci_probe_handle(structpci_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 */
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +4
-1+return false; + +if ((adev->flags &AMD_IS_APU ) && +amdgpu_acpi_is_s3_active (adev))return false;if (amdgpu_sriov_vf (adev)) --
Quoted 1 line
2.25.1
Thanks for the quick fix.
[AMD Official Use Only - General]
Please add a Fixes tag:
in your patch.
-----Original Message-----
From: Huang, Tim <[email protected]>
Sent: Thursday, March 30, 2023 10:33 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Limonciello, Mario <[email protected]>; Zhang, Yifan <[email protected]>; Yuan, Perry <[email protected]>; Du, Xiaojian <[email protected]>; Ma, Li <[email protected]>; Huang, Tim <[email protected]>
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".
--- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +6 -2
@@ -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
[AMD Official Use Only - General]
Also in commit message move the issue into Link tag.
Quoted 64 lines
-----Original Message-----
From: Zhang, Yifan <[email protected]>
Sent: Thursday, March 30, 2023 07:29
To: Huang, Tim <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Limonciello, Mario <[email protected]>; Yuan, Perry <[email protected]>; Du, Xiaojian <[email protected]>; Ma, Li <[email protected]>
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 S4in your patch.
-----Original Message-----
From: Huang, Tim <[email protected]>
Sent: Thursday, March 30, 2023 10:33 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Limonciello, Mario <[email protected]>; Zhang, Yifan <[email protected]>; Yuan, Perry <[email protected]>; Du, Xiaojian <[email protected]>; Ma, Li <[email protected]>; Huang, Tim <[email protected]>
Subject: [PATCH] drm/amdgpu: allow more APUs to do mode2 reset when go to S4Skip 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 "2bedd3f21b30drm/amdgpu: skip ASIC reset for APUs when go to S4".Signed-off-by Tim Huang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +2
-1@@ -981,7 +981,12 @@ static bool amdgpu_atcs_pci_probe_handle(structpci_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 */
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +4
-1+return false; + +if ((adev->flags &AMD_IS_APU ) && +amdgpu_acpi_is_s3_active (adev))return false;if (amdgpu_sriov_vf (adev)) --2.25.1
[AMD Official Use Only - General]
Yes, will use the Fixes and Link tags, thanks so much.
Best Regards,
Tim Huang
-----Original Message-----
From: Limonciello, Mario <[email protected]>
Sent: Thursday, March 30, 2023 8:36 PM
To: Zhang, Yifan <[email protected]>; Huang, Tim <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Yuan, Perry <[email protected]>; Du, Xiaojian <[email protected]>; Ma, Li <[email protected]>
Subject: RE: [PATCH] drm/amdgpu: allow more APUs to do mode2 reset when go to S4
[AMD Official Use Only - General]
Also in commit message move the issue into Link tag.
Quoted 64 lines
-----Original Message-----
From: Zhang, Yifan <[email protected]>
Sent: Thursday, March 30, 2023 07:29
To: Huang, Tim <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Limonciello, Mario <[email protected]>; Yuan, Perry <[email protected]>; Du, Xiaojian <[email protected]>; Ma, Li <[email protected]>
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 S4in your patch.
-----Original Message-----
From: Huang, Tim <[email protected]>
Sent: Thursday, March 30, 2023 10:33 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Limonciello, Mario <[email protected]>; Zhang, Yifan <[email protected]>; Yuan, Perry <[email protected]>; Du, Xiaojian <[email protected]>; Ma, Li <[email protected]>; Huang, Tim <[email protected]>
Subject: [PATCH] drm/amdgpu: allow more APUs to do mode2 reset when go to S4Skip 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 "2bedd3f21b30drm/amdgpu: skip ASIC reset for APUs when go to S4".Signed-off-by Tim Huang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +2
-1@@ -981,7 +981,12 @@ static bool amdgpu_atcs_pci_probe_handle(structpci_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 */
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +4
-1+return false; + +if ((adev->flags &AMD_IS_APU ) && +amdgpu_acpi_is_s3_active (adev))return false;if (amdgpu_sriov_vf (adev)) --2.25.1