[PATCH] drm/amdgpu: update wave data type to 3 for gfx11

Joshi, Mukul Mukul.Joshi at amd.com
Wed Jan 25 19:31:31 UTC 2023


[AMD Official Use Only - General]

Reviewed-by: Mukul Joshi <mukul.joshi at amd.com>

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of
> Graham Sider
> Sent: Tuesday, January 17, 2023 2:42 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Sider, Graham <Graham.Sider at amd.com>
> Subject: [PATCH] drm/amdgpu: update wave data type to 3 for gfx11
> 
> Caution: This message originated from an External Source. Use proper
> caution when opening attachments, clicking links, or responding.
> 
> 
> SQ_WAVE_INST_DW0 isn't present on gfx11 compared to gfx10, so update
> wave data type to signify a difference.
> 
> Signed-off-by: Graham Sider <Graham.Sider at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> index f98c67d07a9b..f821309f48c9 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> @@ -754,8 +754,8 @@ static void gfx_v11_0_read_wave_data(struct
> amdgpu_device *adev, uint32_t simd,
>          * zero here */
>         WARN_ON(simd != 0);
> 
> -       /* type 2 wave data */
> -       dst[(*no_fields)++] = 2;
> +       /* type 3 wave data */
> +       dst[(*no_fields)++] = 3;
>         dst[(*no_fields)++] = wave_read_ind(adev, wave,
> ixSQ_WAVE_STATUS);
>         dst[(*no_fields)++] = wave_read_ind(adev, wave, ixSQ_WAVE_PC_LO);
>         dst[(*no_fields)++] = wave_read_ind(adev, wave, ixSQ_WAVE_PC_HI);
> --
> 2.25.1


More information about the amd-gfx mailing list