drm/amdgpu: Add kfd init_complete flag to check from amdgpu side
authorshaoyunl <shaoyun.liu@amd.com>
Tue, 16 Feb 2021 15:57:17 +0000 (10:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:10:28 +0000 (23:10 -0400)
commit8e2712e71bfc975c1cf6cd72c94914533cf704f2
tree300b1f278f883f2cf1dda5b2299c60debf22fb27
parent03597b47d69cf5ea88828f34e42d5eb0c17e23fd
drm/amdgpu: Add kfd init_complete flag to check from amdgpu side

amdgpu driver may be in reset state during init which will not initialize the kfd,
driver need to initialize the KFD after reset by check the flag

Signed-off-by: shaoyunl <shaoyun.liu@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_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c