summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2019-03-19 13:03:45 +0100
committerAlex Deucher <alexander.deucher@amd.com>2019-03-21 14:05:01 -0500
commit86f7bae5cf9724073ccfd9e7452a95efb27c4fbb (patch)
tree6077b4c1a3f56cf0eff71153a97c379beb587c76 /drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
parentc3546695830e7d919f8aadba2c64807c40dad02b (diff)
downloadlinux-86f7bae5cf9724073ccfd9e7452a95efb27c4fbb.tar.gz
drm/amdgpu: revert "XGMI pstate switch initial support"
This reverts commit 9b638f9751308ae3ae8f28e0c6e9decffd97f5f9. Adding this to the mapping is complete nonsense and the whole implementation looks racy. This patch wasn't thoughtfully reviewed and should be reverted for now. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Liu, Shaoyun <Shaoyun.Liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
index 807440d3edff..fcc4b05c745c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
@@ -200,7 +200,6 @@ struct amdgpu_hive_info *amdgpu_get_xgmi_hive(struct amdgpu_device *adev, int lo
if (lock)
mutex_lock(&tmp->hive_lock);
- tmp->pstate = -1;
mutex_unlock(&xgmi_mutex);
@@ -322,17 +321,3 @@ void amdgpu_xgmi_remove_device(struct amdgpu_device *adev)
mutex_unlock(&hive->hive_lock);
}
}
-
-int amdgpu_xgmi_set_pstate(struct amdgpu_device *adev, int pstate)
-{
- int ret = 0;
- struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev, 0);
-
- if (!hive)
- return 0;
-
- if (hive->pstate == pstate)
- return 0;
- /* Todo : sent the message to SMU for pstate change */
- return ret;
-} \ No newline at end of file