]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix possible pstate switch race condition
authorEvan Quan <evan.quan@amd.com>
Thu, 31 Oct 2019 06:15:29 +0000 (14:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Nov 2019 21:27:48 +0000 (16:27 -0500)
commitd035def18c28224c32198e34b3f85e6a90da49dc
tree56d4e43b3cbdfc030ccb18703301b155dc90b49b
parentcb1ee3107832912f877d9bc94d9895725c8a4d3d
drm/amdgpu: fix possible pstate switch race condition

Added lock protection so that the p-state switch will
be guarded to be sequential. Also update the hive
pstate only all device from the hive are in the same
state.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c