summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
diff options
context:
space:
mode:
authorshaoyunl <shaoyun.liu@amd.com>2021-02-16 10:57:17 -0500
committerAlex Deucher <alexander.deucher@amd.com>2021-03-23 23:10:28 -0400
commit8e2712e71bfc975c1cf6cd72c94914533cf704f2 (patch)
tree300b1f278f883f2cf1dda5b2299c60debf22fb27 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
parent03597b47d69cf5ea88828f34e42d5eb0c17e23fd (diff)
downloadlinux-8e2712e71bfc975c1cf6cd72c94914533cf704f2.tar.gz
linux-8e2712e71bfc975c1cf6cd72c94914533cf704f2.tar.bz2
linux-8e2712e71bfc975c1cf6cd72c94914533cf704f2.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
index a81d9cacf9b8..14f68c028126 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
@@ -80,6 +80,7 @@ struct amdgpu_amdkfd_fence {
struct amdgpu_kfd_dev {
struct kfd_dev *dev;
uint64_t vram_used;
+ bool init_complete;
};
enum kgd_engine_type {