drm/amdgpu: Avoid accidental thread reactivation.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 6 Nov 2019 17:36:29 +0000 (12:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Nov 2019 23:08:07 +0000 (18:08 -0500)
commita28fda312a9fabdf0e5f5652449d6197c9fb0a90
treeacc5d083dd3f58f66109b0c58b98005711611bf7
parent2b6f717c33ef40257383478479a97d9ba2da8dab
drm/amdgpu: Avoid accidental thread reactivation.

Problem:
During GPU reset we call the GPU scheduler to suspend it's
thread, those two functions in amdgpu also suspend and resume
the sceduler for their needs but this can collide with GPU
reset in progress and accidently restart a suspended thread
before time.

Fix:
Serialize with GPU reset.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c