drm/amd/powerplay: set powerplay support cap on raven
authorHawking Zhang <Hawking.Zhang@amd.com>
Wed, 24 May 2017 10:56:10 +0000 (18:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 May 2017 20:12:58 +0000 (16:12 -0400)
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c

index 6155abead46ce36a65d734f148d931d8661b28b2..9b431511d274a2ee57dbee9f8f90bbcd640ea28f 100644 (file)
@@ -554,6 +554,9 @@ static int rv_hwmgr_backend_init(struct pp_hwmgr *hwmgr)
                return result;
        }
 
+       phm_cap_set(hwmgr->platform_descriptor.platformCaps,
+                PHM_PlatformCaps_PowerPlaySupport);
+
        rv_populate_clock_table(hwmgr);
 
        result = rv_get_system_info_data(hwmgr);