drm/amdgpu/powerplay/raven: add smu block and enable powerplay
authorHawking Zhang <Hawking.Zhang@amd.com>
Thu, 11 May 2017 20:30:31 +0000 (16:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:41:55 +0000 (17:41 -0400)
Add the ip block and enable powerplay on raven.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
drivers/gpu/drm/amd/amdgpu/soc15.c

index f5ae871aa11ca3545e5986f7b5d11477e31248e4..72c03c74459494f1b832f9f6b45f7ccc5c8e3daa 100644 (file)
@@ -72,6 +72,7 @@ static int amdgpu_pp_early_init(void *handle)
        case CHIP_CARRIZO:
        case CHIP_STONEY:
        case CHIP_VEGA10:
+       case CHIP_RAVEN:
                adev->pp_enabled = true;
                if (amdgpu_create_pp_handle(adev))
                        return -EINVAL;
index 3089b8f59e12bc1d34c9a1eabae64ee21c174040..69df35657fe1f0f929e093f8b7b5b810525fc33d 100644 (file)
@@ -506,6 +506,7 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
                amdgpu_ip_block_add(adev, &gmc_v9_0_ip_block);
                amdgpu_ip_block_add(adev, &vega10_ih_ip_block);
                amdgpu_ip_block_add(adev, &psp_v10_0_ip_block);
+               amdgpu_ip_block_add(adev, &amdgpu_pp_ip_block);
                amdgpu_ip_block_add(adev, &gfx_v9_0_ip_block);
                amdgpu_ip_block_add(adev, &sdma_v4_0_ip_block);
                amdgpu_ip_block_add(adev, &vcn_v1_0_ip_block);