diff options
author | shaoyunl <shaoyun.liu@amd.com> | 2021-02-16 10:57:17 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-03-23 23:10:28 -0400 |
commit | 8e2712e71bfc975c1cf6cd72c94914533cf704f2 (patch) | |
tree | 300b1f278f883f2cf1dda5b2299c60debf22fb27 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | |
parent | 03597b47d69cf5ea88828f34e42d5eb0c17e23fd (diff) | |
download | linux-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.h | 1 |
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 { |