[PATCH 3/3] drm/amdgpu: resume ras for gfx v11_0_3 during reset on SRIOV
Yang, Stanley
Stanley.Yang at amd.com
Tue Mar 21 13:08:44 UTC 2023
[AMD Official Use Only - General]
The series is Reviewed-by: Stanley Yang <Stanley.Yang at amd.com>
Regards,
Stanley
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of
> YiPeng Chai
> Sent: Tuesday, March 21, 2023 10:40 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Zhou1, Tao <Tao.Zhou1 at amd.com>; Zhang, Hawking
> <Hawking.Zhang at amd.com>; Chai, Thomas <YiPeng.Chai at amd.com>; Chai,
> Thomas <YiPeng.Chai at amd.com>
> Subject: [PATCH 3/3] drm/amdgpu: resume ras for gfx v11_0_3 during reset
> on SRIOV
>
> Gfx v11_0_3 supports ras on SRIOV, so need to resume ras during reset.
>
> Signed-off-by: YiPeng Chai <YiPeng.Chai at amd.com>
> Reviewed-by: Hawking Zhang <Hawking.Zhang at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index d74d05802566..14d756caf839 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -5313,8 +5313,9 @@ int amdgpu_device_gpu_recover(struct
> amdgpu_device *adev,
> if (r)
> adev->asic_reset_res = r;
>
> - /* Aldebaran supports ras in SRIOV, so need resume ras
> during reset */
> - if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 4, 2))
> + /* Aldebaran and gfx_11_0_3 support ras in SRIOV, so need
> resume ras during reset */
> + if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 4, 2)
> ||
> + adev->ip_versions[GC_HWIP][0] == IP_VERSION(11, 0, 3))
> amdgpu_ras_resume(adev);
> } else {
> r = amdgpu_do_asic_reset(device_list_handle,
> reset_context);
> --
> 2.34.1
More information about the amd-gfx
mailing list