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>
This commit is contained in:
parent
03597b47d6
commit
8e2712e71b
3 changed files with 11 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue