]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit5c5b2ba00667edd6c5c0df9f97ba2b179d013e1d
tree56d4e43b3cbdfc030ccb18703301b155dc90b49b
parentb0adca4d50169d9a05912e208a89cdd615da40d4
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