]> 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)
commitd6d7f73fc2c4a779556d8c0520f0c90d77e871e7
treeacc5d083dd3f58f66109b0c58b98005711611bf7
parent91abd9743290df0183fed82ef7f4662ff2507fcb
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