drm/amdgpu: XGMI pstate switch initial support
authorshaoyunl <shaoyun.liu@amd.com>
Wed, 20 Mar 2019 20:14:56 +0000 (16:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Mar 2019 03:40:43 +0000 (22:40 -0500)
commitdf399b064118bf9a5b9a3faaa67feb1cbb34e9d4
treeffd8647d3ca96106447b562eebcf1f3c89cb6a3c
parentadc7e863f68466aa63861242449c2c0fd57d60ab
drm/amdgpu: XGMI pstate switch initial support

Driver vote low to high pstate switch whenever there is an outstanding
XGMI mapping request. Driver vote high to low pstate when all the
outstanding XGMI mapping is terminated.

Signed-off-by: shaoyunl <shaoyun.liu@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_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h