diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2015-10-17 05:57:58 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-21 16:42:21 -0500 |
commit | 76c8cc6b3ba2186215322cf45d6547d66713bd7b (patch) | |
tree | e1b484ce3fba54086442393e4ac288981fa3aeea /drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |
parent | bbb207f3dadd68ef4bd1cd7a214fa1d6de80ec3a (diff) |
drm/amdgpu: enable powerplay module by default for tonga.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index 1a824f05a28b..cbb00e29b56c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |||
@@ -96,6 +96,14 @@ static int amdgpu_pp_early_init(void *handle) | |||
96 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 96 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
97 | int ret = 0; | 97 | int ret = 0; |
98 | 98 | ||
99 | switch (adev->asic_type) { | ||
100 | case CHIP_TONGA: | ||
101 | amdgpu_powerplay = 1; | ||
102 | break; | ||
103 | default: | ||
104 | break; | ||
105 | } | ||
106 | |||
99 | ret = amdgpu_powerplay_init(adev); | 107 | ret = amdgpu_powerplay_init(adev); |
100 | if (ret) | 108 | if (ret) |
101 | return ret; | 109 | return ret; |