OSDN Git Service

drm/amdkfd Avoid destroy hqd when GPU is on reset
authorJack Zhang <Jack.Zhang1@amd.com>
Tue, 7 Apr 2020 05:44:51 +0000 (13:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Apr 2020 14:43:15 +0000 (10:43 -0400)
commitfe9824d15eff7ef38f63eddd1a06648e49286c7b
tree49464ed7abbee93984e847310facf1b213cdf202
parent4a06686b948579be72a6783c62e5a275af63b0f8
drm/amdkfd Avoid destroy hqd when GPU is on reset

This reverts commit 5161bba4311f in order to split it into two
different patches, and this will make it easier to understand.

[PATCH 1/2]
porting to gfx10 from
commit 1b0bfcff463f390c40 ("drm/amdgpu: Avoid destroy hqd when GPU is on reset")

Originally, MEC is touched
without GPU initialized first.

Signed-off-by: Jack Zhang <Jack.Zhang1@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c