OSDN Git Service

drm/amdgpu/gfx10: re-init clear state buffer after gpu reset
authorXiaojie Yuan <xiaojie.yuan@amd.com>
Wed, 20 Nov 2019 06:02:22 +0000 (14:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Nov 2019 19:55:12 +0000 (14:55 -0500)
commit210b3b3c7563df391bd81d49c51af303b928de4a
treee5fff1991a3338102144ecc20881734494cef7d9
parenta3511321fd004d0b2a6d81dab1837dcc6c752da4
drm/amdgpu/gfx10: re-init clear state buffer after gpu reset

This patch fixes 2nd baco reset failure with gfxoff enabled on navi1x.

clear state buffer (resides in vram) is corrupted after 1st baco reset,
upon gfxoff exit, CPF gets garbage header in CSIB and hangs.

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c