drm/amdgpu: Add work_struct for GPU reset from kfd.

We need to have a work_struct to cancel this reset if another
already in progress.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Andrey Grodzovsky
2022-05-17 14:25:20 -04:00
committed by Alex Deucher
parent 2f83658ffc
commit b5fd0cf3ea
3 changed files with 15 additions and 32 deletions

View File

@@ -97,6 +97,7 @@ struct amdgpu_kfd_dev {
struct kfd_dev *dev;
uint64_t vram_used;
bool init_complete;
struct work_struct reset_work;
};
enum kgd_engine_type {