drm/amdgpu: Add work_struct for GPU reset from debugfs

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:14:19 -04:00
committed by Alex Deucher
parent 25a2b22e41
commit 2f83658ffc
2 changed files with 19 additions and 2 deletions

View File

@@ -1058,6 +1058,8 @@ struct amdgpu_device {
bool scpm_enabled;
uint32_t scpm_status;
struct work_struct reset_work;
};
static inline struct amdgpu_device *drm_to_adev(struct drm_device *ddev)