]> git.dujemihanovic.xyz Git - linux.git/commitdiff
drm/amdgpu: update wave data type to 3 for gfx11
authorGraham Sider <Graham.Sider@amd.com>
Mon, 16 Jan 2023 15:43:11 +0000 (10:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Feb 2023 03:45:50 +0000 (22:45 -0500)
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@amd.com>
Reviewed-by: Mukul Joshi <Mukul.Joshi@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

index b9b57a66e113f9c66027ac92bc616645a2bed494..66eb102cd88fbdcb4c00dfb88a4574257eb47253 100644 (file)
@@ -790,8 +790,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);