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: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
shaoyunl
2019-02-21 16:30:25 -05:00
committed by Alex Deucher
parent a690aa0f45
commit 9b638f9751
6 changed files with 53 additions and 1 deletions

View File

@@ -925,6 +925,10 @@ struct amdgpu_device {
int asic_reset_res;
struct work_struct xgmi_reset_work;
/* counter of mapped memory through xgmi */
atomic_t xgmi_map_counter;
};
static inline struct amdgpu_device *amdgpu_ttm_adev(struct ttm_bo_device *bdev)