drm/amdgpu/gfx10: fix mqd backup/restore for gfx rings (v2)
authorXiaojie Yuan <xiaojie.yuan@amd.com>
Tue, 29 Oct 2019 08:59:09 +0000 (16:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Nov 2019 15:12:49 +0000 (10:12 -0500)
commit0bb419c76b31506194a0ba9447f84fc177d83910
treeb7d96582351b56bb22017fdb26ec518718dddfcc
parent9e612c11a758087a1acbc1cc1d84f2deaf496b34
drm/amdgpu/gfx10: fix mqd backup/restore for gfx rings (v2)

1. no need to allocate an extra member for 'mqd_backup' array
2. backup/restore mqd to/from the correct 'mqd_backup' array slot

v2: warning fix (Alex)

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c