]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a574f07219920c87214261cba571a45241dae5c
treeacc5d083dd3f58f66109b0c58b98005711611bf7
parent189c5f048fc77999c92a071c8ef58d53c5225de0
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