]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
drm/amd/powerplay: add new function point in hwmgr_func for CG/PG.
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 30 Sep 2015 05:28:49 +0000 (13:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:42:22 +0000 (16:42 -0500)
Add callbacks interface for clock and powergating.

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/powerplay/inc/hwmgr.h

index 2370a72a99cdea8618b2a4186db076f6d5739efd..f90a8b61e8af2c62f97de5d898decf52b25d49ad 100644 (file)
@@ -288,6 +288,9 @@ struct pp_hwmgr_func {
        int (*enable_clock_power_gating)(struct pp_hwmgr *hwmgr);
        int (*notify_smc_display_config_after_ps_adjustment)(struct pp_hwmgr *hwmgr);
        int (*display_config_changed)(struct pp_hwmgr *hwmgr);
+       int (*disable_clock_power_gating)(struct pp_hwmgr *hwmgr);
+       int (*update_clock_gatings)(struct pp_hwmgr *hwmgr,
+                                               const uint32_t *msg_id);
 };
 
 struct pp_table_func {