Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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

authored by

Graham Sider and committed by
Alex Deucher
ed8e793c 6d796c50

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
··· 790 790 * zero here */ 791 791 WARN_ON(simd != 0); 792 792 793 - /* type 2 wave data */ 794 - dst[(*no_fields)++] = 2; 793 + /* type 3 wave data */ 794 + dst[(*no_fields)++] = 3; 795 795 dst[(*no_fields)++] = wave_read_ind(adev, wave, ixSQ_WAVE_STATUS); 796 796 dst[(*no_fields)++] = wave_read_ind(adev, wave, ixSQ_WAVE_PC_LO); 797 797 dst[(*no_fields)++] = wave_read_ind(adev, wave, ixSQ_WAVE_PC_HI);