]> 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)
commit10d6c64e3ca9394a7f6572d1f5d0080a1753d2b0
tree56d4e43b3cbdfc030ccb18703301b155dc90b49b
parent883d1ac2bceeb21bba53d59a514bd7e93e7ae1cf
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