diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2016-09-19 03:44:50 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-09-22 10:24:20 -0400 |
commit | 9487dd1548d600161485ee5528cec36ccff96edd (patch) | |
tree | fa82f7a168eeb680c2fabf3ff1558c5487e55156 /drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |
parent | a8ca34136453b5a570b514e466f8b0b9efd71df2 (diff) |
drm/amdgpu: use powerplay module for dgpu in Vi.
delete non-pp code and files. It was just a temporary
solution and not support dynamic power management.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index 1e7f160f23d8..68ad24101a36 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |||
@@ -80,15 +80,6 @@ static int amdgpu_powerplay_init(struct amdgpu_device *adev) | |||
80 | amd_pp->ip_funcs = &kv_dpm_ip_funcs; | 80 | amd_pp->ip_funcs = &kv_dpm_ip_funcs; |
81 | break; | 81 | break; |
82 | #endif | 82 | #endif |
83 | case CHIP_TOPAZ: | ||
84 | amd_pp->ip_funcs = &iceland_dpm_ip_funcs; | ||
85 | break; | ||
86 | case CHIP_TONGA: | ||
87 | amd_pp->ip_funcs = &tonga_dpm_ip_funcs; | ||
88 | break; | ||
89 | case CHIP_FIJI: | ||
90 | amd_pp->ip_funcs = &fiji_dpm_ip_funcs; | ||
91 | break; | ||
92 | case CHIP_CARRIZO: | 83 | case CHIP_CARRIZO: |
93 | case CHIP_STONEY: | 84 | case CHIP_STONEY: |
94 | amd_pp->ip_funcs = &cz_dpm_ip_funcs; | 85 | amd_pp->ip_funcs = &cz_dpm_ip_funcs; |
@@ -110,11 +101,11 @@ static int amdgpu_pp_early_init(void *handle) | |||
110 | switch (adev->asic_type) { | 101 | switch (adev->asic_type) { |
111 | case CHIP_POLARIS11: | 102 | case CHIP_POLARIS11: |
112 | case CHIP_POLARIS10: | 103 | case CHIP_POLARIS10: |
113 | adev->pp_enabled = true; | ||
114 | break; | ||
115 | case CHIP_TONGA: | 104 | case CHIP_TONGA: |
116 | case CHIP_FIJI: | 105 | case CHIP_FIJI: |
117 | case CHIP_TOPAZ: | 106 | case CHIP_TOPAZ: |
107 | adev->pp_enabled = true; | ||
108 | break; | ||
118 | case CHIP_CARRIZO: | 109 | case CHIP_CARRIZO: |
119 | case CHIP_STONEY: | 110 | case CHIP_STONEY: |
120 | adev->pp_enabled = (amdgpu_powerplay == 0) ? false : true; | 111 | adev->pp_enabled = (amdgpu_powerplay == 0) ? false : true; |