summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGraham Sider <Graham.Sider@amd.com>2023-01-16 10:43:11 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-09 11:28:24 +0100
commit86dbbc8f6ba705b82c0e6daf5c2fed993665dc1a (patch)
tree27a5438807f73ecc6704d97f8d9a180be0e5b956
parent91ef43f6b65b5aea03e71d70bb510efc61637ff6 (diff)
downloadlinux-stable-86dbbc8f6ba705b82c0e6daf5c2fed993665dc1a.tar.gz
linux-stable-86dbbc8f6ba705b82c0e6daf5c2fed993665dc1a.tar.bz2
linux-stable-86dbbc8f6ba705b82c0e6daf5c2fed993665dc1a.zip
drm/amdgpu: update wave data type to 3 for gfx11
commit ed8e793c65e4c6633e8577e40d574da8a56d2e0f upstream. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c4
1 files 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 3bf4f2edc108..90e739d9aeee 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@ -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);