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>
Fri, 22 Nov 2019 19:35:10 +0000 (14:35 -0500)
commit0900a9efdb79097dac253a67f6c4fe0a42b2508d
tree464a4371fa5e3e2966d93736884b2439f0f3232f
parent17eee668b3cad423a47c090fe2275733c55db910
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