drm/amdgpu: enable powerplay module by default for tonga.
authorRex Zhu <Rex.Zhu@amd.com>
Sat, 17 Oct 2015 09:57:58 +0000 (17:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:42:21 +0000 (16:42 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c

index 1a824f0..cbb00e2 100644 (file)
@@ -96,6 +96,14 @@ static int amdgpu_pp_early_init(void *handle)
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
        int ret = 0;
 
+       switch (adev->asic_type) {
+               case CHIP_TONGA:
+                       amdgpu_powerplay = 1;
+                       break;
+               default:
+                       break;
+       }
+
        ret = amdgpu_powerplay_init(adev);
        if (ret)
                return ret;