]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
drm/amdgpu: enable iceland powerplay manually
authorHuang Rui <ray.huang@amd.com>
Mon, 20 Jun 2016 05:35:28 +0000 (13:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 15:32:27 +0000 (11:32 -0400)
It's able to enable iceland powerplay manually via the module
parameter. The default state is disabled.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c

index c5738a22b69041356db2ef7e488defce76db6f30..260da022beef6fcddcaf71a4850a5a601079a309 100644 (file)
@@ -112,13 +112,15 @@ static int amdgpu_pp_early_init(void *handle)
        case CHIP_STONEY:
                adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
                break;
+       case CHIP_TOPAZ:
+               adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
+               break;
        /* These chips don't have powerplay implemenations */
        case CHIP_BONAIRE:
        case CHIP_HAWAII:
        case CHIP_KABINI:
        case CHIP_MULLINS:
        case CHIP_KAVERI:
-       case CHIP_TOPAZ:
        default:
                adev->pp_enabled = false;
                break;