diff options
| author | Andrey Grodzovsky <[email protected]> | 2022-05-17 15:17:35 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-06-10 19:25:34 +0000 |
| commit | ab9a0b1f3661157d144fb744f3a197563e8e0ff4 (patch) | |
| tree | aecc27ffe5cbd782ffbf97927d108056e539d4c5 /drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | |
| parent | Revert "workqueue: remove unused cancel_work()" (diff) | |
| download | kernel-ab9a0b1f3661157d144fb744f3a197563e8e0ff4.tar.gz kernel-ab9a0b1f3661157d144fb744f3a197563e8e0ff4.zip | |
drm/amdgpu: Cache result of last reset at reset domain level.
Will be read by executors of async reset like debugfs.
Signed-off-by: Andrey Grodzovsky <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c index c80af0889773..32c86a0b145c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c @@ -132,6 +132,7 @@ struct amdgpu_reset_domain *amdgpu_reset_create_reset_domain(enum amdgpu_reset_d } atomic_set(&reset_domain->in_gpu_reset, 0); + atomic_set(&reset_domain->reset_res, 0); init_rwsem(&reset_domain->sem); return reset_domain; |
