[AMD Official Use Only - AMD Internal Distribution Only]

Series is:
Reviewed-by: Jesse.Zhang <[email protected]>

> -----Original Message-----
> From: Alex Deucher <[email protected]>
> Sent: Wednesday, February 4, 2026 1:05 AM
> To: [email protected]
> Cc: Deucher, Alexander <[email protected]>; Zhang, Jesse(Jie)
> <[email protected]>
> Subject: [PATCH 1/3] drm/amdgpu/sdma5: enable queue resets unconditionally
>
> There is no firmware version dependency.
>
> Fixes: 59fd50b8663b ("drm/amdgpu: Add sysfs interface for sdma reset mask")
> Cc: Jesse Zhang <[email protected]>
> Signed-off-by: Alex Deucher <[email protected]>
> ---
>  drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 15 +++------------
>  1 file changed, 3 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
> b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
> index edb1e4d3f9292..afc22843f7940 100644
> --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
> @@ -1427,18 +1427,9 @@ static int sdma_v5_0_sw_init(struct amdgpu_ip_block
> *ip_block)
>
>       adev->sdma.supported_reset =
>               amdgpu_get_soft_full_reset_mask(&adev->sdma.instance[0].ring);
> -     switch (amdgpu_ip_version(adev, SDMA0_HWIP, 0)) {
> -     case IP_VERSION(5, 0, 0):
> -     case IP_VERSION(5, 0, 2):
> -     case IP_VERSION(5, 0, 5):
> -             if ((adev->sdma.instance[0].fw_version >= 35) &&
> -                 !amdgpu_sriov_vf(adev) &&
> -                 !adev->debug_disable_gpu_ring_reset)
> -                     adev->sdma.supported_reset |=
> AMDGPU_RESET_TYPE_PER_QUEUE;
> -             break;
> -     default:
> -             break;
> -     }
> +     if (!amdgpu_sriov_vf(adev) &&
> +         !adev->debug_disable_gpu_ring_reset)
> +             adev->sdma.supported_reset |=
> AMDGPU_RESET_TYPE_PER_QUEUE;
>
>       /* Allocate memory for SDMA IP Dump buffer */
>       ptr = kcalloc(adev->sdma.num_instances * reg_count, sizeof(uint32_t),
> GFP_KERNEL);
> --
> 2.52.0

Reply via email to